TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to pass the arguments

->,line width=1.2pt

to command

\draw [] ...

However, this does not work

\newcommand\newstyle{->,line width=1.2pt}

Is there any way to do that?

share|improve this question
up vote 10 down vote accepted

Tikz options are not handled that way; if you pass a macro to \draw, it will think you meant to call a single key with the name ->,line width=1.2pt. Instead, use a real style:

\tikzset{newstyle/.style = {->,line width=1.2pt}}
\draw[newstyle] ...
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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