Search found 2 matches

by xiaodang
Sat Feb 04, 2012 11:33 pm
Forum: General
Topic: Add Stuff to ToC
Replies: 2
Views: 1609

Add Stuff to ToC

Thanks so much! It works well now.
Stefan_K wrote:Hi xiaodang,

welcome to the board!

Nice complete minimal example. You can fix it by adding \par:

Code: Select all

\addtocontents{toc}{\textit{the author}\par}
Stefan
by xiaodang
Sat Feb 04, 2012 8:22 am
Forum: General
Topic: Add Stuff to ToC
Replies: 2
Views: 1609

Add Stuff to ToC

Hi all,

I have a problem when making the table of contents. I want to add the author below the section title, but it doesn't work.
\documentclass[12pt]{article}

\begin{document}
\tableofcontents
\addcontentsline{toc}{section}{This Is the First Section}
\addtocontents{toc}{\textit{the author ...