Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'd like to add an appendix to the TOC without showing its headline over the continuous text.

Minimal Example:

\documentclass{scrartcl}
\begin{document}
    \tableofcontents

    \section{A Section}
    Lorem ipsum.

    \appendix
    \section{Appendix with Headline}
    This section has a headline.

    \section{Appendix without Headline}
    This section should not have a headline.
\end{document}

An idea would be using \addcontentsline instead of \section but then I lose the foregoing "B.":

\addcontentsline{toc}{section}{Appendix without Headline}
share|improve this question

1 Answer 1

up vote 2 down vote accepted

It's a somewhat strange requirement, but here you go. (Note that this does not take care of the numbering of additional "visible" sections.)

\documentclass{scrartcl}
\begin{document}
    \tableofcontents

    \section{A Section}
    Lorem ipsum.

    \appendix
    \section{Appendix with Headline}
    This section has a headline.

    \addcontentsline{toc}{section}{\protect\numberline{B}Appendix without Headline}
    \bigskip\noindent% Optional
    This section should not have a headline.
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.