I have a main document with lots of tikz pictures, which happens to be added from different directories within the main directory by using the 'input' and 'figure' commands. There are also some other files which make up the main file, like chapters and commentaries added the same way as the tikz pictures.
Since I want to modify some of those pictures and also files separately I don't want to compile the whole document every time I make a change because it takes a lot of time.
My question is whether by any chance there's some package or a workaround to manage this.
What I'm trying at the moment when I need to modify an input file is opening the file, pasting all the preamble of the main file in it, and then compiling it as an article class. The problem with this approach is that when I'm finished with it then I have to take out the preamble again and the other stuff I have added to compile (document class, begining and end document, etc). Also another drawback is that this process generates a lot of extra files.
Thanks for any help
standaloneis for, in fact. You might also consider externalisation when you compile the main document, either usingstandalone's options or theexternallibrary (which works fine withstandalone, if you prefer that combination). – cfr Aug 10 '16 at 00:33preamble.texand then\input{preamble}each time. This is a lot easier than remembering to change every copy if you update something, believe me! – cfr Aug 10 '16 at 15:33