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
How to add or delete figure/table in between other figures/tables
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
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
- 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
caption
command. That you named the figures using numbers, is a design flaw. That should never be done.
-
- 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: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
How to add or delete figure/table in between other figures/tables
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
-
- Posts: 12
- Joined: Sun Oct 02, 2016 5:09 am
How to add or delete figure/table in between other figures/tables
