Page LayoutMargin and Line Breaks for LoT and LoF

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
foist
Posts: 5
Joined: Sat Aug 13, 2011 3:42 am

Margin and Line Breaks for LoT and LoF

Post by foist »

I have three minor changes needed to be made to my LoT and LoF which I can't seem to figure out how to implement.

First, I need the top margins of only the LoT and LoF to be 1". The other chapter titles should be 2", including the ToC. I saw a post on margins, but I can't seem to make it work for my situation: http://www.latex-community.org/forum/vi ... f=5&t=1533

Second, is there a way to impose a line break around 3/4 of the page wide for long captions in the LoT and LoF? I would like to avoid using short captions.

Third, is there a way to alter the spacing of these captions in the LoT and LoF? Specifically, when there is a line break for captions, the spacing between the two lines for the one caption should be single spaced, and the spacing between two different captions should be double spaced.

Here's some code that should compile to work with:

Code: Select all

\documentclass[12pt,notitlepage]{report}
\usepackage[english]{babel}
\usepackage{tocloft} %change table of contents

\renewcommand{\cftbeforesecskip}{0em}
\renewcommand{\contentsname}{TABLE OF CONTENTS}
\renewcommand{\cfttoctitlefont}{\hfill\normalsize\textbf}
\renewcommand{\cftaftertoctitle}{\hfill}

\renewcommand{\listfigurename}{\normalsize\textbf{LIST OF FIGURES}}
\renewcommand{\cftloftitlefont}{\hfill\normalsize\textbf}
\renewcommand{\cftafterloftitle}{\hfill}

\renewcommand{\listtablename}{\normalsize\textbf{LIST OF TABLES}}
\renewcommand{\cftlottitlefont}{\hfill\normalsize\textbf}
\renewcommand{\cftafterlottitle}{\hfill}

\renewcommand{\cftchapfont}{\normalfont} %chapters are not bolded
\renewcommand{\cftchapdotsep}{\cftdotsep} %chapters with dots to pg. number

\cftpagenumbersoff{part}


\begin{document}
  \tableofcontents
  \cleardoublepage
  \addcontentsline{toc}{chapter}{\normalfont LIST OF TABLES}
  \listoftables
  \addcontentsline{lot}{part}{\normalsize\normalfont{Table}}
  \cleardoublepage \newpage
  \addcontentsline{toc}{chapter}{\normalfont LIST OF FIGURES}
  \listoffigures
  \addcontentsline{lof}{part}{\normalsize\normalfont{Figure}}
  \addcontentsline{toc}{part}{\normalsize\normalfont{Chapter}}
  \clearpage\newpage
A pdf of how the LoT and LoF should look like is here: http://gradschool.unc.edu/etdguide/pdf/listoftables.pdf
Any help would be much appreciated!
Last edited by localghost on Tue Jun 05, 2012 7:35 pm, edited 1 time in total.

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

foist
Posts: 5
Joined: Sat Aug 13, 2011 3:42 am

Margin and Line Breaks for LoT and LoF

Post by foist »

Perhaps I was too anxious in looking for a solution when I posted. After some sleuthing, here are solutions to my formatting issues.
  1. To decrease the top margins for LoT and LoF, I used the tocloft package and these lines in the preamble

    Code: Select all

    \setlength{\cftbeforelottitleskip}{-.3in} %move LoT up 1"
    \setlength{\cftbeforeloftitleskip}{-.3in} %move LoF up 1"
  2. To impose a line break around 3/4 of the page wide for long captions in the LoT and LoF I used this line

    Code: Select all

    \cftsetrmarg{2.05in} 
  3. Finally, to alter spacing, I used

    Code: Select all

    \tableofcontents
    \cleardoublepage
    \addcontentsline{toc}{chapter}{\normalfont LIST OF TABLES}
    \listoftables
    \addcontentsline{lot}{part}{\normalsize\normalfont{Table}}
    \cleardoublepage \newpage
    \addcontentsline{toc}{chapter}{\normalfont LIST OF FIGURES}
    \listoffigures
    \addcontentsline{lof}{part}{\normalsize\normalfont{Figure}}
    \addcontentsline{toc}{part}{\normalsize\normalfont{Chapter}}
    \clearpage\newpage
    and in the preamble

    Code: Select all

    \setlength{\cftbeforesecskip}{12pt}
    \setlength{\cftparskip}{12pt}
Hope this can help someone besides me.
Post Reply