On Mon, Aug 24, 2009 at 12:04 AM, Vyatcheslav Yatskovsky <yatskovsky@gmail.com> wrote:
Hello

I want to place contents in the beginning of the document with "Contents" label above it. If I do like

\placecontent

\section{Sec1}

\section{Sec2}
...

it's ok, but

\section{Contents}

\placecontent

\section{Sec1}

\section{Sec2}
...

Why not use the first option and use \completecontent instead of \placecontent? It will give you the Contents heading you want. So try:

\completecontent

\section{Sec1}

\section{Sec2}
...