부록 섹션 번호가 잘못되었습니다. 전체 프로젝트의 위치는 다음과 같습니다. https://github.com/JerryOpenix/Debugging-With-GDBpdflatex : 부록 섹션 번호가 잘못되었습니다.
MWE는 다음과 같습니다. 부록 B의 섹션 번호가 잘못되었습니다.
부록 B의 섹션 번호를 수동으로 0으로 설정하지 마십시오.
\documentclass[12pt,twoside,a4paper,openright]{book}
\usepackage[subpreambles=false]{standalone}
\usepackage[toc, page]{appendix}
\begin{document}
\pagenumbering{arabic}
\appendix
\renewcommand{\thechapter}{A\alph{chapter}}
\chapter*{Appendix A Installing GDB}
\addcontentsline{toc}{chapter}{Installing GDB}
\section*{tools to build gdb}
\#TODO
\setcounter{section}{0}
\section{call configuration script}
\#TODO
\renewcommand{\thechapter}{B\alph{chapter}}
\chapter*{Appendix B GDB protocol}
\addcontentsline{toc}{chapter}{GDB protocol}
\section{Overview}
\#TODO
\cleardoublepage
\end{document}`