Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am creating multiple TikZ pictures within one document and would like to set the default style of arrow heads for all the pictures to the latex style, i.e. like -latex does, so that I don't have to do this every time I draw an arrow.

I'm new to TikZ, but have searched and must not be choosing the correct terms.

share|improve this question
add comment

1 Answer

up vote 28 down vote accepted

You can use >=latex to specify arrow tips, and \tikzset so set it globally. This will be overridden by any local definitions of the arrow tip.

\documentclass{article}
\usepackage{tikz}
\tikzset{>=latex}
\begin{document}
\begin{tikzpicture}
\draw [->,>=stealth,red] (0,.6) -- +(1,0);
\draw [->,blue] (0,.3) -- +(1,0);
\draw [->] (0,0) -- +(1,0);
\end{tikzpicture}
\end{document}    

enter image description here

share|improve this answer
    
Thanks, just what I needed! –  JohnD May 7 '12 at 15:38
    
If this answers you question please consider to mark it as ‘Accepted’ by clicking on the tickmark below the vote count. This assigns reputation points to the author of the answer (and to you!) –  Tobi May 7 '12 at 15:42
    
@texasAUtiger: Additionally, you can upvote answers (and questions) that you think are good, by clicking the upward-pointing triangle next to the post. –  Jake May 7 '12 at 15:42
    
@Tobi: I clicked on the arrow to vote it as my answer, but its appearance didn't seem to change. Does it look "answered" on your end? (Sorry, I'm new!) –  JohnD May 7 '12 at 15:46
    
@texasAUtiger: Seems like you accepted it :-) The tick becomes green if you click it … –  Tobi May 7 '12 at 16:49
add comment

Your Answer

 
discard

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.