1

I have a huge problem with the right margin of my List of Figures and List of Tables. Some words ignore the right margin. Time periods, I've written like this (2071-2100) also don't appear in a acceptable way in the list of figures and list of tables and just ignore the margin. Abbildung means figure and Tabelle means table.

\usepackage[ngerman]{babel}

%Format list of figures
\titlecontents{figure}
  [0em]
  {}
  {\figurename\enspace\thecontentslabel:\enspace}
  {}
  {\titlerule*[1pc]{.}\contentspage}[\vskip10pt]

%Format table of contents
    \titlecontents{table}
  [0em]
  {}
  {\tablename\enspace\thecontentslabel:\enspace}
  {}
  {\titlerule*[1pc]{.}\contentspage}[\vskip10pt]

% No numbering of literature chapter for list of tables
\usepackage[nottoc,notlot,notlof]{tocbibind}

\addcontentsline{toc}{section}{Abbildungsverzeichnis}
\listoffigures

\addcontentsline{toc}{section}{Tabellenverzeichnis}
\listoftables

The code above makes my LoF and LoT look like this:

enter image description here

enter image description here

enter image description here

  • You could add \sloppy or possibly \string\sloppy to your \addcontentsline text. – John Kormylo Nov 9 '18 at 3:53
1

This combination of code solved my problem:

\sloppy
\listoffigures
\listoftables

\fussy % in the case there is something else after the LOF and LOT.

I should probably use the package microtype in the future to avoid any of these problems, because it reduces bad boxes and problems with the hyphenation.

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.