我用這段程式碼來產生附錄
\documentclass [a4paper,12pt,oneside,final]{book}
\usepackage[titletoc,title]{appendix}
\begin{document}
.
.
.
.
\clearpage
\appendix
\newpage
\section{Appendix A}
Stuff here
\section{Second Appendix}
Stuff here
\section{Third Appendix}
Stuff here
\end{document}
它以如下格式出現,.1 Appendix A
如圖所示
如何搭車,.1
所以我只有Appendix A
另外,如何為附錄製作標題圖塊,將章節標題放在標題的左側,頁碼放在標題的右側
有什麼建議嗎?
答案1
實際上,在書籍文檔類中,附錄是作為章節編寫的。
\documentclass [a4paper,12pt,oneside,final]{book}
\usepackage[titletoc,title]{appendix}
\pagestyle{headings} %% for headings, for more customization, use fancyhdr package
\begin{document}
.
%\frontmatter %% better to use this mark up
.
.
.
%\mainmatter %% better to use this mark up
\begin{appendices}
\chapter{Appendix A}
\section{Stuff here}
\clearpage
Some
\chapter{Second Appendix}
Stuff here
\chapter{Third Appendix}
Stuff here
\end{appendices}
%%backmatter %% better to use this mark up
\end{document}