I don't care too much about what image format I get out of the process as I can convert it if needed, but I'm looking for the best way to structure my document/files in order to make it easier and faster to generate a set of images that can be used in other documents. I have both a Windows and Ubuntu box (both running TexMaker) so something that works on both platforms is preferred.
I'm using the TikZ package to make some simple figures for my thesis. I have the figures located in the ./figures
directory, with each figure in a file with the naming convention <short_description>.tikz
. My main document contains all the preamble and styling information as well as all text.
I've used the code from a previous question and created two tex files in the figures directory called export_figures_(win|unix).tex
, each of which has a duplicate of the TikZ styling information and then includes a file list_of_figures.tex
which is a copy paste of each \input{}
in my main document. I then have a batch/shell script for each platform I run to generate images.
I used this approach as I was unable to compile the main document unless the export statement was commented out, which meant I had to constantly uncomment and comment the code section when I created a new figure. The way I have it now is still less than ideal as I have to update two documents manually every time I create or rename a figure. This also means that the TikZ styling information is replicated three times (though I could pull that into it's own file and just include that file).
Is there a better way to implement this to make my life a bit easier? Are there any recommended practices I'm well violating that I should be following?