I want to use complex monocolor vector graphics but I would like to be able to specify the color inside my latex source. Solutions :
- Use a
pdf, but I can't specify the color afterwards. Perhaps a solution withsvg? - Use
tikz, but it makes my compilation so slow as it needs to parse the complex paths again each time I use one of those graphics ! - Use
tikz+\savebox, as my graphics have a lots of complexity, but there are only a few different of them that I use a lots of time.
Here is my question : can I use \savebox to save some tikz operations with a custom color that will be specified only when I use \usebox ?
My wish would be to have a command \mygraphics that takes one argument the color such that \mygraphics{blue} and \mygraphics{red} typeset my graphic in blue or in red without parsing my graphic each time.
saveboxyou can define a command with an (optional) argument – Marco Daniel May 12 '13 at 11:23externallibrary of TikZ? You can update pictures later by puttingremake nextbefore them. See section 32 of the TikZ manual for details. – Tom Bombadil May 12 '13 at 13:10