Hello,
I am writing my dissertation using latex. I do have more than 100 figures/tables in chapters 4 and 5. The figure files are stored in the same latex directory in an ascending order (i.e., Fig 4-1, Fig 4-2, etc). Sometimes I need to either add, or delete, a figure/table in the middle of chapter 4 for example, what is the most efficient way to do so without going over all the figures/tables after that position and changing the numbers manually? I hope you understood the problem and have some solutions. Thanks
Graphics, Figures & Tables ⇒ How to add or delete figure/table in between other figures/tables
-
- Posts: 12
- Joined: Sun Oct 02, 2016 5:09 am
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
How to add or delete figure/table in between other figures/tables
LaTeX numbers figures automatically using the
That you named the figures using numbers, is a design flaw. That should never be done.
caption
command. That you named the figures using numbers, is a design flaw. That should never be done.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
-
- Posts: 12
- Joined: Sun Oct 02, 2016 5:09 am
How to add or delete figure/table in between other figures/tables
Do you mean that I should've named these figures exactly as their corresponding captions?Johannes_B wrote:LaTeX numbers figures automatically using thecaption
command.
That you named the figures using numbers, is a design flaw. That should never be done.
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
How to add or delete figure/table in between other figures/tables
Let's say, you have a picture of a book. You call it
In your LaTeX document, you write it like
LaTeX does all the numbering for you!
It puts
Stefan
book.png
.In your LaTeX document, you write it like
Code: Select all
\begin{figure}
\centering
\includegraphics{book}
\caption{This is a book.}
\label{book}
\end{figure}
% ...
% later in the text
See the figure \ref{book} as an example.
It puts
- a number before the caption, such as "Figure 4.1: This is a book"
- the number with that caption into the list of figures
- its number to all references of it in the LaTeX document (done by \ref)
Stefan
LaTeX.org admin
-
- Posts: 12
- Joined: Sun Oct 02, 2016 5:09 am
How to add or delete figure/table in between other figures/tables
Thanks Stefan and Johannes_B. for answering the question. You're the best guys. 
