Page LayoutLOF and LOT indent

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
tipoftheday
Posts: 6
Joined: Thu Dec 03, 2009 3:05 pm

LOF and LOT indent

Post by tipoftheday »

Hi,

I would like to decrease the horizontal indent to zero on my LOT and LOF. (i.e. I want the items to appear flush with the left margin) I previously looked through the forum and found somebody asking a similar question but now I can't find it again! Regardless, the question was answered by pointing the user to the tocloft package. I have read the documentation and tried to implement it on some simple code as follows...

Code: Select all

\documentclass[twoside]{book}

\makeatletter 
\renewcommand{\l@kind}{0 em}
\makeatother


\pagestyle{empty}

\begin{document}
	
\listoftables

\chapter{test}

\begin{table}
	\begin{center}
	\begin{tabular}{c}
		4\\
		4\\
		4\\
	\end{tabular}
	\end{center}
	\caption{caption}
	\label{label}
\end{table}

\end{document}
I am less than sure that \l@kind is the correct term and I know that it is incorrectly specified because I get an error message on typesetting.

Can anyone help with this please?

Recommended reading 2024:

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

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

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

LOF and LOT indent

Post by php1ic »

I'm using an altered .cls file for my thesis that also has no indent in the LOT. I have altered your code so that there is now no indent.

The 0.0em is the indent, and 2.3em the gap between number and LOT caption. I don't understand the rest enough to try and explain.

Code: Select all

\documentclass[twoside]{book}

\makeatletter
%\renewcommand{\l@kind}{0 em}
\renewcommand*{\l@table}{\@dottedtocline{1}{0.0em}{2.3em}}
\makeatother


\pagestyle{empty}

\begin{document}
   
\listoftables

\chapter{test}

\begin{table}
   \begin{center}
   \begin{tabular}{c}
      4\\
      4\\
      4\\
   \end{tabular}
   \end{center}
   \caption[Hello]{caption}
   \label{label}
\end{table}

\end{document}
tipoftheday
Posts: 6
Joined: Thu Dec 03, 2009 3:05 pm

Re: LOF and LOT indent

Post by tipoftheday »

Thanks so much, that's really helpful.
Post Reply