2

I can't find how to draw a surjective arrow between two nodes in TikZ. I'd like it to look somewhat like this.

enter image description here

4

A pure TikZ solution involves using ->> and that's about it:

\documentclass{article} 
\usepackage{tikz} 
\begin{document}
\begin{tikzpicture} 
\node at (0,0) (a) {A};
\node at (1,0) (b) {B};
\path [draw,->>] (a) -- (b);
\end{tikzpicture}
\end{document}

Quack

And we are done. :)

2

By importing tikz-cd package, you can use \arrow command with twoheadrightarrow option as follows:

\documentclass{article} 
\usepackage{tikz-cd} 

\begin{document}

\begin{tikzcd} 
A \arrow[r, tail, twoheadrightarrow, dashed] & B
\end{tikzcd}

\end{document}

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.