Graphics, Figures & TablesTwo series of caption

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
eswap0
Posts: 17
Joined: Tue Sep 28, 2010 8:40 pm

Two series of caption

Post by eswap0 »

Hi!
Here again, afer googling quite a bit.
While composing a document, figures/tables are inserted in a suitable place within the text, according to the [!htbp] preferencies.
Quite often you don't want big or complex figures/tables mixed within your text, and you prefer to send them to the end of the document, in a different section and with a specific caption series. Someting like getting Figure 1, 2...n when you put your figures/tables in the middle of the document and Annex 1, 2...n when you put them at the end.
I've been trying to deal with \appendix without success.
is ther any clue I can follow?
Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

jediwhelan
Posts: 16
Joined: Fri Jul 25, 2008 5:54 pm

Re: Two series of caption

Post by jediwhelan »

The standard way of doing this is simply reference the figures / tables / proofs or whatever in brackets:

[insert figure \ref{blahblah} about here]


Is this what you meant?
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Two series of caption

Post by meho_r »

So, basically, you need two types of figures. One way would be to simply create a new float type using, e.g., floatrow package (The floatrow package documentation, section 4) which you'll use for figures at the end of the document. E.g.:

Code: Select all

\documentclass[a4paper]{book}

\usepackage{lipsum}
\usepackage[demo]{graphicx}
\usepackage{floatrow}

\DeclareNewFloatType{annex}% A new float type for large figures
    {name=Annex}
    
\begin{document}

\chapter{A chapter}

\lipsum[1]

\begin{figure}[!htb]
\includegraphics[width=5cm,height=3cm]{test}
\caption{A figure}
\end{figure}

\section{A section}

\lipsum[1]

\begin{figure}[!htb]
\includegraphics[width=5cm,height=3cm]{test}
\caption{Another figure}
\end{figure}

\lipsum[1]

\appendix

\chapter{Large figures}

\lipsum[1-2]

\begin{annex}[!htb]
\includegraphics[width=11cm,height=14cm]{test}
\caption{And one more figure}
\end{annex}

\end{document}

Post Reply