2 ms·
Used this all the time for graph theory papers in college. Works astoundingly well for that use case, highly recommend. Beware though, if you include too many
by 63 5y ago
Used this all the time for graph theory papers in college. Works astoundingly well for that use case, highly recommend.
Beware though, if you include too many graphs in a paper it will take longer than Overleaf's free compilation time limit, so consider compiling locally.
- nightcracker 5y agoThis doesn't work on Overleaf, but locally this setup has saved me quite some time: % Tikz caching (use make -f main.makefile to rebuild figures). \usetikzlibrary{external} \tikzexternalize[mode=list and make,prefix=tikzcache/] % Comment out this line to disable caching. \newcommand{\includetikz}[1]{% \tikzsetnextfilename{#1}% \tikzpicturedependsonfile{#1.tikz}% \input{#1.tikz}% } I would have all Tikz sources in a tikz/ directory, and include them where needed using e.g. \includetikz{tikz/foo}. Then the above would add an extra step to the compilation (make -f main.makefile), but in return all images would only be recompiled as necessary and otherwise included as a cached .pdf.
- lervag 5y agoNice; do you by chance combine this with latexmk? If so, how do you add the extra compilation step in latexmk?
- nightcracker 5y agoI don't use latexmk, so I wouldn't know sorry. If you can incorporate it into latexmk you might even be able to use it on Overleaf.
- abdullahkhalids 5y agoI usually generate large tikz graphics independently using standalone tex files. Then include them in the paper as image files as usual. Reduces the clutter inside the paper tex file.