I'm writing a paper with many TikZ pictures. To keep the main file readable, I keep the pictures as separate files, but unfortunately I have now too many files. What is a nice solution to keep all the pictures in one file (separate from the main file), giving them names, and then calling them from the main file?
Create your own package in the same folder in which the main file exists, namely
In the preamble, put
Advantage: You will get a compile-name checking to guarantee each picture has a unique name. :-)
Store them in macros and then
In the minimal below, I have provided for a
Following xport's suggestion you can trap duplicate name errors, by replacing the