3

How can I have a page break manually inserted into the list of figures (\listoffigures)? I need a page break after a certain line/image-caption.

Consider MWE:

\documentclass[14pt, a4paper]{extreport}
\usepackage[left=3.5cm, right=2.5cm, top=3cm, bottom=3cm]{geometry}
\usepackage[toc,page]{appendix}
\usepackage{caption}
\usepackage{graphicx}
\begin{document}
\renewcommand{\contentsname}{Table of Contents}
\tableofcontents{}
\addcontentsline{toc}{chapter}{Table of Contents}
\newpage
%%------------List of Figures----------------------
\listoffigures{}
\addcontentsline{toc}{chapter}{List of Figures}

\chapter{someCH}
\begin{figure}[htbp]
   \centering
      \includegraphics[height=8cm]{example-image-b}
\caption{bb}
\end{figure}

\part*{Test}
\markboth{}{}
\begin{figure}[htbp]
   \centering
      \includegraphics[height=8cm]{example-image-b}
\caption{name}
\end{figure}

\begin{figure}[htbp]
   \centering
      \includegraphics[height=8cm]{example-image-b}
\caption{bbb}
\end{figure}
\addtocontents{lof}{\protect\pagebreak}
\appendix
\chapter{chapt}\label{a.b}
\begin{figure}[htbp]
   \centering
      \includegraphics[height=8cm]{example-image-b}
\caption{name}
\end{figure}
\end{document}
9
  • Hello! Maybe this could serve as a starting point? But I didn’t try this on figures or tables yet tex.stackexchange.com/questions/6489/… Sep 13 '17 at 20:31
  • 1
    \addtocontents{lof}{\protect\newpage} After the figure where the pagebrak shoul be
    – user2478
    Sep 13 '17 at 20:31
  • 1
    Do this when you're sure you won't make any other change and clearly mark the code in order to be able to find it: between two paragraphs before the figure you want in the next page add \addtocontents{lof}{\protect\pagebreak}.
    – egreg
    Sep 13 '17 at 20:32
  • So, now you got the same answer about three times ;) Sep 13 '17 at 20:42
  • 1
    @JasperHabicht But \pagebreak is better than \newpage, actually, because if \flushbottom is in force LaTeX will fill the page rather than truncate it.
    – egreg
    Sep 13 '17 at 20:46
2

you need to add the extra line with the page break after the pages on to which the other floats had floated (or add it within the float) placing it in the first appendix is simplest here

\documentclass[14pt, a4paper]{extreport}
\usepackage[left=3.5cm, right=2.5cm, top=3cm, bottom=3cm]{geometry}
\usepackage[toc,page]{appendix}
\usepackage{caption}
\usepackage{graphicx}
\begin{document}
\renewcommand{\contentsname}{Table of Contents}
\tableofcontents{}
\addcontentsline{toc}{chapter}{Table of Contents}
\newpage
%%------------List of Figures----------------------
\listoffigures{}
\addcontentsline{toc}{chapter}{List of Figures}

\chapter{someCH}
\begin{figure}[htbp]
   \centering
      \includegraphics[height=8cm]{example-image-b}
\caption{bb}
\end{figure}

\part*{Test}
\markboth{}{}
\begin{figure}[htbp]
   \centering
      \includegraphics[height=8cm]{example-image-b}
\caption{name}
\end{figure}

\begin{figure}[htbp]
   \centering
      \includegraphics[height=8cm]{example-image-b}
\caption{bbb}
\end{figure}



\appendix
\chapter{chapt}\label{a.b}
\addtocontents{lof}{\protect\pagebreak}

\begin{figure}[htbp]
   \centering
      \includegraphics[height=8cm]{example-image-b}
\caption{name}
\end{figure}
\end{document}

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.