Skip to content

anonymous /gist:55492
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
\documentclass{article}
\usepackage{lipsum}
\makeatletter
\let\old@addcontentsline\addcontentsline
\def\trivial@addcontentsline#1#2#3{}
\def\hiddensection#1{%
\let\addcontentsline\trivial@addcontentsline
\section{#1}
\let\addcontentsline\old@addcontentsline
}
\makeatother
\begin{document}
\tableofcontents
\section{A}
\lipsum[1]
\hiddensection{B}
\lipsum[2]
\section{C}
\lipsum[3]
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.