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}};
.texdocument . 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. – ebosi Jan 27 '17 at 16:58\definecolor{myMainColor}{}{}definition... / @JPi : what's your idea? (where could I search further on the topic?) - If possible, I'd like apdflatex-compliant solution, butxelatex/lualatexones would be also ok – ebosi Jan 27 '17 at 17:04svgintopdf; 2/ uncompress thepdf; 3/ comment color changes data in thepdfsourcecode; 4/ use\color{myMainColor}before\includegraphics[...]{myFile.pdf}. I however need to secure step 3 (I've used the 'try'n'fail' approach here!) – ebosi Jan 27 '17 at 17:35tikzcode from Inkscape? Then you can edit the files once to include a custom colour name which you specify in your main document. The code exported is not very easy to edit for most purposes, but it should be pretty easy for something like this. – cfr Jan 28 '17 at 01:21tikzfadingfrompicture– Symbol 1 Jan 28 '17 at 17:00