包含罗马字的页码

包含罗马字的页码

我是 LaTeX 新手。我发现很难以罗马数字显示 VTU 证书、证明书、声明、致谢、缩写、图表列表和表格列表的页码。

我已经给出了示例 tex 代码供参考

\usepackage{multirow}
\usepackage{epsfig}
\usepackage{enumerate}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amscd}

\documentclass[12pt,a4paper,extreport]

\begin{document}

\renewcommand\baselinestretch{1.2}
\baselineskip=18pt plus2pt


%\cleardoublepage
%\thispagestyle{plain}

\pagenumbering{roman}


\begin{romanpages}

    \thispagestyle{empty}


    \addcontentsline{toc}{chapter}{VTU Certificate}
    \include{VTU_Certificate/vtu_certificate}

    \newpage    
    \addcontentsline{toc}{chapter}{Certificate from the Guide}
    \include{Certificate_from_the_Guide/certificate}


    \addcontentsline{toc}{chapter}{Declaration}%insert in contents
    \include{Declaration/declaration} %Decalaration page



%   \newpage %use for acknowledgment
    %\cleardoublepage

    \addcontentsline{toc}{chapter}{Acknowledgements} %insert in contents
    \include{Acknowledgement/acknowledgement} %acknowledgement page
    \normalsize{\tableofcontents} %list contents

    \thispagestyle{empty}   
    \pagestyle{empty}
    \addcontentsline{toc}{chapter}{Abbreviations}
    \include{Abbreviations/abbreviations} %acknowledgement page



    \addcontentsline{toc}{chapter}{List of Figures} %insert in contents 
    \normalsize{\listoffigures} %list of figures
    %\cleardoublepage



    \addcontentsline{toc}{chapter}{List of Tables}  %insert in contents
    \normalsize{\listoftables} %list of tables
    %\cleardoublepage


\end{romanpages} %end roman page numbering

答案1

我假设丢失的\include文件包含\chapter*

每个\chapter\chapter*都发出一个\clearpage(或\cleardoublepage) 和一个\thispagestyle{plain}. \pagenumbering\addcontentsline应该在 之后\clearpage。幸运的是,添加额外\clearpage的不会添加额外的页面。 \thispagestyle{empty}应该在\chapter*第一页结束之后但之前。

\documentclass[12pt,a4paper]{extreport}
\usepackage{multirow}
\usepackage{epsfig}
\usepackage{enumerate}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amscd}
\usepackage{lipsum}% MWE only

\begin{document}

\renewcommand\baselinestretch{1.2}
\baselineskip=18pt plus2pt

%\begin{romanpages}

\addcontentsline{toc}{chapter}{VTU Certificate}%
\chapter*{VTU Certificate}
\thispagestyle{empty}
\pagenumbering{roman}
%\include{VTU_Certificate/vtu_certificate}

\clearpage
\addcontentsline{toc}{chapter}{Certificate from the Guide}%
\chapter*{Certificate from the Guide}
%\include{Certificate_from_the_Guide/certificate}

\clearpage
\addcontentsline{toc}{chapter}{Declaration}%insert in contents
\chapter*{Declaration}
%\include{Declaration/declaration} %Decalaration page

\clearpage
\addcontentsline{toc}{chapter}{Contents}%insert in contents
\normalsize{\tableofcontents} %list contents

\clearpage
\addcontentsline{toc}{chapter}{Abbreviations}
\chapter*{Abbreviations}
%\include{Abbreviations/abbreviations} %acknowledgement page

\clearpage
\addcontentsline{toc}{chapter}{List of Figures} %insert in contents 
\normalsize{\listoffigures}% list of figures

\clearpage
\addcontentsline{toc}{chapter}{List of Tables}  %insert in contents
\normalsize{\listoftables}% list of tables

\clearpage
\pagenumbering{arabic}
\chapter{First chapter}

\lipsum[1-6]
\end{document}

相关内容