'목차' 및 페이지 번호 매기기의 어려움

'목차' 및 페이지 번호 매기기의 어려움

Texmaker로 수학 논문을 작성하고 있는데 LaTeX 코드가 학교에서 요구하는 PDF 레이아웃을 생성하지 못합니다. 이상적으로는 다음과 같은 결과를 얻기를 바랍니다.

여기에 이미지 설명을 입력하세요

이는 원하는 PDF 페이지의 그림일 뿐입니다. 아직 작업 중이에요. 사실, 내가 지금 가지고 있는 것은 다음과 같습니다.

여기에 이미지 설명을 입력하세요

내 코드는 다음과 같습니다.

\documentclass[12pt]{article}
\usepackage[left=3cm,right=3cm,top=3cm,bottom=2cm]{geometry}
\usepackage{CJKutf8,mathpazo,upgreek,mathrsfs}
\usepackage{amssymb,amsthm,mathtools,mathabx,physics}
\usepackage{pdfpages}
\usepackage{hyperref}
\setcounter{tocdepth}{1}
\numberwithin{equation}{section}
\newtheorem{thm}{Theorem}[section]
\newtheorem{prop}[thm]{Proposition}
\newtheorem{coro}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem*{thm*}{Theorem}
\newtheorem*{prop*}{Proposition}
\newtheorem*{coro*}{Corollary}
\newtheorem*{lem*}{Lemma}
\theoremstyle{definition}
\newtheorem{dfn}[thm]{Definition}
\newtheorem{rem}[thm]{Remark}
\newtheorem*{dfn*}{Definition}
\newtheorem*{rem*}{Remark}
\begin{document}
\includepdf{Thesis acceptance certificate.pdf}

\section*{Acknowledgements}
TBA

\newpage
\section*{Abstract in the official language}
TBA

\newpage
\section*{Abstract in English}
TBA

\newpage
\tableofcontents
\newpage
\setcounter{page}{1}
\section{Introduction}
TBA

\section{Preliminaries}
TBA

\section{Proof of the main result}
TBA

\section{Discussion}
TBA

\newpage
\section*{Appendix A. The Gauss equation}
TBA

\newpage
\section*{Appendix B. Weak solution}
TBA

\newpage
\begin{thebibliography}{99}
\bibitem{MTW} Charles W. Misner, Kip S. Thorne, and John Archibald Wheeler,
\textit{Gravitation}, Princeton University Press, Princeton and Oxford, 2017. Reprint of the 1973 original.

\bibitem{Wald84} Robert M. Wald,
\textit{General relativity}, The University of Chicago Press, Chicago and London, 1984.
\end{thebibliography}
\end{document}

누락된 페이지를 목차에 포함시키고, 앞부분에 로마숫자로 페이지 번호를 표시할 수 있는 방법이 있는지 궁금합니다. 도와 주셔서 감사합니다.

답변1

가장 좋은 방법은 문서 클래스로 전환하여 구조화 메커니즘(예 : , 및 명령) book중 일부를 활용 하고, 필요한 경우 클래스의 일부 기능을 조정하여 문서 클래스를 만드는 것입니다. 교육기관의 형식 요구 사항을 준수하세요.\frontmatter\mainmatter\backmatterbook

다음은 이 방향에서 좋은 시작이 될 수 있습니다.

여기에 이미지 설명을 입력하세요

\documentclass[12pt,openany,demo]{book} % remove 'demo' option in real doc.
\usepackage[hmargin=3cm,top=3cm,bottom=2cm]{geometry}

\usepackage{amssymb,amsthm,mathtools,mathabx,physics}
\let\widering\relax% <-- new

\usepackage{pdfpages}
\usepackage{graphicx}

\usepackage{newpxtext,newpxmath} % <-- new, instead of 'mathptmx'
\usepackage{CJKutf8,upgreek,mathrsfs}

\usepackage[colorlinks,allcolors=blue]{hyperref}
\setcounter{tocdepth}{0} % show only chapter-level entries

%\numberwithin{equation}{section} % <-- not needed

\newtheorem{thm}{Theorem}[chapter]
\newtheorem{prop}[thm]{Proposition}
\newtheorem{coro}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem*{thm*}{Theorem}
\newtheorem*{prop*}{Proposition}
\newtheorem*{coro*}{Corollary}
\newtheorem*{lem*}{Lemma}

\theoremstyle{definition}
\newtheorem{dfn}[thm]{Definition}
\newtheorem{rem}[thm]{Remark}
\newtheorem*{dfn*}{Definition}
\newtheorem*{rem*}{Remark}

% new:
\usepackage{lipsum} % filler text
\usepackage[nottoc]{tocbibind} % create a toc entry for bibliography

\usepackage{etoolbox} % for '\patchcmd' macro
\makeatletter % needed for handling of macro names that contain '@'
\renewcommand{\@chapapp}{}
\patchcmd{\@makechapterhead}{\vspace*{50\p@}}{}{}{}
\patchcmd{\@makechapterhead}{\thechapter}{\thechapter\quad}{}{}
\patchcmd{\@makechapterhead}{\par\nobreak}{}{}{}
\patchcmd{\@makechapterhead}{\vskip 20\p@}{}{}{}
\makeatletter


\begin{document}

\pagestyle{plain} % page numbers at bottom of page, no headers

\frontmatter % roman page numbers, unnumbered chapters

\includepdf[width=\textwidth]{Thesis acceptance certificate}

\chapter{Acknowledgements}
\lipsum[1-4] % filler text

\chapter{Abstract in the official language}
\lipsum[1-4]

\chapter{Abstract in English}
\lipsum[1-4]

\tableofcontents


\mainmatter % arabic page numbers, numbered chapters


\chapter{Introduction}

\begin{equation} 1+1=2 \end{equation}
\lipsum[1-14]


\chapter{Preliminaries}

\begin{equation} 1+1=2 \end{equation}
\lipsum[1-14]


\chapter{Proof of the main result}

\begin{equation} 1+1=2 \end{equation}
\lipsum[1-14]


\chapter{Discussion}

\begin{equation} 1+1=2 \end{equation}
\lipsum[1-14]


\backmatter % switch to unnumbered chapters, keep arabic page numbers

\chapter{Appendix A. The Gauss equation}

\setcounter{equation}{0}
\setcounter{section}{0}
\renewcommand\theequation{A.\arabic{equation}}
\renewcommand\thesection{A.\arabic{section}}

\begin{equation} 1+1=2 \end{equation}
\lipsum[1-14]


\chapter{Appendix B. Weak solution}

\setcounter{equation}{0}
\setcounter{section}{0}
\renewcommand\theequation{B.\arabic{equation}}
\renewcommand\thesection{B.\arabic{section}}

\begin{equation} 1+1=2 \end{equation}
\lipsum[1-14]



\begin{thebibliography}{99}
\bibitem{MTW} Charles W. Misner, Kip S. Thorne, and John Archibald Wheeler,
\textit{Gravitation}, Princeton University Press, Princeton and Oxford, 2017. Reprint of the 1973 original.

\bibitem{Wald84} Robert M. Wald,
\textit{General relativity}, The University of Chicago Press, Chicago and London, 1984.
\end{thebibliography}

\end{document}

관련 정보