Reading this question arara: show warnings only in the last compilation step made me realize that I can probably save some compile time by changing the options I use with pdflatex. For a "typical" LaTeX file that requires a processing chain like pdflatex, biber, pdflatex, pdflatex what options (e.g., synctex, draftmode, halt-on-error), should I include with pdflatex and when?
Asked
Active
Viewed 897 times
8
1 Answers
2
You can use the -draftmode in the initial runs of LaTeX, so everything is done, including writing on auxiliary files, except writing the PDF file. On the other hand -synctex=1 makes sense only in the last run, saving you from uselessly write and compress a file that can be quite big.
Setting this up for arara is easy:
% arara: pdflatex: { draft: yes }
% arara: biber
% arara: pdflatex: { draft: yes }
% arara: pdflatex: { synctex: yes }
I should add that my workflow is usually just running pdflatex, with the occasional run of BibTeX/Biber in order to resolve citations. I understand, though, that some citation styles almost require citations to be resolved as soon as possible (I'm thinking to styles with citations as footnotes). In general there is no need that citations and cross-references are perfect each time pdflatex is run and the PDF file viewed.
egreg
- 1,121,712
draftmodesaves you from writing the PDF file, so it could be used in the preliminary steps; conversely,synctex=1writes useless files during the preliminary steps and it makes sense to use it only for the final run. – egreg Sep 17 '13 at 12:364.0version hopefully will provide a better compilation workflow with the inclusion of conditionals; besides, rules can now incorporate more complex tasks, so even if the default ones cannot satisfy one's workflow, I'm sure we will be able to accomplish such task by writing our own rule. – Paulo Cereda Mar 01 '15 at 19:454.0is expected to have. Since this version does a huge qualitative jump from3.0, it needs a complete user manual. That's what's giving me migraines.:)– Paulo Cereda Mar 01 '15 at 19:464.0will at least hit the update schedule this year. I'll work on it. – Paulo Cereda Mar 02 '15 at 00:464.0version.:)– Paulo Cereda Mar 02 '15 at 00:46