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
General ⇒ Repeat a previous figure?
-
- Posts: 20
- Joined: Thu Sep 06, 2007 7:31 pm
Re: Repeat a previous figure?
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.
\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.
Re: Repeat a previous figure?
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
Theo
Repeat a previous figure?
Try
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:
HTH,
Axel
Code: Select all
\renewcommand\thefigure{\ref{...}}
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}
Axel