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 at 7:08
  • @AndréC with the above command only text is working, draw and fill are not working. – latex_guy Nov 11 at 7:32
  • 3
    try \tikzset{every picture/.style={draw=red,text=blue,fill=pink}} – AndréC Nov 11 at 7:43
  • 1
    Thanks! This works. – latex_guy Nov 11 at 8:06

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.