我一直在使用自己的风格来编写文本,使用 fancyhdr 包,使用以下命令:
\titleformat{\chapter}[display]
{\centering \normalfont\huge\bfseries}
{\centering \vspace*{-2.6cm}\chaptertitlename \hspace{1.9pt} {\fontsize{29}{38}\selectfont\thechapter \\
\vspace*{-1.5cm}\hspace*{-0.15cm}{\fontsize{60}{60}\selectfont \char"21A9} \hspace{6.94cm} {\fontsize{60}{60}\selectfont \char"21AA}}}{10pt}{\Huge}[\vspace{0pt}\titlerule\vspace{1.7pt}\titlerule\vspace{-20pt}]
和
\renewcommand{\headrule}{%
\vspace{-8pt}\hrulefill
\raisebox{-2.1pt}{\quad\decofourleft \hspace*{0.7pt}\aldineleft \hspace*{-0.7pt}\decofourright\quad}\hrulefill}
在
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE]{\nouppercase{\Chaptername \hfill\hspace{6pt}\thepage}}
\fancyhead[C]{\nouppercase{\vspace{-2.1pt}\hspace{-2pt}Ch. \thechapter}}
\fancyhead[RO]{\nouppercase{\thepage\hfill\rightmark}}
\pagenumbering{arabic}
但是这些命令使得每章第一页的页码位于页面的右上方,从而在章节名称和页面开头之间留出了太多空间,我通过仅\thispagestyle{plain}
在每章/附录的第一页中使用来解决这个问题,这很好,因为页码位于页面下部的中间,但是由于参考书目是通过命令一次性生成的,所以\bibliography{ref}{}
我不知道如何仅修改参考书目的第一页,就像我在章节和附录中所做的那样。有人能帮帮我吗?
以下图片可以说明该问题:
下面是一个最小工作示例(MWE):
\documentclass[11pt, a4paper, english,sumario=tradicional]{abntex2}
\usepackage{fontspec}
\usepackage{graphicx}
\usepackage{titletoc}
\usepackage{titlesec}
\usepackage{anyfontsize}
\usepackage{fancyhdr}
\usepackage{lipsum}
\titleformat{\chapter}[display]
{\centering \normalfont\huge\bfseries}
{\centering \vspace*{-2.6cm}\chaptertitlename \hspace{1.9pt}
{\fontsize{29}{38}\selectfont\thechapter \\
\vspace*{-1.5cm}\hspace*{-0.15cm} \hspace{6.94cm} }}{10pt}{\Huge}
[\vspace{0pt}\titlerule\vspace{1.7pt}\titlerule\vspace{-20pt}]
\titleformat{\section}
{\centering \normalfont\Large\bfseries}
{\thesection}{1em}{}
% center the toc heading
\renewcommand{\contentsname}{\centering Contents}
\renewcommand{\headrule}{%
\vspace{-8pt}\hrulefill
\raisebox{-2.1pt}{ \hspace*{0.7pt} \hspace*{-0.7pt}}\hrulefill}
\makeindex
\makepagestyle{estilo_pretextual} %%% escolha um nome
\makeevenhead{estilo_pretextual}{}{}{\ABNTEXfontereduzida \textbf \thepage}
\makeoddhead{estilo_pretextual}{}{}{\ABNTEXfontereduzida \textbf \thepage}
\renewcommand{\pretextual}{
\pagenumbering{roman} %%% ou \pagenumbering{Roman}
\aliaspagestyle{chapter}{estilo_pretextual}% customizing chapter pagestyle
\pagestyle{estilo_pretextual}
\aliaspagestyle{cleared}{empty}
\aliaspagestyle{part}{estilo_pretextual}
}
\let\oldtextual\textual \oldtextual
\renewcommand{\textual}{%
\oldtextual%
\pagenumbering{arabic}
}
\renewcommand{\cftchapterpresnum}{\hspace*{-1.5em}} % added <<<<<<<<<<<<<<<<<<<<<<<<<<<<
\cftsetindents{chapter}{1.5em}{0em} % added <<<<<<<<<<<<<<<<<<<<<<<<<<<<
\begin{document}
\begin{resumo}
\addcontentsline{toc}{chapter}{Abstract}
Abstract in English
\vspace{\onelineskip}
\noindent
\end{resumo}
\newpage
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE]{\nouppercase{\Chaptername \hfill\hspace{6pt}\thepage}}
\fancyhead[C]{\nouppercase{\vspace{-2.1pt}\hspace{-2pt}Ch. \thechapter}}
\fancyhead[RO]{\nouppercase{\thepage\hfill\rightmark}}
\pagenumbering{arabic}
\chapter{Introduction}
\thispagestyle{plain}
\vspace{0.3cm}
Quantum mechanics \cite{001}.
\lipsum[1-10]
\chapter{Introduction}
\bibliographystyle{plain}
\bibliography{reff}{} % Replace "reff" with the name of your bibliography file
\end{document}
使用 reff.bib 文件:
@book{001,
title={Mathematische Grundlagen der Quantenmechanik},
author={J. von Neumann},
address = {Berlin},
year={1932},
publisher={Springer-Verlag}
}
答案1
你自便:
\documentclass{abntex2}
\usepackage{abntex2cite}
\begin{document}
\chapter{Introduction}
\thispagestyle{plain}
Quantum mechanics \cite{001}.
\chapter{Introduction}
\chapterstyle{plain}
\bibliography{reff} % Replace "reff" with the name of your bibliography file
\thispagestyle{plain}
\end{document}