罗马和阿拉伯语报告文件的页码

罗马和阿拉伯语报告文件的页码

我正在编辑我的论文,我需要使用罗马数字对第 2 页到第 5 页(直到目录)进行编号,然后使用阿拉伯数字对整个文档重新进行编号。根据代码,编号从第 5 页开始,尽管我付出了努力,但我还是无法让它按照我需要的方式工作。

以下是代码

\documentclass[reqno,12pt,oneside]{report}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage[top=1in, bottom=1in, left=1.5in, right=1in]{geometry}
\usepackage[singlespacing]{setspace}
\usepackage[bottom]{footmisc}
\usepackage{indentfirst}
\usepackage{endnotes}
\usepackage{graphicx, subfigure}
\usepackage{epstopdf}
\DeclareGraphicsExtensions{.eps,.jpg}
\usepackage{rotating}
\usepackage{booktabs}
\usepackage[tableposition=top]{caption}
\usepackage{placeins}
\usepackage{afterpage}
\usepackage{subfigure}  
\usepackage{multirow}
\usepackage{color, colortbl}
\usepackage[toc,page]{appendix}
\definecolor{Gray}{gray}{0.9}
\usepackage[justification=centering]{caption}
\usepackage{array,longtable,calc}
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}
\usepackage{arydshln}
\usepackage[margin=65pt,font=small,labelfont=bf,justification=raggedright,singlelinecheck=false]{caption}
\usepackage{caption}
\usepackage[backend=biber,authordate,natbib,maxnames=2,minnames=1]{biblatex-chicago}

\renewcommand*{\nameyeardelim}{\addcomma\addspace}



\addbibresource{bibliography_compiled.bib}
\usepackage{hyperref}



\newtheorem{theorem}{Theorem}
\newtheorem{acknowledgement}{Acknowledgement}
\newtheorem{algorithm}[theorem]{Algorithm}
\newtheorem{axiom}[theorem]{Axiom}
\newtheorem{case}[theorem]{Case}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{conclusion}[theorem]{Conclusion}
\newtheorem{condition}[theorem]{Condition}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{criterion}[theorem]{Criterion}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{notation}[theorem]{Notation}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{proposition}{Proposition}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{solution}[theorem]{Solution}
\newtheorem{summary}[theorem]{Summary}
\newenvironment{proof}[1][Proof]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}
\makeatletter
\makeatother
\geometry{left=1in,right=1in,top=1.00in,bottom=1.0in}
%\setcounter{secnumdepth}{2}

\makeatletter
\if@twoside \setcounter{page}{4} \else \setcounter{page}{2} \fi
\makeatother

\begin{document}
\pagenumbering{roman}
\begin{titlepage}
\vspace*{\fill}


\begin{center}

{\Large\uppercase{\bfseries Title of Dissertation}}

\vspace{6.25cm}
{First Last Name} \\ [5pt]
\vspace{4cm}
{Submitted to the faculty of the University Graduate School}\\[5pt]
{in partial fulfillment of the requirement for the degree}\\[5pt]
{Doctor of Philosophy}\\[5pt]
{in the Department of Economics,}\\[5pt]
\vfill
{July 2015}
\end{center}
\end{titlepage}



\begin{titlepage}

\renewcommand{\thepage}{\roman{page}}

\begin{center}

{Accepted by the Graduate Faculty in partial\\
fulfillment of the requirements for the degree of Doctor of\\
Philosophy}\\[8cm]


\raggedright{ Doctoral Committee}
\vspace{1cm}

\raggedleft{\makebox[2.5in]{\hrulefill}}\\
\raggedleft{Committee Member 1, Ph.D.\\[1.5cm]

\makebox[2.5in]{\hrulefill}\\
\raggedleft{Committee Member 2, Ph.D.}\\[1.5cm]

\makebox[2.5in]{\hrulefill}\\
\raggedleft{Committee Member 3, Ph.D.}\\[1.5cm]

\makebox[2.5in]{\hrulefill}\\
\raggedleft{Committee Member 4, Ph.D.}\\[1.5cm]


\raggedright{July 21st, 2015}
\end{titlepage}

\begin{titlepage}
\begin{center}
\vspace*{\fill}

Copyright \copyright \, \the\year\\
\vspace{0.5cm}
{Name} \\ [5pt]
\end{center}
\end{titlepage}

\begin{titlepage}
\vspace{4cm}

\begin{center}

\centering{First Last Name\\ \vspace{0.5cm}
\centering{\uppercase{Title}}\\ 

\vspace{1cm}

\justify
This paper examines ...
\vspace{1cm}

\raggedleft{\makebox[2in]{\hrulefill}}\\
\raggedleft{Committee Member 1, Ph.D.}\\[0.7cm]

\makebox[2in]{\hrulefill}\\
\raggedleft{Committee Member 2 Ph.D.}\\[0.7cm]

\makebox[2in]{\hrulefill}\\
\raggedleft{Committee Member 3, Ph.D.}\\[0.7cm]

\makebox[2in]{\hrulefill}\\
\raggedleft{Committee Member 4, Ph.D.}\\[0.7cm]

\end{center}
\end{titlepage}


\setcounter{tocdepth}{2}




\tableofcontents

\pagenumbering{arabic}
\input{chapter1}

\input{chapter2}

\input{chapter3}



\printbibliography

\end{document}

答案1

如果您需要自动执行,您可以使用book@cfr 在评论中指出的类。在这种情况下,您只需说\frontmatter罗马数字开始,然后说\mainmatter阿拉伯数字开始。您使用了太多我怀疑会有用的软件包,并且可能存在许多不兼容性,因此我建议从头开始(如果您的机构不提供模板)并仅添加您需要的软件包。

但是,您的情况的主要问题是您定义了多个titlepage,而 atitlepage没有页码,这就是命令\pagenumbering{roman}不起作用的原因。因此,只需删除除titlepage第一个之外的所有 s,您的代码就可以正常工作。

\documentclass[reqno,12pt,oneside]{report}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage[top=1in, bottom=1in, left=1.5in, right=1in]{geometry}
\usepackage[singlespacing]{setspace}
\usepackage[bottom]{footmisc}
\usepackage{indentfirst}
\usepackage{endnotes}
\usepackage{graphicx, subfigure}
\usepackage{epstopdf}
\DeclareGraphicsExtensions{.eps,.jpg}
\usepackage{rotating}
\usepackage{booktabs}
\usepackage[tableposition=top]{caption}
\usepackage{placeins}
\usepackage{afterpage}
\usepackage{subfigure,lipsum}  
\usepackage{multirow}
\usepackage{color, colortbl}
\usepackage[toc,page]{appendix}
\definecolor{Gray}{gray}{0.9}
\usepackage[justification=centering]{caption}
\usepackage{array,longtable,calc}
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}
\usepackage{arydshln}
\usepackage[margin=65pt,font=small,labelfont=bf,justification=raggedright,singlelinecheck=false]{caption}
\usepackage{caption}
\usepackage[backend=biber,authordate,natbib,maxnames=2,minnames=1]{biblatex-chicago}

\renewcommand*{\nameyeardelim}{\addcomma\addspace}

\addbibresource{bibliography_compiled.bib}
\usepackage{hyperref}

\newtheorem{theorem}{Theorem}
\newtheorem{acknowledgement}{Acknowledgement}
\newtheorem{algorithm}[theorem]{Algorithm}
\newtheorem{axiom}[theorem]{Axiom}
\newtheorem{case}[theorem]{Case}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{conclusion}[theorem]{Conclusion}
\newtheorem{condition}[theorem]{Condition}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{criterion}[theorem]{Criterion}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{notation}[theorem]{Notation}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{proposition}{Proposition}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{solution}[theorem]{Solution}
\newtheorem{summary}[theorem]{Summary}
\newenvironment{proof}[1][Proof]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}
\makeatletter
\makeatother
\geometry{left=1in,right=1in,top=1.00in,bottom=1.0in}
%\setcounter{secnumdepth}{2}

\makeatletter
\if@twoside \setcounter{page}{4} \else \setcounter{page}{2} \fi
\makeatother

\begin{document}
\pagenumbering{roman}
\begin{titlepage}
\vspace*{\fill}
\begin{center}

{\Large\uppercase{\bfseries Title of Dissertation}}

\vspace{6.25cm}
{First Last Name} \\ [5pt]
\vspace{4cm}
{Submitted to the faculty of the University Graduate School}\\[5pt]
{in partial fulfillment of the requirement for the degree}\\[5pt]
{Doctor of Philosophy}\\[5pt]
{in the Department of Economics,}\\[5pt]
\vfill
{July 2015}
\end{center}
\end{titlepage}

\begin{center}
\renewcommand{\thepage}{\roman{page}}
{Accepted by the Graduate Faculty in partial\\
fulfillment of the requirements for the degree of Doctor of\\
Philosophy}\\[8cm]

\raggedright{ Doctoral Committee}
\vspace{1cm}

\raggedleft{\makebox[2.5in]{\hrulefill}}\\
\raggedleft{Committee Member 1, Ph.D.}\\[1.5cm]

\makebox[2.5in]{\hrulefill}\\
\raggedleft{Committee Member 2, Ph.D.}\\[1.5cm]

\makebox[2.5in]{\hrulefill}\\
\raggedleft{Committee Member 3, Ph.D.}\\[1.5cm]

\makebox[2.5in]{\hrulefill}\\
\raggedleft{Committee Member 4, Ph.D.}\\[1.5cm]

\raggedright{July 21st, 2015}%
\end{center}

\begin{center}
\vspace*{\fill}

Copyright \copyright \, \the\year\\
\vspace{0.5cm}
{Name} \\ [5pt]
\end{center}

\begin{center}

\vspace{4cm}

First Last Name\\ 
\vspace{0.5cm}
{\uppercase{Title}}\\ 

\vspace{1cm}


This paper examines ...
\vspace{1cm}

\raggedleft{\makebox[2in]{\hrulefill}}\\
\raggedleft{Committee Member 1, Ph.D.}\\[0.7cm]

\makebox[2in]{\hrulefill}\\
\raggedleft{Committee Member 2 Ph.D.}\\[0.7cm]

\makebox[2in]{\hrulefill}\\
\raggedleft{Committee Member 3, Ph.D.}\\[0.7cm]

\makebox[2in]{\hrulefill}\\
\raggedleft{Committee Member 4, Ph.D.}\\[0.7cm]

\end{center}

\setcounter{tocdepth}{2}

\tableofcontents
\clearpage
\pagenumbering{arabic}
\chapter{chapter1}
\lipsum[1-15]
\chapter{chapter2}
\lipsum[1-15]
\chapter{chapter3}
\lipsum[1-15]
%\input{chapter1}
%\input{chapter2}
%\input{chapter3}
%\printbibliography
\end{document}

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

相关内容