I use TikZ
to create drawings. They are composed of text, arrows, and svg
-icons (e.g. coming from the Noun Project). These icons (svg
files) are mono-color only (i.e. black & transparent).
What I'm used to do is to download them, change their color using Inkscape (i.e. black -> blue), and then import them as a node:
\node (my-picture) at (13,17) {\includegraphics[width=210pt]{myPicture.svg}};
However, if I want to change one color (e.g. let the main color of my document be green, and not blue anymore), I need to manually edit each .svg
file.
Question: Would it be possible to include the raw .svg
-file and specify its color as a TikZ option? E.g. \node [svgcolor=orange] (my-picture) at (13,17) {\includegraphics[width=210pt]{myPicture.svg}};
.tex
document . I'm open to various solutions - e.g. generating a TikZ path from the svg (I know I could further search in this direction, but it seems to be a "too dirty" solution), etc.