GeneralRepeat a previous figure?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Cupric
Posts: 5
Joined: Tue Dec 04, 2007 7:56 pm

Repeat a previous figure?

Post by Cupric »

Hi,

I'm writing my thesis and would like to repeat one or two key figures in the discussion chapter. Is there anyway to duplicate the previously inserted figures or do I have to insert them as new figure with new numbers. ie. Can I display figure 2.1 in multiple places? or does it have to be 6.1 if it is chapter 6?

Can I do this by doing something special to the caption command?

Thanks,
Theo

Recommended reading 2024:

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

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

chandangiri
Posts: 20
Joined: Thu Sep 06, 2007 7:31 pm

Re: Repeat a previous figure?

Post by chandangiri »

If u have used figure once in a chapter, suppose Chater 2, and set the level say
\label{chap2:fig:2} then whenever u refer this figure using \ref{chap2:fig:2} it will display the figure number corresponding to the figure number in chapter 2.
Cupric
Posts: 5
Joined: Tue Dec 04, 2007 7:56 pm

Re: Repeat a previous figure?

Post by Cupric »

Thanks for the tip, but I'm actually trying to redisplay the figure as well as just refer to it. Do you know of any way to do that?

Theo
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Repeat a previous figure?

Post by sommerfee »

Try

Code: Select all

\renewcommand\thefigure{\ref{...}}
just before \caption. (Use \ref* instead of \ref if you are using the hyperref package.) And decrement the figure counter (with has been incremented by \caption) afterwards. An example:

Code: Select all

\documentclass{article}
\begin{document}
\section{A}
\begin{figure}
A
\caption{A}
\label{A}
\end{figure}
\begin{figure}
B
\caption{B}
\label{B}
\end{figure}
\begin{figure}
A
\renewcommand\thefigure{\ref{A}}
\caption{A (again)}
\end{figure}
\addtocounter{figure}{-1}
\begin{figure}
C
\caption{C}
\label{C}
\end{figure}
\end{document}
HTH,
Axel
Post Reply