General ⇒ Merging list of tables and list of figures
-
- Posts: 8
- Joined: Mon Jul 21, 2008 7:23 pm
Merging list of tables and list of figures
My Document contains just two tables; besides I have a a table of figures which is much richer; the problem is that the list of tables takes a hole page, and after this blank page comes the list of figures, which doesnt look nice; I would like to let the list of figures to start at the same page of the list of tables, any help?
Ralf
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Merging list of tables and list of figures
one quick solution could be to load the tocloft package, since with this package the ToC, LoF and LoT not necessarily begin in a new page. The following example illustrates this approach (I used \rule to simulate actual figures and tables):
Code: Select all
\documentclass{book}
\usepackage{tocloft}
\begin{document}
\tableofcontents
\clearpage
\listoftables
\listoffigures
\clearpage
\chapter{Test 1}
\begin{table}
\rule{5cm}{2cm}
\caption{test table 1.}
\label{tab:testt1}
\end{table}
\chapter{Test 2}
\begin{figure}
\rule{5cm}{2cm}
\caption{test figure 1.}
\label{fig:test1}
\end{figure}
\begin{table}
\rule{5cm}{2cm}
\caption{test table 1.}
\label{tab:testt2}
\end{table}
\end{document}
subforum.
-
- Posts: 8
- Joined: Mon Jul 21, 2008 7:23 pm
Re: Merging list of tables and list of figures
-
- Posts: 8
- Joined: Mon Jul 21, 2008 7:23 pm
Merging list of tables and list of figures
I generate the pdf file, then I go to the table of contecnts; if I press Table List or Figure List or Literature then I will be taken to the last section (calles Ausblick) of my document, not to the List of Tables or List of Figures or Literature:
Code: Select all
\documentclass{book}
\usepackage{tocloft}
anothe packages
\begin{document}
\tableofcontents
\clearpage
\chapter{Test 1}
\begin{table}
\rule{5cm}{2cm}
\caption{test table 1.}
\label{tab:testt1}
\end{table}
\chapter{Test 2}
\begin{figure}
\rule{5cm}{2cm}
\caption{test figure 1.}
\label{fig:test1}
\end{figure}
\begin{table}
\rule{5cm}{2cm}
\caption{test table 1.}
\label{tab:testt2}
\end{table}
\section{Ausblick}
\newpage
\addcontentsline{toc}{chapter}{Tabellenverzeichnis}
\listoftables
\addcontentsline{toc}{chapter}{Abbildungsverzeichnis}
\listoffigures
\clearpage
\end{document
Thank you in advance
Ralf
Merging list of tables and list of figures
Code: Select all
\documentclass[openany]{book}
\usepackage{tocloft}
\usepackage{hyperref}
\begin{document}
\tableofcontents
\clearpage
\chapter{Test 1}
\begin{table}
\rule{5cm}{2cm}
\caption{test table 1.}
\label{tab:testt1}
\end{table}
\chapter{Test 2}
\begin{figure}
\rule{5cm}{2cm}
\caption{test figure 1.}
\label{fig:test1}
\end{figure}
\begin{table}
\rule{5cm}{2cm}
\caption{test table 1.}
\label{tab:testt2}
\end{table}
\section{Ausblick}
\newpage
\phantomsection
\listoftables
\addcontentsline{toc}{chapter}{Tabellenverzeichnis}
\listoffigures
\addcontentsline{toc}{chapter}{Abbildungsverzeichnis}
\clearpage
\end{document}
-
- Posts: 8
- Joined: Mon Jul 21, 2008 7:23 pm