I need to put up a commutative diagram in my latex document but unfortunately I could not find any package which could do that.
I am putting up the diagram in an image below, please take a look.
Thank you for your help :)
I need to put up a commutative diagram in my latex document but unfortunately I could not find any package which could do that.
I am putting up the diagram in an image below, please take a look.
Thank you for your help :)
Here is a solution with the psmatrix environment from pst-node (pstricks family)
\documentclass{article}
\usepackage{mathtools, amsfonts, amssymb}
\usepackage{pstricks-add}
\usepackage{pst-pdf}
\begin{document}
\[ \begin{postscript}
\psset{arrows=->, arrowinset=0.15, linewidth=0.6pt, dash=4pt 3pt, nodesep=2pt, labelsep=2pt, colsep=1cm, rowsep=1cm, emnode=R, npos=0.5}
\begin{psmatrix}
[name=DF] $ \mathcal{DF}_{\!H_a} $ & &[name=M]$ (\mathcal{M},\bar{\partial}) $\\[-1.5ex]
& [name=PF] $ \mathcal{PF}_{\!\widetilde{H}_{a}} $ \\
& $ \mathcal F $
\everymath{\scriptstyle}
\ncline[linestyle=dashed, nodesep=4pt]{DF}{M}\naput{$ \varphi $}
\ncline[arrows=H->, nodesep=1pt,]{2,2}{1,1}\naput[ labelsep= -1pt]{$ i_\mathcal{D} $}%
\ncline[arrows=H->, hookwidth=-2mm, nodesepA=-1pt]{2,2}{1,3}\nbput[labelsep= 0pt]{$ i_{\mkern-2mu\mathcal{M}} $}%
\ncline{3,2}{1,1}\naput[labelsep=-2pt]{$ u_{\mathcal{D}} $ }
\ncline{3,2}{1,3}\nbput{$ u_{\mkern-2mu\mathcal{M}} $}
\nput[labelsep=18pt]{90}{PF}{\psarcn(0,0){0.25}{-40}{40}}
\end{psmatrix}
\everymath{\scriptstyle}
\ncline[linestyle=dashed, nodesep=4pt]{DF}{M}^{$ \varphi $}
\ncline[arrows=H->, hookwidth=1.5mm, nodesep=1pt,]{2,2}{1,1}\naput[ labelsep= -1pt]{$ i_\mathcal{D} $}%
\ncline[arrows=H->, hookwidth=-1.5mm, nodesepA=-1pt, ]{2,2}{1,3}\nbput[labelsep= 0pt]{$ i_{\mkern-2mu\mathcal{M}} $}%
\ncline{3,2}{1,1}\naput[labelsep=-2pt]{$ u_{\mathcal{D}} $ }
\ncline{3,2}{1,3}\nbput{$ u_{\mkern-2mu\mathcal{M}} $}
\nput[labelsep=18pt]{90}{PF}{\psarcn(0,0){0.25}{-40}{40}}
\end{postscript} \]
\end{document}
pdflatex (as should be) don't forget to add the --enable-write18 switch when launching the compiler, if you're under MiKTeX, or -shell-escape (TeX Live, MacTeX).
– Bernard
Mar 11 '16 at 12:35
Options > Configure TeXMaker The second line (about pdflatex) should contain the line pdflatex -synctex=1 -interaction=nonstopmode. Replace it with pdflatex -synctex=1 -interaction=nonstopmode --enable-write18 %.tex (if you're under MiKTeX) or pdflatex -synctex=1 -interaction=nonstopmode -shell-escape (TeXLive, MacTeX). Perhaps also you should update TeXmaker (current version is 4.5).
– Bernard
Mar 16 '16 at 16:26
pstricks code has either to be compiled with xelatex, or with pdflatex , but in the latter case, the ci=$ompiler has to be launched with the --enable-write18 switch, if you have MiKTeX, or -shell-escape for TeX LIve or MacTeX.
– Bernard
Mar 17 '16 at 18:58
Options > Configure TeXmaker. In the 2nd line, replace pdflatex -synctex=1 -interaction=nonstopmode %.tex with pdflatex -synctex=1 -interaction=nonstopmode --enable-write18 %.tex.
– Bernard
Mar 21 '16 at 21:19
pdflatex can't manage postscript files (it does not incorporate a computation engine for postscript instructions), so it has to outsource them (whence the --enable-write18 switch). During this process a postscript file is created, then changed into a .pdf graphic file, and the latter is finally incorporated into the main .pdf file. Your compiler seems not to fing these intermediate files. You should try first to compile via latex->dvips->pstopdf to see if there's no other problem.
– Bernard
Mar 31 '16 at 20:27
Options > Configure TeXmaker > Quick Build and select the 3rd item.
– Bernard
Mar 31 '16 at 21:04
psmatrixenvironment frompst-node(pstricksfamily) is another solution. – Bernard Mar 10 '16 at 18:11XY-picpackage. See [tag:xy-pic] or http://texdoc.net/texmf-dist/doc/generic/xypic/xyguide.pdf – KarlKlammer Mar 10 '16 at 18:28tikz-cdis clearly your choice, if you are going to learn something new. Please do the beginning of that diagram and I will be happy to help you on any issue. There are already question on that circular arrow intikz-cdaround here. – LaRiFaRi Mar 11 '16 at 08:10