General ⇒ Table of contents alignment problem
-
- Posts: 16
- Joined: Sat Dec 06, 2008 7:55 pm
Table of contents alignment problem
\section*{textofsectionheading}
\addtocontents{toc}{textofsectionheading}
When I generate the table of contents, the first entry appears farther to the left than do the other entries. I moved different sections around and it always happens with the first section declaration. Any ideas as to how to fix this so that all entries are aligned to the left margin? Any ideas as to what is causing this?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Table of contents alignment problem
-
- Posts: 16
- Joined: Sat Dec 06, 2008 7:55 pm
Re: Table of contents alignment problem
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Table of contents alignment problem
Stefan
-
- Posts: 16
- Joined: Sat Dec 06, 2008 7:55 pm
Re: Table of contents alignment problem
I can do this with other entries using \section*{textofsection}
Re: Table of contents alignment problem
both have ToC configuration support
-
- Posts: 16
- Joined: Sat Dec 06, 2008 7:55 pm
Re: Table of contents alignment problem
\usepackage{tocloft]
...
\section*{sectiontext}
\renewcommand{\@dotsep}{10000}
\addcontentsline{toc}{section}{sectiontext}
and I've tried:
\section*{sectiontext}
\renewcommand{cftXdotsep}{\cftnodots}
\addcontentsline{toc}{section}{sectiontext}
and I've tried inserting {\cftnodots} in the \addcontentsline expression
but I am not getting anywhere.
Sorry to be a persistent questioner.
Re: Table of contents alignment problem
-
- Posts: 16
- Joined: Sat Dec 06, 2008 7:55 pm