General ⇒ Need help with \listoftables and \listoffigures.
-
- Posts: 1
- Joined: Tue Apr 15, 2008 5:28 am
Need help with \listoftables and \listoffigures.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Need help with \listoftables and \listoffigures.
Take a look at the following example:
Code: Select all
\documentclass{article}
\usepackage[font=small,labelfont=bf]{caption}[2008/04/01]
\begin{document}
\listoffigures
\cleardoublepage
\listoftables
\cleardoublepage
\begin{figure}[!ht]
\centering
\fbox{Test figure 1}
\caption{test figure 1}
\label{fig:testfigone}
\end{figure}
\begin{table}[!ht]
\centering
\begin{tabular}{c}
test table 1
\end{tabular}
\caption{test table 1}
\label{tab:testtabone}
\end{table}
\newpage
\begin{table}[!ht]
\centering
\begin{tabular}{c}
test table 2
\end{tabular}
\caption{test table 2}
\label{tab:testtabtwo}
\end{table}
\begin{figure}[!ht]
\centering
\fbox{Test figure 2}
\caption{test figure 2}
\label{fig:testfigtwo}
\end{figure}
\end{document}