我正在使用 LaTex 撰写论文,有人告诉我我的编号不能在附录中重新开始,这对我来说似乎是错误的,但我不会争论它。我正在使用报告类和附录命令。似乎附录命令在使用时会重新开始编号。但是,我想使用附录命令,但不重置我的页码。
\documentclass[12pt]{report}
\usepackage {fancyhdr}
\usepackage{graphicx, amssymb, changepage}
\usepackage{rotating}
\usepackage{setspace}
\usepackage{pgnumchapter_nums}
\usepackage{titlepg}
\usepackage{outlines}
\usepackage{appendix}
% this is for the list of symbols page, if desired
\def\listofsymbols{\input{symbols} \clearpage}
\def\addsymbol #1: #2#3{$#1$\> \parbox{5in}{#2 \dotfill \pageref{#3}}\\}
\def\newnot#1{\label{#1}}
%
\pagestyle{fancy}
% \fancyhead[LE,RO]{helv \thepage}
\fancyhead[L,R]{helv \thepage}
\setlength{\headheight}{15.2pt} %%test this
%\fancyhead[LE,RO]{\thepage\hspace{2em}\footnotesize{\leftmark}} % try this to move over header
\addtolength{\voffset}{-4em} % May2009 added this to move page number up a bit
\doublespacing
\lhead{}
\chead{}
\rhead{\thepage}
\lfoot{}
\cfoot{}
\rfoot{}
\renewcommand{\headrulewidth}{0 pt} %this prints a line under the header
\renewcommand{\footrulewidth}{0 pt} %this prints a line under the footer
\renewcommand{\contentsname}{\normalsize{Table of Contents}}
\renewcommand{\listfigurename}{\normalsize{List of Figures}}
\renewcommand{\listtablename}{\normalsize{List of Tables}}
\renewcommand{\bibname}{\normalsize{Bibliography}}
\renewcommand{\indexname}{\normalsize{Index}}
\pdfpagewidth 8.5in
\pdfpageheight 11in
\setlength{\textheight}{8.5in}
\setlength{\oddsidemargin}{0.5in}
\setlength{\evensidemargin}{0.5in}
\setlength{\textwidth}{6.0in}
\setlength{\topmargin}{0.in}
\setlength{\headheight}{0.5in}
\setlength{\headwidth}{6.0in}
\setlength{\headsep}{0.65in}
\setlength{\parindent}{12mm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% This begins the frontmatter of the document, everything preceding the body
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\pagenumbering{roman}
\thesistitlepage
\thesiscopyrightpage
\addcontentsline{toc}{chapter}{Abstract} % added May2009
\thesisabstract
\addcontentsline{toc}{chapter}{Acknowledgments} % added May2009
\thesisacknowledgments
\makeatletter \renewcommand{\@dotsep}{10000} \makeatother
\renewcommand{\contentsname}{\normalsize{Table of Contents}} % added this line May2010 to fix issue with
\tableofcontents %toc appearing in too large a font size when used in Linux
\newpage % added June 2009
\newpage % added June2009
\addcontentsline{toc}{chapter}{List of Figures} % added May2009
\listoffigures
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% This begins the body of the document
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\pagenumbering{arabic}
\include{chapter1}
\include{chapter2}
\include{chapter3}
\include{chapter4}
\include{chapter5}
\include{chapter6}
\addappheadtotoc
\include{chapter7}
\pagenumbering{arabic}
\appendix
%\appendixpage
\renewcommand\chaptername{Appendix}
\include{appendixA}
\include{AppendixB}
\bibliographystyle{plain}
\newpage
\addcontentsline{toc}{chapter}{Bibliography} % added May2009
\nocite{*}
\bibliography{source2}
\end{document}
任何帮助都将非常有帮助。谢谢!
答案1
\appendix
在报告类中没有重置页面计数器,所以一定是有其他东西在做这件事。最有可能\pagenumbering
调用
\renewcommand\pagenumbering[1]{}
将会禁用该功能。