Is it possible to generate a PDF of figures and tables of a paper from LaTeX itself?
I saw Journals and Conferences asking for a separate file of tables and figures.
In this question, questioner proposed a method that uses \usepackage{endfloat}
to push all the figures and tables to the last pages and then use a PDF editor to cut the last pages of PDF. This is a solution but not a good one. LaTeX should be able to do this by its own.
What I have in mind is to compile the LaTeX file and it generates a complete PDF output and beside that a separate file that contains all the figures and tables of former PDF.
Best Answer
The following code will extract all graphics and floats. To prove it, I load the extracted objects again with
\includepdf
(see the animation).The code above just simulates your scenario. To apply it in your real scenario, do the following.
Step 1
Assume that your input file is as follows.
Step 2
Insert
in your input file. So your input file becomes as follows.
Save this input file as
anyfilename-graphics.tex
Step 3
Invoke
pdflatex anyfilename-graphics
to obtain a PDF file containing all extracted graphics.Step 4
Repeat Step 2 but replace
graphics
withfloats
, save the file asanyfilename-floats.tex
. Now compile withpdflatex anyfilename-floats
to get a PDF file containing all extracted floats (figure or table).Step 5
Done!