Page Layouthow to equal high of lines in table of content

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
nguyennb
Posts: 4
Joined: Sat Apr 20, 2013 6:18 pm

how to equal high of lines in table of content

Post by nguyennb »

Hi all!
One entry in my table of content involves a supscript symbol, thus the high of corresponding line is larger than others.
How can I equal high of all lines in order to get a beatiful table of content

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

how to equal high of lines in table of content

Post by kaiserkarl13 »

I can't reproduce your problem. Example:

Code: Select all

\documentclass{article}
\begin{document}
\tableofcontents
\section{Top Level}
\subsection{Sample Heading Above~3}
\subsection{Sample Heading Above~2}
\subsection{Sample Heading Above}
\subsection{This Is an SN$_2$ Reaction}
\subsection{Sample Heading Below}
\subsection{Sample Heading Below~2}
\subsection{Sample Heading Below~3}
\section{Bottom Level}
\subsection{Sample Heading Above~3}
\subsection{Sample Heading Above~2}
\subsection{Sample Heading Above}
\subsection{This Is Si$^{29}$ NMR Spectroscopy}
\subsection{Sample Heading Below}
\subsection{Sample Heading Below~2}
\subsection{Sample Heading Below~3}
\end{document}
Please post a Infominimal working example and I'll see what I can do.
Post Reply