![目录层次结构前言](https://linux22.com/image/452338/%E7%9B%AE%E5%BD%95%E5%B1%82%E6%AC%A1%E7%BB%93%E6%9E%84%E5%89%8D%E8%A8%80.png)
我想为目录添加不同的层次结构。目前它看起来像这样。
\documentclass[12pt, a4paper]{article}
\usepackage{setspace}
\usepackage{xesearch} %word count
\usepackage[margin=.9in]{geometry}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{subcaption} %subfigure
\usepackage{caption} %subfigure
\usepackage{changepage} %indentsforquotes
\usepackage{lipsum} %indents for quotes
\graphicspath{{./Dissertation/}}
\usepackage{float}
\pagenumbering{arabic} % numebrs pages
\doublespacing %double spaced lines
%TO USE GREEK
\usepackage{textgreek}
\usepackage{iftex}
\ifXeTeX
\usepackage{fontspec}
\else
\usepackage{luatextra}
\fi
\defaultfontfeatures{Ligatures=TeX}
\usepackage{polyglossia}
\usepackage[autostyle=true]{csquotes}
\setmainfont{cmun}[
Extension=.otf,UprightFont=*rm,ItalicFont=*ti,
BoldFont=*bx,BoldItalicFont=*bi,
]
\setsansfont{cmun}[
Extension=.otf,UprightFont=*ss,ItalicFont=*si,
BoldFont=*sx,BoldItalicFont=*so,
]
\setmonofont{cmun}[
Extension=.otf,UprightFont=*btl,ItalicFont=*bto,
BoldFont=*tb,BoldItalicFont=*tx,
]
%END OF GREEK
%bib
\usepackage[nottoc]{tocbibind}
\begin{document}
\section{Abstract}
enter an abstract?
\pagebreak
\tableofcontents
\section{Introduction}
lalala
\section{Conclusion}
hi hi
%references list
\pagebreak
\section{Ancient Sources and References}
\begin{enumerate}
\item Res Gestae
\end{enumerate}
insert references here
\bibliographystyle{unsrt}
\bibliography{references}
\end{document}
但我希望我的摘要不要与章节编号相同。相反,我希望它被标记为 i、ii、iii、ix 等。我想添加致谢部分和此先前部分中的其他内容。
谢谢!
答案1
感谢您的 MWE(但它并不是最小的,因为它只需要包含与您的问题相关的代码)。
% secumprob.tex SE 650381
\documentclass[12pt, a4paper]{article}
\usepackage{comment} %%%%%%%%%%%%%%% PW
\begin{comment}
\usepackage{setspace}
%%%%\usepackage{xesearch} %word count
\usepackage[margin=.9in]{geometry}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{subcaption} %subfigure
\usepackage{caption} %subfigure
\usepackage{changepage} %indentsforquotes
\usepackage{lipsum} %indents for quotes
\graphicspath{{./Dissertation/}}
\usepackage{float}
\pagenumbering{arabic} % numebrs pages
\doublespacing %double spaced lines
%TO USE GREEK
\usepackage{textgreek}
\usepackage{iftex}
\ifXeTeX
\usepackage{fontspec}
\else
\usepackage{luatextra}
\fi
\defaultfontfeatures{Ligatures=TeX}
\usepackage{polyglossia}
\usepackage[autostyle=true]{csquotes}
\setmainfont{cmun}[
Extension=.otf,UprightFont=*rm,ItalicFont=*ti,
BoldFont=*bx,BoldItalicFont=*bi,
]
\setsansfont{cmun}[
Extension=.otf,UprightFont=*ss,ItalicFont=*si,
BoldFont=*sx,BoldItalicFont=*so,
]
\setmonofont{cmun}[
Extension=.otf,UprightFont=*btl,ItalicFont=*bto,
BoldFont=*tb,BoldItalicFont=*tx,
]
%END OF GREEK
\end{comment}
%bib
\usepackage[nottoc]{tocbibind}
%title page
%old
\title{Sales of sail: The economy of Roman sail production}
\author{Leah Tavasi \\ University of Oxford \\ MSc Archaeology}
\date{Submitted: August 31 2022}
\begin{document}
\begin{titlepage}
%\input{title page} %%%% you don't provide that
\thispagestyle{empty} %does not number first page
\end{titlepage}
\renewcommand{\thesection}{\roman{section}} %% roman numbers for sections
\section{Abstract}
enter an abstract?
or a section called acknowlegements or other sections
\pagebreak
\tableofcontents
\setcounter{section}{0} %%% start section numbers again
\renewcommand{\thesection}{\arabic{section}} %%% with arabic numbers
\section{Introduction}
lalala
\section{Conclusion}
hi hi
%references list
\pagebreak
\section{Ancient Sources and References}
\begin{enumerate}
\item Res Gestae
\end{enumerate}
insert references here
\bibliographystyle{unsrt}
\bibliography{references}
\end{document}
完成上述操作后,\begin{document}
您可以看到用于更改部分编号的代码。