3

How can I define a

stylename/.style={...}

in the preamble so that all tikzpicture environments could reference it instead of defining this style inside of each tikzpicture?

3
3

Just put:

\usepackage{tikz}
\tikzset{%
    stylename/.style={...},
    anotherstlye/.style={...},% and so on
}

in your preamble, and you'll be able to use stylename and anothetstyle in all the tikzpictures of your document.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.