4

I am writing a book with a large number of diagrams drawn in TikZ. I want to change the colour of all diagrams (lines and text) uniformly from black to another colour (say red). Can I achieve this with a global command without having to manually specify the colour for each diagram?

  • 3
    try \tikzset{draw=red,text=blue,fill=pink} – AndréC Nov 11 '19 at 7:08
  • @AndréC with the above command only text is working, draw and fill are not working. – latex_guy Nov 11 '19 at 7:32
  • 3
    try \tikzset{every picture/.style={draw=red,text=blue,fill=pink}} – AndréC Nov 11 '19 at 7:43
  • 1
    Thanks! This works. – latex_guy Nov 11 '19 at 8:06
  • 4
    I’m voting to close this question because it was solved in the comments. – TobiBS Sep 15 at 19:24

Browse other questions tagged or ask your own question.