TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 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.