我希望章节标题全部大写

我希望章节标题全部大写

我正在使用一个模板(亚利桑那州立大学)来编写一篇使用 .sty 文件的论文,并希望章节标题(例如,我希望每个部分的“第 1 章”而不是“第 1 章”全部大写。我正在对 .sty 文件进行更改,但没有任何反应。我已包含整个 .sty 文件代码,我想知道在哪里可以进行调整。

 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
                    \refstepcounter{chapter}%
                    \typeout{\@chapapp\space\thechapter.}%
                    \addcontentsline{toc}{chapter}%
                    {\protect\numberline{\thechapter}#1}%
                \else
                    \addcontentsline{toc}{chapter}{#1}%
                \fi
                \chaptermark{#1}%

                %These two lines below are commented out.

                %\addtocontents{lof}{\protect\addvspace{10\p@}}%
                %\addtocontents{lot}{\protect\addvspace{10\p@}}%
                \if@twocolumn
                  \@topnewpage[\@makechapterhead{#2}]%
                \else
                  \@makechapterhead{#2}%
                  \@afterheading
                \fi}

      %
   % Change some of the rules for float placement.
  %
 \setcounter{topnumber}{2}          %Maximum 2 floats on top
 \setcounter{bottomnumber}{1}       %Maximum 1 float on bottom
%\renewcommand{\topfraction}{0.7}    %Top float max size is 70%
%\renewcommand{\bottomfraction}{0.7} %Bottom float max size is 70%
\renewcommand{\topfraction}{0.9}    %Top float max size is 70%
\renewcommand{\bottomfraction}{0.8} %Bottom float max size is 70%
\renewcommand{\floatpagefraction}{0.7}


       %
      % Fix chapter and section formats
      %
       % Chapters names are all caps, centered under "Chapter N"
       \renewcommand{\@makechapterhead}[1]{
       \begin{center}
     \chaptername\ \thechapter\vspace{\baselineskip}\\
      \uppercase\expandafter{#1}\vspace{\baselineskip}
      \end{center}
   }
        % Numbers chapters, sections, and subsections
      \setcounter{secnumdepth}{2}
      % Center section titles
       \renewcommand{\section}{\@startsection{section}{1}{0 in}{1em}{1em}
   {\centering}}
   % Center and italicize subsection titles
  \renewcommand{\subsection}{\@startsection{subsection}{2}{0 in}{1em}{1em}
   {\centering\slshape}}

答案1

为了将章节名称从 更改为ChapterCHAPTER您可以发出

\renewcommand{\chaptername}{CHAPTER}

在序言中。

相关内容