Graphics, Figures & TablesLoF and LoT on the same page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
rockefeller
Posts: 6
Joined: Thu Oct 28, 2010 7:59 pm

LoF and LoT on the same page

Post by rockefeller »

Hi, I don't have too many figures and tables in my report, but i need to include lists of them. Is it possible to get \listoftables and \listoffigures on the same page?
Last edited by rockefeller on Tue Mar 29, 2011 9:38 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.

rockefeller
Posts: 6
Joined: Thu Oct 28, 2010 7:59 pm

Re: LoF and LoT on the same page?

Post by rockefeller »

... or one/or both on the same page as \tableofcontents (which in my case uses one full page and then only one or two lines on the next page)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

LoF and LoT on the same page

Post by localghost »

I see two possible approaches.
  • The global approach. This would mean to redefine the \chapter command regarding the prevention of page break.

    Code: Select all

    \makeatletter
    \renewcommand{\chapter}{%
    %  \if@openright\cleardoublepage\else\clearpage\fi  % this the original from the »report« class
      \par%  % this is the patch
      \thispagestyle{plain}%
      \global\@topnum\z@
      \@afterindentfalse
      \secdef\@chapter\@schapter
    }
    \makeatother
    These lines go into the document preamble. Note that this affects all chapters in your document. Probably needs manual adjustment by adding vertical space between chapters.
  • The local approach. Here we would turn off the effect of \cleardoublepage and \clearpage locally only for the concerned list.

    Code: Select all

    \listoffigures
    \begingroup
      \let\cleardoublepage\relax
      \let\clearpage\relax
      \listoftables
    \endgroup
    Some vertical space between the lists might be suggestive.
With both approaches side effects cannot be ruled out.


Thorsten
rockefeller
Posts: 6
Joined: Thu Oct 28, 2010 7:59 pm

Re: LoF and LoT on the same page?

Post by rockefeller »

Cool, thanks. The local approach works great.
Post Reply