我用来获取前言的罗马数字和章节的阿拉伯数字的代码是:
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\setlength{\parindent}{0cm}
\usepackage{latexsym}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{amsthm}
\usepackage{epsfig}
\usepackage{layout}
\usepackage{manfnt}
\usepackage{datetime}
\usepackage{esvect}
\usepackage{fullpage}
\usepackage{subfigure}
% \usepackage{fancyheadings}
\usepackage{enumerate}
\usepackage{epstopdf, bm}
\usepackage{epsfig,subfigure}
\usepackage{graphicx}
% \chaptertitlefont{\normalfont}
\usepackage{sectsty}
\usepackage{mathptmx}
\usepackage{lmodern}
\newcommand{\chapfnt}{\fontsize{16}{19}}
\newcommand{\secfnt}{\fontsize{14}{17}}
\newcommand{\ssecfnt}{\fontsize{12}{14}}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\centering\normalfont\chapfnt\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\chapfnt}
\titleformat{\section}
{\normalfont\secfnt\bfseries}{\thesection}{1em}{}
\titleformat{\subsection}
{\normalfont\ssecfnt\bfseries}{\thesubsection}{1em}{}
\titlespacing*{\chapter} {0pt}{0pt}{10pt}
\titlespacing*{\section} {0pt}{0pt}{5pt}
\titlespacing*{\subsection} {0pt}{0pt}{0pt}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{example}{Example}[section]
\newtheorem{corollary}{Corollary}[section]
\newtheorem{proposition}{Proposition}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{remark}{Remark}[section]
\newtheorem{definition}{Definition}[section]
\usepackage{biblatex}
\addbibresource{references.bib}
\newcommand{\nat}{\ensuremath{\mathbb{N}}}
\newcommand{\zee}{\ensuremath{\mathbb{Z}}}
\newcommand{\Q}{\ensuremath{\mathbb{Q}}}
\newcommand{\R}{\ensuremath{\mathbb{R}}}
\newcommand{\rtwo}{\ensuremath{\mathbb{R}^{2}}}
\newcommand{\rthree}{\ensuremath{\mathbb{R}^{3}}}
\newcommand{\filt}{\ensuremath{\mathcal{F}}}
\newcommand{\prob}{\ensuremath{\mathbb{P}}}
\newcommand{\Ti}{\ensuremath{T_i}}
\newcommand{\Tii}{\ensuremath{T_{i+1}}}
\newcommand{\pspace}{\ensuremath{(\Omega,\mathcal{F},\mathbb{P})}}
\linespread{2}
\usepackage{geometry}
\usepackage{lipsum}
\newgeometry{
top=1in,
bottom=1in,
outer=1in,
inner=1in,
}
\thispagestyle{empty}
\begin{center}
\begin{minipage}{0.75\linewidth}
\centering
%University logo
%\includegraphics[width=0.3\linewidth]{logo.pdf}
% \rule{0.4\linewidth}{0.15\linewidth}\par
% \vspace{3cm}
%Thesis title
{\uppercase{\normal Title
}}
\vspace{3cm}
%Author's name
{\normal by \\
\vspace{1cm}
Name\par}
\vspace{3cm}
%Degree
{\...
\par}
\vspace{1cm}
{\normal July 2021\\}
\vspace{1cm}
{\normal
...
\par}
{\date{}}
\end{minipage}
\end{center}
\begin{document}
\maketitle
\pagenumbering{roman}
\chapter*{Acknowledgement}
\chapter*{Abstract}
\chapter*{Public Abstract}
\tableofcontents
\pagenumbering{arabic}
\chapter{Introduction}
\input{chapters/chapter01}
\end{document}
这是我在内容页面上看到的内容:
如您所见,第一章从第 2 页开始,而不是第 1 页。我的目录有 3 页。出于某种原因,前两页分配了罗马数字,最后一页分配了阿拉伯数字 1。所以我的论文的第 1 页是目录的最后一页。你能帮我解决这个问题吗?