# How can I draw this arrow in tikz? [duplicate]

there are two arrows I need to show in my tikz picture, meaning: a). From A cannot get B; b). B can be derived from A, but not the other way around.

\draw[->] (a) -- (b) can get a normal arrow, but what's the command to get these special arrows?

## marked as duplicate by Guilherme Zanotelli, Stefan Pinnow, ebosi, Zarko tikz-pgf StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Dec 5 '16 at 8:34

• you can search for it on this site. There are plenty of them asked before – percusse Dec 5 '16 at 7:04
• also related Q:51022 – percusse Dec 5 '16 at 8:09

For the strike out in the middle part the link Guilherme Zanotelli posted (Double arrow in TikZ?) can help, I used the highest voted answer there, by Jannis Pohlmann, for the code below.

To make the "half" arrow tips in your bottom figure, use the Straight Barb[left] arrow tip from the arrows.meta library.

\documentclass[border=4mm]{standalone}

\usepackage{tikz}
\usetikzlibrary{
decorations.markings,
arrows.meta  %% <--
}

\tikzset{
barbarrow/.style={ % style that just defines the arrow tip
>={Straight Barb[left,length=5pt,width=5pt]}
},
strike through/.style={
postaction=decorate,
decoration={
markings,
mark=at position 0.5 with {
\draw[-] (-3pt,-3pt) -- (3pt, 3pt);
}
}
}
}

\begin{document}
\begin{tikzpicture}
\node (A1) at (0,1) { A };
\node (B1) at (4,1) { B };

\draw[-Stealth,strike through]  (A1) -- (B1);

\node (A) at (0,0) { A };
\node (B) at (4,0) { B };

\draw[->,barbarrow]                ([yshift= 2pt] A.east) -- ([yshift= 2pt] B.west);
\draw[<-,barbarrow,strike through] ([yshift=-2pt] A.east) -- ([yshift=-2pt] B.west);
\end{tikzpicture}
\end{document}