章节名称中有一个小写字母

章节名称中有一个小写字母

我有一个章节标题,里面有一个缩写。课堂上的章节标题全部用大写字母书写,但缩写的复数后缀应该用小写。我该怎么做?

例如:

\chapter{Bla Bla Bla Bla XYZs}

给出

BLA BLA BLA BLA XYZS

但我想要的是:

BLA BLA BLA BLA XYZs

梅威瑟:

\usepackage{graphicx,pstricks}
\usepackage{environ,amssymb}
\newcommand*{\Scale}[2][4]{\scalebox{#1}{$#2$}}%
\newcommand*{\Resize}[2]{\resizebox{#1}{!}{$#2$}}%
\usepackage[fleqn]{amsmath}
\usepackage{graphics}
\usepackage[T1]{fontenc}
\usepackage{moreverb}
\usepackage{subfigure}
\usepackage{epsfig}
\usepackage{subfigure}
\usepackage{hangcaption}
\usepackage{txfonts}
\usepackage{palatino}
\usepackage{float}
\usepackage[shortlabels]{enumitem}
\usepackage{hyperref}
\usepackage[toc,page]{appendix}

%if you're having problems with overfull boxes, you may need to increase
%the tolerance to 9999
\tolerance=9999

\bibliographystyle{plain}
%\bibliographystyle{IEEEbib}

\renewcommand{\caption}[1]{\singlespacing\hangcaption{#1}\normalspacing}
\renewcommand{\topfraction}{0.85}
\renewcommand{\textfraction}{0.1}
\renewcommand{\floatpagefraction}{0.75}
\DeclareRobustCommand{\plural}{s}

\title {XXX}
\author {xxx}
\conferraldate {September}{2014}
\degreefield {asda}
\copyrightholder{asdasd}
\copyrightyear{2014}

\begin{document}

\maketitle
\makecopyright


\begin{statement}

\end{statement}

\begin{abstract2}


\end{abstract2}

\begin{acknowledgements}

\end{acknowledgements}

\contentspage
\tablelistpage
\figurelistpage

\normalspacing \setcounter{page}{1} \pagenumbering{arabic}
\pagestyle{cornell} \addtolength{\parskip}{0.5\baselineskip}
\chapter{Bla Bla Bla Bla XYZs}

编辑:

使用的模板:http://www.gradschool.cornell.edu/sites/default/files/field_file/cu_thesis-2.9.zip

答案1

定义

\DeclareRobustCommand{\plural}{s}

在您的文档序言中并使用

\chapter{Bla Bla Bla Bla XYZ\plural}

因此大写宏不会改变\plural,并且会出现小写的“s”。

请记住使用{}after\plural以防您想要保留后面的空格,例如

\chapter{Bla XYZ\plural{} Bla}

相关内容