나는 부록에 대해 몇 가지를 정의했습니다.
\newcommand{\beginsupplement}{%
\setcounter{table}{0}
\renewcommand{\thetable}{S\arabic{table}}%
\setcounter{figure}{0}
\renewcommand{\thefigure}{S\arabic{figure}}%
\addcontentsline{toc}{chapter}{Appendix}
\renewcommand{\thesection}{\Alph{section}}
}
이제 다음을 사용하여 부록 섹션을 시작하면 \beginsupplement
위 섹션의 헤더를 가져옵니다. 내 예에서는 'List of Tables'라는 헤더가 표시됩니다. 이 스크립트에서 문제를 시뮬레이션했습니다.
\documentclass{scrbook}
\newcommand{\beginsupplement}{%
\setcounter{table}{0}
\renewcommand{\thetable}{S\arabic{table}}%
\setcounter{figure}{0}
\renewcommand{\thefigure}{S\arabic{figure}}%
\addcontentsline{toc}{chapter}{Appendix}
\renewcommand{\thesection}{\Alph{section}}
}
\begin{document}
\chapter{Tabelle}
\begin{table}
\caption[Settings native MS]{Used parameters for native MS}
\begin{tabular}{ll}\hline
\textbf{Parameter} & \textbf{Value}\\\hline
1 & 2\\\hline
\end{tabular}
\label{tab:nms}
\end{table}
\newpage
\listoftables
\clearpage
\beginsupplement
text
\end{document}
어떤 도움을 주셔서 감사합니다!
답변1
\markboth{\appendixname}{}
원하는 결과에 따라 또는 중 하나를 추가해야 합니다 \markboth{}{}
.
예:
\documentclass[
captions=tableheading,% <- suggested option
%numbers=noenddot% <- maybe you want this option
]
{scrbook}
\usepackage{lipsum}% only for dummy text
\usepackage{xpatch}
\makeatletter
\xapptocmd\appendix{%
\cleardoubleoddpage
%
\ifdim \@chapterlistsgap>\z@
\doforeachtocfile{%
\iftocfeature{\@currext}{chapteratlist}{%
\addtocontents{\@currext}{\protect\addvspace{\@chapterlistsgap}}%
}{}%
}%
\fi
\addchaptertocentry{}{\appendixname}%
%
\markboth{\appendixname}{}% <- added
%
\renewcommand{\thesection}{\Alph{section}}%
\setcounter{table}{0}%
\renewcommand{\thetable}{S\arabic{table}}%
\setcounter{figure}{0}%
\renewcommand{\thefigure}{S\arabic{figure}}%
}{}{\PatchFailed}
\makeatother
\begin{document}
\chapter{First chapter}
\section{Tables}
\captionof{table}{First table in this chapter}
\begin{table}
\caption[Settings native MS]{Used parameters for native MS}\label{tab:nms}
\begin{tabular}{ll}\hline
\textbf{Parameter} & \textbf{Value}\\\hline
1 & 2\\\hline
\end{tabular}
\end{table}
\lipsum[1-20]
\chapter{Next chapter}
\captionof{table}{Next table}
\listoftables
\appendix
\section{Section in appendix}
\captionof{table}{Appendix figure}
\captionof{table}{Another appendix figure}
\lipsum[21-40]
\end{document}
결과: