2

I am in the process of editing my final PhD. thesis using latex. I need to satisfy certain formatting criteria before I can submit my final thesis to graduate school.

One problem I am facing right now is how to change the left margin of LIST OF TABLES and LIST OF FIGURES to 1.25 inches (see the attached figure below). enter image description here

Currently, the left margins of all other sections are 1.25 inches and I would like to know to how to change the left margin of LIST OF TABLES and LIST OF FIGURES without affecting other sections.

I guess it has something to do with the following code, but I am not sure which line I need to change exactly

%% tocloft typesets ToC title, so we must give it our heading formats
\renewcommand{\cfttoctitlefont}{\hfill\ncsu@headingformat}
\renewcommand{\cftaftertoctitle}{\hfill}

\renewcommand{\listfigurename}{LIST OF FIGURES}
\settowidth{\cftfignumwidth}{Figure 00.00}
\renewcommand{\cftfigpresnum}{Figure }
\newcommand{\thesislistoffigures}{%
\singlespacing%
\setlength{\cftbeforeloftitleskip}{-\baselineskip}
\setlength{\ncsu@leading}{\baselineskip-\ncsu@capitalheight}%
\setlength{\cftafterloftitleskip}%
{\ncsu@afterschapsep-\cftbeforechapskip-\ncsu@leading}%
\listoffigures%
\clearpage%
\ncsu@defaultspacing%
}
\renewcommand{\cftloftitlefont}{\hfill\ncsu@headingformat}
\renewcommand{\cftafterloftitle}{\hfill}

I found two posts related to my problem but could not resolve my issue completely.

List of tables and List of figures right margin

List of Figures page Margins

It would be greatly appreciated if anyone could shed some lights on this issue.

Thank you

2
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – user11232 Apr 23 '15 at 22:36
  • Please provide a minimal working example (MWE) always. – user11232 Apr 23 '15 at 22:37
2

The space on the left is called indent you can change it with cfttabindent{<value>} for tables and \cftfigindent{<value>} for figures like

\setlength{\cfttabindent}{1.25in}
\setlength{\cftfigindent}{1.25in}

Here are the default values (screen shot from tocloft manual)

enter image description here

\documentclass{book}
\usepackage{showframe} %% for demo only
\usepackage{tocloft}
\setlength{\cfttabindent}{1.25in}    %% adjust as you like
\setlength{\cftfigindent}{1.25in}    %% adjust as you like
\begin{document}
\listoftables
\listoffigures
\chapter{some chapter}
\section{some section}
\begin{figure}
\caption{Some figure}
\end{figure}
\begin{table}
  \caption{some table}
\end{table}


\end{document}

enter image description here

For margins are violated bit, you have to provide the text. However, you may try adding \usepackage{microtype} to your preamble. In most of the cases this works well.

0

Answer to the problem with the margin violated by "graphene/substrate":

In general, \sloppy can help to alleviate linebreak problems in narrow tables. Here, however, it wouldn't. The linebreak algorithm fails when words are connected by a slash. You need to set breakpoints manually. graphene/sub\-strate should do.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.