
Есть ли способ изменить макет раздела оглавления после перехода к приложениям?
Я хочу, чтобы в следующем документе было Приложение А. Название, а не номер страницы:
Приложение A из моего \thesection закрывает заголовок. Я пробовал "обновлять" l@section, чтобы попытаться настроить, но я не знаю как.
Я настраиваю команду приложения следующим образом:
\newcommand{\clearemptydoublepage}
{\newpage{\pagestyle{empty}\cleardoublepage}}
\renewcommand\appendix{\par
\clearemptydoublepage
\setcounter{section}{0}
\setcounter{subsection}{0}
\renewcommand\section{%
\renewcommand\thesection{\appendixname \ \@Alph\c@section}
\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\centering\normalfont
\normalsize\bfseries\scshape}}
\renewcommand\subsection{%
\renewcommand\thesection{\@Alph\c@section}
\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\normalsize\bfseries\scshape}}
\renewcommand\thesubsection{\thesection.\@arabic\c@subsection}
}
И затем делаем:
\appendix
\makeappendixtitle{Add title for appendix A}
\section{Title}
\subsection{Appendix Sub}
First appendix
Мой аппендикс выглядит нормально, вот так:
решение1
Было бы проще использовать appendix
страницу. Там есть возможность поместить слово Appendix
перед каждым приложением в теле, но скрыть его в оглавлении.
\documentclass{article}
\usepackage[title]{appendix}
\begin{document}
\tableofcontents
\section{Ordinary section}
\cleardoublepage
\begin{appendices}
\section{Title}
\subsection{Appendix Sub}
First appendix
\end{appendices}
\end{document}