Graphics, Figures & Tables ⇒ Multiple copies of the same figure, equation etc.
Multiple copies of the same figure, equation etc.
1. Is there a away to (re)insert a figure, or equation that already exists in the document based on its label?
2. Is there a way to insert an equation/figure yet have it referenced back to the original? I.E. if I put an equation in chapter 4 that also existed in chapter 1, can i have it list the reference the equation number for chapter 1? (1.7 instead of 4.2 for example)
Thanks!
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
Multiple copies of the same figure, equation etc.
To reuse an equation number, you can use the \tag feature to manually set the tag of the reused equation. To set a figure number, I think you have to manually tinker with the involved counters. Does the following example do what you want?
Code: Select all
\documentclass{book}
\usepackage{amsmath}
\begin{document}
\chapter{First}
\begin{equation}
\label{eq:1}
A = B
\end{equation}
\begin{figure}
\centering
\rule{2cm}{2cm}
\caption{Figure 1}
\label{fig:1}
\end{figure}
\chapter{Second}
\begin{equation}
\tag{\ref{eq:1}}
A = B
\end{equation}
\begin{figure}
\centering
\rule{2cm}{2cm}
\caption{Figure 2}
\label{fig:2}
\end{figure}
\begin{figure}
\addtocounter{figure}{-1}
\renewcommand\thefigure{\ref{fig:1}}
\centering
\rule{2cm}{2cm}
\caption{Figure 1 again}
\end{figure}
\begin{figure}
\centering
\rule{2cm}{2cm}
\caption{Figure 3}
\label{fig:3}
\end{figure}
\begin{figure}
\centering
\rule{2cm}{2cm}
\caption{Figure 4}
\label{fig:4}
\end{figure}
Three figures: \ref{fig:1} \ref{fig:2} \ref{fig:3}
\end{document}