附錄 B 的編號問題

附錄 B 的編號問題

參考我之前的請求,來自以下連結:

將羅格朗橙皮書附錄中的 \part 替換為字母而不是阿拉伯數字

我找不到關於如何取得附錄B的解決方案,其結構與附錄A相同:

\appendix
\part{\textcolor{SandyBrown}{\textsc{Appendice}}}
\chapterimage{chapter_head_10.pdf} % Chapter heading image
\chapter{Richiami di formalismo vettoriale}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\thechapter}{\Alph{chapter}}
\setcounter{chapter}{1}
\renewcommand{\thepart}{\arabic{part}}%part numbering in arabic

正是針對附錄 B

\renewcommand\thepart{\Alph{part}}
\part{\textcolor{SandyBrown}{\textsc{Appendice}}}
\chapterimage{chapter_head_10.pdf} % Chapter heading image
\chapter{Titolo per l'appendice B}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\thechapter}{\Alph{chapter}}
\setcounter{chapter}{0}

它沒有編號B.1、B.1.1。 ETC。

在此輸入影像描述

從圖中可以看出,附錄 B 的編號缺少編號前面的字母 B。

我該如何解決或修復該問題?

編輯 1:以下評論現已刪除。這是結果:

在此輸入影像描述

答案1

使用代碼中的設定

\appendix
\part{\textcolor{SandyBrown}{\textsc{Appendice}}}
\chapterimage{chapter_head_10.pdf} % Chapter heading image
\chapter{Richiami di formalismo vettoriale}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\thechapter}{\Alph{chapter}}
\setcounter{chapter}{1}
\renewcommand{\thepart}{\arabic{part}}%part numbering in arabic

如果新增第二個附錄 B,則所需的大部分操作都已完成。

\renewcommand\thepart{\Alph{part}}
\part{\textcolor{SandyBrown}{\textsc{Appendice}}}
\chapterimage{chapter_head_10.pdf} % Chapter heading image
\chapter{Titolo per l'appendice B}

通常\renewcommand\thepart{\Alph{part}}不需要行,但我想 - 我不知道你使用的模板 - 你使用的模板之前在某個地方重新定義了它...

相關內容