在我的多章节文档中,我有一些子文档,\chapter
但所有子文档都使用了章节编号,只显示了章节标题。但是,目录中确实显示了编号。下面是主文档和示例章节的 MWE。它很长,所以请耐心等待,不确定我还能再写多少,但这会重现问题:
\documentclass[12pt,letterpaper,truedoublespace]{report}
\renewcommand{\familydefault}{\rmdefault}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\makeatletter
\RequirePackage{setspace}[1998/04/8]
\newcommand{\etptsize}{12pt}
\DeclareOption{10pt}{\renewcommand{\etptsize}{10pt}}
\DeclareOption{11pt}{\renewcommand{\etptsize}{11pt}}
\DeclareOption{12pt}{\renewcommand{\etptsize}{12pt}}
\DeclareOption{letterpaper}{\PassOptionsToClass{letterpaper}{report}}
% The following options set the global amount of spacing
\newcommand{\etspacing}{\setstretch{1.37}}
\DeclareOption{truedoublespace}{\renewcommand{\etspacing}{\doublespacing}}
\DeclareOption{doublespace}{\renewcommand{\etspacing}{\setstretch{1.37}}}
\DeclareOption{onehalfspace}{\renewcommand{\etspacing}{\onehalfspacing}}
\DeclareOption{singlespace}{\renewcommand{\etspacing}{\singlespacing}}
% Normally, the chapter heads are all uppercase, but sometimes
% this causes problems. The following option changes
% the chapter heads to small caps instead.
\newcommand{\etchapterheadstyle}[1]{\MakeUppercase{#1}}
\DeclareOption{plainchapterheads}{\renewcommand{\etchapterheadstyle}[1]{#1}}
% Pass all other options to report.cls.
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{report}
}
% CCW: font size modifications, from Martin Pergler
% Put it at document start, else some packages may clobber it.
% Thesis Office says minimum should be 9pt for microfilming, but they
% didn't actually complain about the standard LaTeX sizes (12/8/6) that
% I used previously. So 8pt isn't too much of a cheat.
\AtBeginDocument{\DeclareMathSizes{12}{12}{10}{8}}
% Adjust spacing of document
\etspacing
\newcommand{\dedication}{
\chapter*{}
\thispagestyle{empty}
}
% copyright page (if used, should appear directly after title page)
% usage: \makecopyright
\def\makecopyright{\@restonecolfalse
\if@twocolumn\@restonecoltrue\onecolumn
\else \newpage \fi
\thispagestyle{empty}%\setcounter{page}{2}%
% \addtocounter{page}{1}
\null\vfill
\centerline{ Copyright \copyright\ \number\year\ by \@author }
\centerline{ All rights reserved }
\vskip 15pt\relax
\if@restonecol\twocolumn \else \newpage \fi
\let\makecopyright=\relax}
%
% \topmatter : Things like Abstract, Acknowledgments.
% Usage:
% \topmatter{Title Of Matter}
%
% Use like \chapter, once for each page of matter you want. Don't
% use numbered sections within these. Use \section* instead.
%
\newcommand{\topmatter}[1]{
\chapter*{#1}
\addcontentsline{toc}{chapter}{#1}
}
%
% redefinition of abstract environment
%
\renewenvironment{abstract}{\topmatter{Abstract}}{}
\newenvironment{acknowledgments}{\topmatter{Acknowledgments}}{}
%
% \mainmatter : Signals the start of the document's body.
% Usage:
% \mainmatter
%
% Use once before the first numbered \chapter.
%
\newcommand{\mainmatter}{
\clearpage
\pagenumbering{arabic}
}
%
% Title Page Information Commands
% Example Usage:
% \title{Stones And L^2 Invariants}
% \author{Fred D. Belitnikoff}
% \department{Mathematics}
% \division{Physical Sciences} (Sciences with an s!)
% \date{July 1998} (Your grad. date, formatted like the example)
%
%
\renewcommand{\title}[1]{\gdef\@title{#1}}
\renewcommand{\author}[1]{\gdef\@author{#1}}
\newcommand{\department}[1]{\gdef\@department{#1}}
\newcommand{\division}[1]{\gdef\@division{#1}}
\newcommand{\degree}[1]{\gdef\@degree{#1}}
\renewcommand{\date}[1]{\gdef\@date{#1}}
%
% \maketitle : Makes the U. of Chicago dissertation title page.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Internal Formatting Commands For This Thesis Style
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Renew commands that make chapter & section headers
%
\renewcommand{\@makechapterhead}[1]{{
\setlength{\topmargin}{0.5in} % really 1.5in, added by bph for OAP standards
\normalfont\large\bfseries
\begin{center}
\etchapterheadstyle{\@chapapp{ \thechapter}} % CHAPTER 1 or APPENDIX
\etchapterheadstyle{#1} % TITLE OF CHAPTER
\end{center}
\setlength{\topmargin}{0in} % back to 1in
}}
\renewcommand{\@makechapterhead}[1]{{
\setlength{\topmargin}{0.5in} % really 1.5in, added by bph for OAP standards
\normalfont\large\bfseries
\begin{center}
\etchapterheadstyle{#1} % TITLE OF CHAPTER
\end{center}
\setlength{\topmargin}{0in} % back to 1in
}}
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\large\bfseries\centering}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\large\itshape\centering}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\large}}
%\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
% {3.25ex \@plus1ex \@minus.2ex}%
% {-1em}%
% {\normalfont\normalsize\bfseries}}
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{3.25ex \@plus1ex \@minus .2ex}%
{-1em}%
{\normalfont\small\bfseries}}
%\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
% {3.25ex \@plus1ex \@minus .2ex}%
% {-1em}%
% {\normalfont\normalsize\itshape}}
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
{3.25ex \@plus1ex \@minus .2ex}%
{-1em}%
{\normalfont\small\bfseries}}
% Change style of printing chapters in TOC to match chapter headings.
\renewcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode
\advance\leftskip\@tempdima
\hskip -\leftskip
\etchapterheadstyle{#1}\nobreak
% CCW: The following 3 lines add dots to the chapter TOC listings
\leaders\hbox{$\m@th
\mkern \@dotsep mu\hbox{.}\mkern \@dotsep
mu$}\hfill
\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
%% Change name of table of contents
%\renewcommand{\contentsname}{Table of Contents}
%% Change name of table of contents if using package{babel}
\addto\captionsenglish{\def\contentsname{Table of Contents}}
% Change the margins to fit requirements
% Because most printers add 0.25in on both margins by default, use {0.25in} for 1.5in margins, or {0in} for 1.25in margins
\setlength{\oddsidemargin}{0.25in} % for 1.5in
\setlength{\evensidemargin}{0.25in} % for 1.5in
%\setlength{\oddsidemargin}{0in} % for 1.25in
%\setlength{\evensidemargin}{0in} % for 1.25in
\setlength{\textwidth}{6.25in}
% Printers do not seem to add anything to top/bottom margins, so {0in} does in fact leave a 0in top margin
\setlength{\topmargin}{0in} % really 1in
\setlength{\headheight}{0.2in}
\setlength{\headsep}{0.3in}
\setlength{\textheight}{8.25in}
\setlength{\footskip}{0.5in}
% Changing where the page numbers go on pages that aren't the first
% page of a chapter.
%changed by Yahui Peng 2/1/10
\pagestyle{myheadings}
\markright{}
\pagestyle{plain}
%% Added by CWH for SSD/Anthro requirements: the first page of a chapter,
%% use \page in footer center; otherwise \page in header right
%\usepackage{fancyhdr}
%\pagestyle{fancy}
%\fancyhead{}
%\fancyfoot{}
%\fancyhead[R]{\thepage}
%\renewcommand{\headrulewidth}{0pt}
%\rhead{\thepage}
% Make the table of contents, etc., single spaced
%
% bph added lists of tables/figures to table of contents.
% CCW fixed bug where multipage LOT/LOF were listed in TOC with wrong
% page number.
\let\oldtableofcontents = \tableofcontents
\renewcommand{\tableofcontents}{
\begin{singlespace}
\oldtableofcontents
\end{singlespace}
}
\let\oldlistoftables = \listoftables
\renewcommand{\listoftables}{
\begin{singlespace}
% This works b/c multiple \newpage's are treated as one
\newpage
\addcontentsline{toc}{chapter}{List of Tables}
\oldlistoftables
\end{singlespace}
}
\let\oldlistoffigures = \listoffigures
\renewcommand{\listoffigures}{
\begin{singlespace}
% This works b/c multiple \newpage's are treated as one
\newpage
\addcontentsline{toc}{chapter}{List of Figures}
\oldlistoffigures
\end{singlespace}
}
\renewcommand{\figurename}{Figure}
\providecommand{\fnum@figure}[1]{\textbf{\figurename~\thefigure}.}
\widowpenalty=10000
\clubpenalty=10000
\raggedbottom
\@ifundefined{showcaptionsetup}{}{%
\PassOptionsToPackage{caption=false}{subfig}}
\makeatother
\begin{document}
\dedication \begin{center} \emph{In order to properly understand the big picture, we should fear becoming mentally clouded and obsessed with one small section of truth.}\\\emph{- Xunzi}\end{center}
\tableofcontents
\clearpage
\pagenumbering{arabic}
\setcounter{page}{1}
\chapter{Introduction}
The Late Neolithic (3000-2000 bce) is characterized by the spread
of the Longshan Culture Complex throughout the Huang-Huai floodplain,
covering all regions occupied by the earlier Yangshao and Dawenkou
cultures (Chang 1986; Fitzgerald-Huber 1983; Liu 2004; Liu and Chen
2006). Definition of local Longshan phases is based primarily on minor
stylistic differences in the pottery inventories of these regions,
though such stylistic criteria are limited to external, decorative
features of the pottery.
\section{Research Questions}
The developments that took place in the communities of the Luoyang
Basin between 3000 and 1500 BCE provide an excellent opportunity for
studying the emergence of the state through material culture.
\end{document}
编辑#1:
在 Sora 和 Christian 的帮助下,我终于搞清楚了这一点。针对我关于将章节号和章节标题放在不同行的评论,我认为第一组代码就是为了实现这一点。它在 LyX 中有效(可能忽略了第二组代码),但在 LaTeX 中无效(可能忽略了第一组代码)。因此,我现在有:
\renewcommand{\@makechapterhead}[1]{{
\setlength{\topmargin}{0.5in}
\normalfont\large\bfseries
\begin{center}
\etchapterheadstyle{\@chapapp{~\thechapter}} % CHAP or APP #
\\
\etchapterheadstyle{#1} % TITLE OF CHAPTER
\end{center}
\setlength{\topmargin}{0in}
}}
完美的!
答案1
问题出\renewcommand{\@makechapterhead}[1]{{
在原始(我们称之为有点;-))MWE的第139行中的第二个,因为在前几行中,已经有一个\renewcommand{\@makechapterhead}[1]{{
(从第129行开始)块
\etchapterheadstyle{\@chapapp{ \thechapter}} % CHAPTER 1 or APPENDIX
\etchapterheadstyle{#1} % TITLE OF CHAPTER
然而,这种明显的章节标题重复并没有效果,因为该命令完全被
\etchapterheadstyle{#1} % TITLE OF CHAPTER,
通过 仅输出章节名称,而不输出章节编号\thechapter
。\@chapapp
会在前面添加单词CHAPTER
,因此如果不需要,请省略它。 从这个意义上讲,Sora 的解决方案确实有效,但是,他/她不知道额外的\renewcommand
。
我使用 MWE 是为了减轻 OP 事后自己添加的负担,所以代码很长,但我用一些周围的文字标记了相关代码%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt,letterpaper,truedoublespace]{report}
\renewcommand{\familydefault}{\rmdefault}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\makeatletter
\RequirePackage{setspace}[1998/04/8]
\newcommand{\etptsize}{12pt}
\DeclareOption{10pt}{\renewcommand{\etptsize}{10pt}}
\DeclareOption{11pt}{\renewcommand{\etptsize}{11pt}}
\DeclareOption{12pt}{\renewcommand{\etptsize}{12pt}}
\DeclareOption{letterpaper}{\PassOptionsToClass{letterpaper}{report}}
% The following options set the global amount of spacing
\newcommand{\etspacing}{\setstretch{1.37}}
\DeclareOption{truedoublespace}{\renewcommand{\etspacing}{\doublespacing}}
\DeclareOption{doublespace}{\renewcommand{\etspacing}{\setstretch{1.37}}}
\DeclareOption{onehalfspace}{\renewcommand{\etspacing}{\onehalfspacing}}
\DeclareOption{singlespace}{\renewcommand{\etspacing}{\singlespacing}}
% Normally, the chapter heads are all uppercase, but sometimes
% this causes problems. The following option changes
% the chapter heads to small caps instead.
\newcommand{\etchapterheadstyle}[1]{\MakeUppercase{#1}}
\DeclareOption{plainchapterheads}{\renewcommand{\etchapterheadstyle}[1]{#1}}
% Pass all other options to report.cls.
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{report}
}
% CCW: font size modifications, from Martin Pergler
% Put it at document start, else some packages may clobber it.
% Thesis Office says minimum should be 9pt for microfilming, but they
% didn't actually complain about the standard LaTeX sizes (12/8/6) that
% I used previously. So 8pt isn't too much of a cheat.
\AtBeginDocument{\DeclareMathSizes{12}{12}{10}{8}}
% Adjust spacing of document
\etspacing
\newcommand{\dedication}{
\chapter*{}
\thispagestyle{empty}
}
% copyright page (if used, should appear directly after title page)
% usage: \makecopyright
\def\makecopyright{\@restonecolfalse
\if@twocolumn\@restonecoltrue\onecolumn
\else \newpage \fi
\thispagestyle{empty}%\setcounter{page}{2}%
% \addtocounter{page}{1}
\null\vfill
\centerline{ Copyright \copyright\ \number\year\ by \@author }
\centerline{ All rights reserved }
\vskip 15pt\relax
\if@restonecol\twocolumn \else \newpage \fi
\let\makecopyright=\relax}
%
% \topmatter : Things like Abstract, Acknowledgments.
% Usage:
% \topmatter{Title Of Matter}
%
% Use like \chapter, once for each page of matter you want. Don't
% use numbered sections within these. Use \section* instead.
%
\newcommand{\topmatter}[1]{
\chapter*{#1}
\addcontentsline{toc}{chapter}{#1}
}
%
% redefinition of abstract environment
%
\renewenvironment{abstract}{\topmatter{Abstract}}{}
\newenvironment{acknowledgments}{\topmatter{Acknowledgments}}{}
%
% \mainmatter : Signals the start of the document's body.
% Usage:
% \mainmatter
%
% Use once before the first numbered \chapter.
%
\newcommand{\mainmatter}{
\clearpage
\pagenumbering{arabic}
}
%
% Title Page Information Commands
% Example Usage:
% \title{Stones And L^2 Invariants}
% \author{Fred D. Belitnikoff}
% \department{Mathematics}
% \division{Physical Sciences} (Sciences with an s!)
% \date{July 1998} (Your grad. date, formatted like the example)
%
%
\renewcommand{\title}[1]{\gdef\@title{#1}}
\renewcommand{\author}[1]{\gdef\@author{#1}}
\newcommand{\department}[1]{\gdef\@department{#1}}
\newcommand{\division}[1]{\gdef\@division{#1}}
\newcommand{\degree}[1]{\gdef\@degree{#1}}
\renewcommand{\date}[1]{\gdef\@date{#1}}
%
% \maketitle : Makes the U. of Chicago dissertation title page.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Internal Formatting Commands For This Thesis Style
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Renew commands that make chapter & section headers
%
%%%%% Completely unused since overruled
\renewcommand{\@makechapterhead}[1]{{
\setlength{\topmargin}{0.5in} % really 1.5in, added by bph for OAP standards
\normalfont\large\bfseries
\begin{center}
\etchapterheadstyle{\@chapapp{ \thechapter}} % CHAPTER 1 or APPENDIX
\etchapterheadstyle{#1} % TITLE OF CHAPTER
\end{center}
\setlength{\topmargin}{0in} % back to 1in
}}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Now the 'real' \@makechapterhead follows
\renewcommand{\@makechapterhead}[1]{{
\setlength{\topmargin}{0.5in} % really 1.5in, added by bph for OAP standards
\normalfont\large\bfseries
\begin{center}
\etchapterheadstyle{\@chapapp{~\thechapter~#1}} % TITLE OF CHAPTER
\end{center}
\setlength{\topmargin}{0in} % back to 1in
}}%%%
%%%%%%%%%%%%%%%%%%%% End of real \@makechapterhead
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\large\bfseries\centering}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\large\itshape\centering}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\large}}
%\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
% {3.25ex \@plus1ex \@minus.2ex}%
% {-1em}%
% {\normalfont\normalsize\bfseries}}
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{3.25ex \@plus1ex \@minus .2ex}%
{-1em}%
{\normalfont\small\bfseries}}
%\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
% {3.25ex \@plus1ex \@minus .2ex}%
% {-1em}%
% {\normalfont\normalsize\itshape}}
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
{3.25ex \@plus1ex \@minus .2ex}%
{-1em}%
{\normalfont\small\bfseries}}
% Change style of printing chapters in TOC to match chapter headings.
\renewcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode
\advance\leftskip\@tempdima
\hskip -\leftskip
\etchapterheadstyle{#1}\nobreak
% CCW: The following 3 lines add dots to the chapter TOC listings
\leaders\hbox{$\m@th
\mkern \@dotsep mu\hbox{.}\mkern \@dotsep
mu$}\hfill
\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
%% Change name of table of contents
%\renewcommand{\contentsname}{Table of Contents}
%% Change name of table of contents if using package{babel}
\addto\captionsenglish{\def\contentsname{Table of Contents}}
% Change the margins to fit requirements
% Because most printers add 0.25in on both margins by default, use {0.25in} for 1.5in margins, or {0in} for 1.25in margins
\setlength{\oddsidemargin}{0.25in} % for 1.5in
\setlength{\evensidemargin}{0.25in} % for 1.5in
%\setlength{\oddsidemargin}{0in} % for 1.25in
%\setlength{\evensidemargin}{0in} % for 1.25in
\setlength{\textwidth}{6.25in}
% Printers do not seem to add anything to top/bottom margins, so {0in} does in fact leave a 0in top margin
\setlength{\topmargin}{0in} % really 1in
\setlength{\headheight}{0.2in}
\setlength{\headsep}{0.3in}
\setlength{\textheight}{8.25in}
\setlength{\footskip}{0.5in}
% Changing where the page numbers go on pages that aren't the first
% page of a chapter.
%changed by Yahui Peng 2/1/10
\pagestyle{myheadings}
\markright{}
\pagestyle{plain}
%% Added by CWH for SSD/Anthro requirements: the first page of a chapter,
%% use \page in footer center; otherwise \page in header right
%\usepackage{fancyhdr}
%\pagestyle{fancy}
%\fancyhead{}
%\fancyfoot{}
%\fancyhead[R]{\thepage}
%\renewcommand{\headrulewidth}{0pt}
%\rhead{\thepage}
% Make the table of contents, etc., single spaced
%
% bph added lists of tables/figures to table of contents.
% CCW fixed bug where multipage LOT/LOF were listed in TOC with wrong
% page number.
\let\oldtableofcontents = \tableofcontents
\renewcommand{\tableofcontents}{
\begin{singlespace}
\oldtableofcontents
\end{singlespace}
}
\let\oldlistoftables = \listoftables
\renewcommand{\listoftables}{
\begin{singlespace}
% This works b/c multiple \newpage's are treated as one
\newpage
\addcontentsline{toc}{chapter}{List of Tables}
\oldlistoftables
\end{singlespace}
}
\let\oldlistoffigures = \listoffigures
\renewcommand{\listoffigures}{
\begin{singlespace}
% This works b/c multiple \newpage's are treated as one
\newpage
\addcontentsline{toc}{chapter}{List of Figures}
\oldlistoffigures
\end{singlespace}
}
\renewcommand{\figurename}{Figure}
\providecommand{\fnum@figure}[1]{\textbf{\figurename~\thefigure}.}
\widowpenalty=10000
\clubpenalty=10000
\raggedbottom
\@ifundefined{showcaptionsetup}{}{%
\PassOptionsToPackage{caption=false}{subfig}}
\makeatother
\begin{document}
\dedication \begin{center} \emph{In order to properly understand the big picture, we should fear becoming mentally clouded and obsessed with one small section of truth.}\\\emph{- Xunzi}\end{center}
\tableofcontents
\clearpage
\pagenumbering{arabic}
\setcounter{page}{1}
\chapter{Introduction}
The Late Neolithic (3000-2000 bce) is characterized by the spread
of the Longshan Culture Complex throughout the Huang-Huai floodplain,
covering all regions occupied by the earlier Yangshao and Dawenkou
cultures (Chang 1986; Fitzgerald-Huber 1983; Liu 2004; Liu and Chen
2006). Definition of local Longshan phases is based primarily on minor
stylistic differences in the pottery inventories of these regions,
though such stylistic criteria are limited to external, decorative
features of the pottery.
\section{Research Questions}
The developments that took place in the communities of the Luoyang
Basin between 3000 and 1500 BCE provide an excellent opportunity for
studying the emergence of the state through material culture.
\chapter{Results}
\end{document}
笔记:在我看来,有一些代码可以通过titlesec
或使用 KOMA 类更容易地完成。
答案2
由于缺乏 MWE 并根据用法判断\etchapterheadstyle
,我假设您使用的是芝加哥大学的数学论文风格或以此为基础的风格。
我尽力为您的代码构建了一个最小工作示例,并且我发现用 替换 对我来说是\chapapp
可行\@chapapp
的。
根据您重新定义的确切位置,您可能需要用[...]\@makechapterhead
括起代码。\makeatletter
\makeatother
示例代码:
\documentclass{easychithesis}
\begin{document}
\makeatletter
\renewcommand{\@makechapterhead}[1]{{
\setlength{\topmargin}{0.5in}
\normalfont\large\bfseries
\begin{center}
\etchapterheadstyle{\@chapapp{ \thechapter}}
\etchapterheadstyle{#1}
\end{center}
\setlength{\topmargin}{0in}
}}
\makeatother
\tableofcontents
\mainmatter
\chapter{Introduction}
Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt\ldots
\chapter{Background}
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie\ldots
\chapter{Further investigations}
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit\ldots
\end{document}
示例输出(前两页):