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} abc ...

他の賢明な解決策は、前に提案したように、 fancyhdrパッケージを使用することです。

于 2010-05-02T16:30:14.783 に答える
4

最初に、すべての章と付録などを含む 1 つのファイルを作成します。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。たとえば、次の 2 つのスタイルを作成します。

\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 に答える