我在 StackExchange 上找到了一个不错的附录标题。但是,我遇到了一个问题。它为目录中的章节编号,而我不想这样。这是我的序言:
\usepackage[titletoc]{appendix}
\usepackage{apptools}
\makeatletter
\def\thickhrulefill{\leavevmode \leaders \hrule height 1ex \hfill
\kern \z@}
\def\@makechapterhead#1{%
\reset@font
\vspace*{10\p@}%
{\parindent \z@
\begin{flushright}
\reset@font \scshape \bfseries \Huge\IfAppendix{Appendix}{} \thechapter \par
\end{flushright}
\hrule
\begin{flushright}
\reset@font \LARGE \strut #1\strut \par
\end{flushright}
\vskip 15\p@
}}
\def\@makeschapterhead#1{%
\reset@font
\vspace*{10\p@}%
{\parindent \z@
\begin{flushright}
\reset@font \scshape \bfseries \Huge\vphantom{\thechapter} \par%
\end{flushright}
\hrule
\begin{flushright}
\reset@font \LARGE \strut #1\strut \par
\end{flushright}
\vskip 15\p@
}}
\makeatother
我是这样写附录的:
\begin{appendices} \appendixtrue
\chapter{Technical Manual: How to Operate the Microscope}\label{apx:f}
\input{appendix1.tex}
\end{appendices}
现在,我已经尝试了不同的东西,比如renewcommand:
\begin{appendices}
\appendixtrue
\chapter*{Technical Manual: How to Operate the Microscope} % added an asterix
\label{apx:f}
\addcontentsline{toc}{chapter}{Technical Manual: How to Operate the Microscope} % Add this line
\input{appendix1.tex}
\end{appendices}
但它没有帮助。有人知道如何解决这个问题吗?
提前致谢!