我有一个带有附录的报告。
我想在附录开始时使用不同的页码样式。
在附录之前,我使用阿拉伯数字进行编号。当到达附录时,我想做这样的事情:
我想要自定义的页面编号是:
Chapter: A
Section: {Chapter}{1} (A-1)
\newpage
\pagenumbering{custompagenumbering}
这可行吗?
我有一个带有附录的报告。
我想在附录开始时使用不同的页码样式。
在附录之前,我使用阿拉伯数字进行编号。当到达附录时,我想做这样的事情:
我想要自定义的页面编号是:
Chapter: A
Section: {Chapter}{1} (A-1)
\newpage
\pagenumbering{custompagenumbering}
这可行吗?
Some paragraph. Some paragraph. Some paragraph. Some paragraph. Some paragraph.
\newpage
\setcounter{page}{1}
\renewcommand{\thepage}{A-\arabic{page}}
Some paragraph. Some paragraph. Some paragraph. Some paragraph. Some paragraph.
这是否与您想做的事情有关?以下是如何操作page
计数器和\thepage
命令以确定页码打印方式。使用\roman{page}
将会得到罗马数字,使用\alph{page}
则会得到a、b、c等字母序列。
另一个明智的解决方案是使用fancyhdr宏包,正如之前建议的那样。
fancyhdr
的示例,这将是一个非常棒的答案。 - Geoff首先,我会创建一个名为main.tex或thesis.tex的文件,其中包含所有章节和附录等内容。
在该文件中,您可以进行所有包含和文档设置,还可以进行页眉和页脚设置:
% Free Header and Footer
\usepackage{fancyhdr}
\lfoot[\fancyplain{}{}]{\fancyplain{}{}}
\rfoot[\fancyplain{}{}]{\fancyplain{}{}}
\cfoot[\fancyplain{}{\footnotesize\thepage}]{\fancyplain{}{\footnotesize\thepage}}
\lhead[\fancyplain{}{\footnotesize\nouppercase\leftmark}]{\fancyplain{}{}}
\chead{}
\rhead[\fancyplain{}{}]{\fancyplain{}{\footnotesize\nouppercase\sc\leftmark}}
% --- Start of Document ----------------------------------------
\begin{document}
\pagenumbering{roman} %roemische ziffern
\pagestyle{fancy} % Initialize Header and Footer
\include{title} % Title Page
\include{affidavit} % affidavit
\include{abstracts} % Englisch and German abstracts
\include{acknowl} % Acknowledgements
\include{glossary} % Glossary
\include{abbreviation} % Abkuerzungen
%\include{keywords} % Keywords
\include{toc} % Table of Contents
%--- Include your chapters here ----------
\setcounter{page}{1} % set page to 1 again to start arabic count
\pagenumbering{arabic}
%\include{chapter0}
\include{chapter1} % Introduction
\include{chapter2} % Background
\include{chapter3} % Konzeption
\include{chapter4} % Technische Umsetzung
\include{chapter5}
\include{chapter6}
%
%% ....
\appendix
\include{appendix} % Appendix A
\end{document}
\pagestyle{plain} % Regular page numbering
... STUFF ...
\clearpage % make a new page numbering down here
\copypagestyle{AppendixPS}{plain}
\renewcommand{\thepage}{Chapter \chapter Section \section page \page}
\pagestyle{AppendixPS}