25

我有一份带有附录的报告。

我想要的是在附录开始时在页码上使用不同的样式。

我使用阿拉伯编号,直到我到达附录。然后我想做这样的事情:

我希望自定义页码为:

Chapter: A
Section: {Chapter}{1}       (A-1)
\newpage
\pagenumbering{custompagenumbering}

这可能吗?

4

3 回答 3

28
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包。

于 2010-05-02T16:30:14.783 回答
4

首先,我将创建一个包含所有章节和附录等的文件,称为 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}} 

在这里,它会使页码位于页脚的中心。以及标题左侧的章节标题,如果您的工作是双页的,则在右侧。

然后你可以开始包括你的其他章节..我的看起来像那样(仍然在 thesis.tex 中):

% --- 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}

希望有帮助!页眉和页脚有时很困难,有时如果您更改 \documentclass 它也可能看起来不同。;)

于 2013-03-04T14:45:05.263 回答
2

如果您能够使用Memoir类(我推荐),则可以使用页面样式。见Chapter 7.2 Page Styles。例如,创建两个样式:

\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}

我还没有测试过这个——或者有一段时间使用 LaTeX 来做这个——但我希望它可以提供一些思考的食物,或者至少让你走上正确的轨道。

于 2010-05-02T17:05:27.720 回答