3

How can I draw an arrow like this whose type is different from the default type using Tikz?

I want one like this: enter image description here

not like this default type: enter image description here

2

You may try arrows={-Computer Modern Rightarrow[line cap=round]}, arrows={Latex} or arrows={-Triangle} via the TikZ library arrows.meta:

enter image description here

\documentclass[tikz,margin=1mm]{standalone}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[line width=1mm]
  \draw[blue,arrows={-Computer Modern Rightarrow[line cap=round]}]
  (0,0) -- (1,0);

  \draw[red,arrows={-Latex}]
  (0,1) -- (1,1);

  \draw[green,arrows={-Triangle}]
  (0,2) -- (1,2);
\end{tikzpicture}
\end{document}

Note: You may configure the appearance of arrows via some parameters like length or width:

\draw[green,arrows={-Triangle[length=7mm,width=3mm]}] (0,2) -- (1,2);

All Arrow Keys are described in section 16.3 "Arrow Keys: Configuring the Appearance of a Single Arrow Tip", p.185, pgfmanual

  • Thanks a lot. And I want to change the size of the triangle. I use \draw[green,arrows={-Triangle[]minimum height=balbla.... }], it doesn't work. Could you please fix this problem for me? – Lu Zhang Aug 5 '15 at 0:35
  • minimum height=... should be between [...]. – Paul Gaborit Aug 5 '15 at 0:39
  • Sorry, I mean I just type minimum height between [...], but it doesn't work. My file can't compile successfully. – Lu Zhang Aug 5 '15 at 1:15
  • @LuZhang minimum height is not a legal arrow keys... – Paul Gaborit Aug 5 '15 at 5:57

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.