3

The code is from here. In the line \begin{tikzpicture}[auto, node distance=2cm,>=latex'] I don't understand this command >=latex'. I found nothing about it in the TikZ & PGF manual.

Thank you for your help in advance!

  • 1
    It is for arrow tips. See Section 16. – Sigur Jan 28 '17 at 15:33
3

From TikZ Manual for Version 3.0.1a, Section 16.4, pg 201:

enter image description here

So, >= is a shorthand to inform the arrow tip you want. Pay attention for different arrow style related to >=Latex and >=Stealth.

  • Hello @Sigur! Thank you for your answer! It's an easy one, shame on me. But this arrow tip seems not to exist anymore, because I get the following error: ! Package pgf Error: Unknown arrow tip kind 'latex''. – Su-47 Jan 29 '17 at 6:24
  • @Su-47, I'm not sure, but I think that you have to load some library to use some different arrow tips. Please, read the guide and search for \usetikzlibrary{arrows} or something similar. – Sigur Jan 29 '17 at 11:31
  • 1
    Hello @Sigur! Thank you for your answer and help! I tested it, see the result below. – Su-47 Feb 5 '17 at 5:33
1

After testing I get following.

With the old library and >=:

\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{arrows}% old library
\begin{document}
  \begin{tikzpicture}
    \draw [-> = latex'] (0, 3) -- (1, 3);% old arrow tip
    \draw [-> = latex] (0, 2) -- (1, 2);% old arrow tip
    \draw [-> = Latex] (0, 1) -- (1, 1);
    \draw [->] (0, 0) -- (1, 0);
  \end{tikzpicture}
\end{document}

The line \draw [-> = Latex] (0, 1) -- (1, 1); produces an error (as expected):

! Package pgf Error: Unknown arrow tip kind 'Latex'.

The result:

result

So >= doesn't work in this syntax.

With the old library and -arrow tip type:

\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{arrows}% old library
\begin{document}
  \begin{tikzpicture}
    \draw [-latex'] (0, 3) -- (1, 3);% old arrow tip
    \draw [-latex] (0, 2) -- (1, 2);% old arrow tip
    \draw [-Latex] (0, 1) -- (1, 1);
    \draw [->] (0, 0) -- (1, 0);
  \end{tikzpicture}
\end{document}

The line \draw [-Latex] (0, 1) -- (1, 1); produces an error, as above.

The result:

result1

It work like it should.

With the new library and >=.

\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
  \begin{tikzpicture}
    \draw [> = latex'] (0, 3) -- (1, 3);% old arrow tip
    \draw [> = latex] (0, 2) -- (1, 2);% old arrow tip
    \draw [> = Latex] (0, 1) -- (1, 1);
    \draw [->] (0, 0) -- (1, 0);
  \end{tikzpicture}
\end{document}

The line \draw [> = latex'] (0, 3) -- (1, 3); produces an error (as expected):

! Package pgf Error: Unknown arrow tip kind 'latex''.

The result:

result2

Again >= doesn't work in this syntax.

And the new library with -arrow tip type:

\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
  \begin{tikzpicture}
    \draw [-latex'] (0, 3) -- (1, 3);% old arrow tip
    \draw [-latex] (0, 2) -- (1, 2);% old arrow tip
    \draw [-Latex] (0, 1) -- (1, 1);
    \draw [->] (0, 0) -- (1, 0);
  \end{tikzpicture}
\end{document}

The line \draw [> = latex'] (0, 3) -- (1, 3); produces an error, as above.

The result:

result3

It work like it should.

The description from the TikZ manual (section 16.1, page 182):

Remark: Almost all of the features described in the following were introduced in version 3.0 of TikZ. For compatibility reasons, the old arrow tips are still available. To differentiate between the old and new arrow tips, the following rule is used: The new, more powerful arrow tips start with an uppercase letter as in Latex, compared to the old arrow tip latex.

Remark: The libraries arrows and arrows.spaced are deprecated. Use arrows.meta instead/additionally, which allows you to do all that the old libraries offered, plus much more. However, the old libraries still work and you can even mix old and new arrow tips (only, the old arrow tips cannot be configured in the ways described in the rest of this section; saying scale=2 for a latex arrow has no effect for instance, while for Latex arrows it doubles their size as one would expect.)

  • 1
    You want >=Latex, not ->=Latex. – Torbjørn T. Feb 5 '17 at 7:35
  • 1
    or -latex: draw[-latex] (0, 2) -- (1, 2); or ... – Zarko Feb 5 '17 at 8:03
  • Hello @Torbjørn T. and @Zarko! Thank you for your advices. It's more difficult than I thought. See my edited answer above. – Su-47 Feb 10 '17 at 18:06
  • 1) Should have mentioned this before, but please don't write questions in answers. Edit the question, or post a new one. 2) I don't quite understand what the question is. The latex' arrow tip is defined in the old arrows library, so without arrows in the list of libraries you will get the unknown arrow tip error you mention. – Torbjørn T. Feb 10 '17 at 18:22
  • Hello @Torbjørn T.! Thank you for the comment. I have no more questions related to the title What does \begin{tikzpicture}[>=latex'] mean? (in my answer I haven't a single question mark, or do I understand you wrong). After answers and comment (to my question) I wanted to test all cases and write a comparison as an answer. That is all. I hope now it's clear enough. – Su-47 Feb 12 '17 at 12:16

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.