Graphics, Figures & Tableslistoffigures and tableofconents

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gievepix12
Posts: 1
Joined: Thu Mar 24, 2022 2:50 pm

listoffigures and tableofconents

Post by gievepix12 »

Hello, i'm new to LaTeX and i don't really know how does this function works. But i've found one really strange way they do this.

*first compilation*
creates .lof file and .toc file
creates empty list of figures and empty table of contents

*second compilation*
reads .lof and .toc files
creates normal fulfilled list of figures and table of contents


is there any way to stop pdf file compilation with command and programmatically read this files so i don't need to run compilations 2 times.
I need it because i create multiple pdfs with pylatex and it already take much time so there is no way to compile files multiple times.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply