
我在 \appendix 之後使用以下程式碼:
\renewcommand\appendixname{Appendix}
\chapter{}
我的附錄標題是「附錄 A」。如何刪除“A”,但仍保留方程式、圖像等的編號(例如,我的第一個方程式的編號仍然是 A.1)?
我嘗試過這個:
\renewcommand\thechapter{}
\renewcommand\thesection{\arabic{section}}.
然後“A”將從標題中刪除,這很棒。但隨後方程式、圖形等的數字(A.)也將被刪除,這是不應該的。
順便說一句,我正在使用論文。
答案1
如果您想要一個單獨的“章節”標題以及名稱“附錄”,對於某些文檔類,您可以這樣設定情況:
\appendix
\setcounter{chapter}{-1}
\chapter{Title}
\renewcommand{\thechapter}{A}
若要為附錄中可能包含的元素建立所需的形式和編號,請酌情新增這些說明。 (並非所有文件類別都會自動重置計數器)。
\setcounter{section}{0}
\setcounter{theorem}{0}
\renewcommand{\thetheorem}{\thechapter.\arabic{theorem}}
\setcounter{equation}{0}
\renewcommand{\theequation}{\thechapter.\arabic{equation}}
\setcounter{figure}{0}
\setcounter{table}{0}
我不確定是否可以thesis
這樣操作。
答案2
那麼您只需要附錄中的一章,並且希望將其命名為“附錄”而不是“附錄 A”?您可以使用帶有星號的章節版本。然後重新定義\theequation
為您想要的編號。
\chapter*{Appendix}
\renewcommand{\theequation}{A.\arabic{equation}}
如果您仍然希望它出現在您的中,\tableofcontents
您需要添加它,例如
\addcontentsline{toc}{chapter}{Appendix}
答案3
\appendix
\setcounter{chapter}{-1}
\addcontentsline{toc}{chapter}{Appendix}
\chapter{\label{chap:appendix} }
\input{appendix}