I am writing a document which includes several figures done in tikz and I want to use the same color in all of them. Currently, I am defining all of them in each file as \definecolor{LightBlue}{HTML}{dae8fc} for example. I would like to have a library with all the colors defined for all .tikz files.

I have a tikzlibrarymycolors.code.tex file with:


And for each figure I include \usetikzlibrary{mycolors}. However, I get the error Package tikz: I did not find the tikz library 'mycolors'. I looked for files named tikzlibrarymycolors.code.tex and pgflibrarymycolors.code.tex, but neither could be found in the current texmf trees.

I want to keep this library just locally to the current document. Do I need to build the texmf tree? I am using [https://tug.org/texlive/quickinstall.html][1]

Thanks for the help. [1]: https://tug.org/texlive/quickinstall.html


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.