0

I have diagrams with arcs with heads produced with \draw[<__|-, ...] or \draw[<<__|-, ...], like in this MWE:

\documentclass[tikz]{standalone}
\usetikzlibrary[positioning]
\begin{document}
  \begin{tikzpicture}
    \node(A){A}; \node(B)[right=2cm of A]{B};
    \draw[<<__|-|__>, very thick] (A) -- (B);
  \end{tikzpicture}
\end{document}

enter image description here

It is possible to increase only the length of the vertical bar? How it can be done? The ideal would be to define a style to apply to all the cases in my diagrams.

Thank you very much!

1 Answer 1

7

With arrows.meta you can control all aspects of these arrows. I added two bars of different lengths (or widths) to the example.

\documentclass[tikz]{standalone}
\usetikzlibrary[positioning,arrows.meta]
\begin{document}
  \begin{tikzpicture}
    \node(A){A}; \node(B)[right=2cm of A]{B};
    \draw[{<<__Bar[width=1.5ex]}-{Bar[width=2ex]__>}, very thick] (A) -- (B);
  \end{tikzpicture}
\end{document}

enter image description here

Needless to say that you can also manipulate the other arrows in similar ways.

1
  • 1
    Great! Thank you very much.
    – Renzo
    Commented Nov 27, 2020 at 20:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .