Packages – How to Draw a Quiver in LaTeX

drawpackages

I tried to draw this in latex.

enter image description here

But not successful. How could I draw this quiver in latex? Thank you very much.

Best Answer

Two solutions: one based on pstricks, the other on tikz-cd. For the pstricks solution, you can compile with pdflatex if you launch it with option --enable-write18 (MiKTeX) or -shell-escape (TeX Live, MacTeX). Alternatively, you can compile with xelatex:

\documentclass{article}
\usepackage{fourier}
\usepackage{pst-node, auto-pst-pdf}
\usepackage{tikz-cd}

\begin{document}

$ \psset{arrows=->, arrowinset=0.15, nodesep=4pt,  colsep=0.8cm,  rowsep=0.9cm,  linewidth=0.5pt, linejoin=1}
\begin{psmatrix}
  %%% nodes
  & β& & α\\
  b &  & a &  & c
  %%%arrows
  \ncline{1,2}{2,1} \ncline{1,2}{2,3}%
  \ncline{2,3}{2,1}\ncline{2,3}{2,5}%
  \ncline{2,3}{1,4}\ncline{2,5}{1,4}
\end{psmatrix}
$

\vskip 1cm
%\tikzcdset{column sep/normal=0.5cm}
\begin{tikzcd}[column sep=0.5cm, row sep=0.7cm]
  & β\dlar \drar & & α\\
  b &  & a\arrow[ll]\urar\arrow[rr]&  & c \ular
\end{tikzcd}

\end{document} 

enter image description here

Related Question