答案1
由于您使用book
,因此您的最高级别切片命令是。因此,对于您的附录\chapter
也使用 是有意义的。\chapter
\documentclass[british]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\begin{document}
\chapter{Lorem}
Lorem ipsum
\begin{equation}x^2+y^2=z^2\end{equation}
\appendix
\chapter{General concepts}
Dolor sit amet
\begin{equation}x^2+y^2=z^2\end{equation}
\end{document}
如果您希望将\section
其用于附录,则需要付出更多的努力。
\documentclass[british]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{etoolbox}
\apptocmd\appendix{%
\addcontentsline{toc}{chapter}{Appendix}%
\renewcommand*{\thesection}{\Alph{section}}%
\counterwithin{equation}{section}%
\counterwithin{figure}{section}%
\counterwithin{table}{section}%
}{}{}
\begin{document}
\tableofcontents
\chapter{Lorem}
Lorem ipsum
\begin{equation}x^2+y^2=z^2\end{equation}
sit amet
\begin{equation}x^2+y^2=z^2\end{equation}
\appendix
\section{General concepts}
Dolor sit amet
\begin{equation}x^2+y^2=z^2\end{equation}
\end{document}