21

This would be definitely doable in TikZ or PSTricks, but I think it'd be an overkill for a simple diagram as this. I think you should use tikz-cd, very minimal code, and specifically designed for this kind of diagrams. Keep in mind that it works like a matrix (a table basically), so you know how you can place the various "nodes". Also, the command for the ...


20

The right way with tikz-cd is to use a "phantom" arrow as in \arrow[dr, phantom, "\square"] MWE (I've used some code to reproduce the picture and not yours): \documentclass{article} \usepackage{amssymb} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} X'' \arrow[r, "g'"] \arrow[d] & X' \arrow[r, "g"] \arrow[d] \arrow[dr, phantom, "\square"] &...


18

The \mathbb{B}_j on the right is deeper than the \mathbb{B} on the left, that is why the line is lower on the right. You can just add a \vphantom{_j} to the node on the left to compensate for this. \documentclass[border=2pt,tikz]{standalone} \usetikzlibrary{matrix} \usepackage{amssymb} \begin{document} \begin{tikzpicture} \matrix (m) [matrix of math ...


15

We use the tikz-cd-package for this. If you are a beginner, you probably should have a look at this online-editor. \documentclass[a4paper]{article} \usepackage{tikz-cd} \begin{document} \begin{tikzcd}[row sep = huge, column sep = huge] A \arrow[r, "\varphi_1"] \arrow[d, "\varphi_2", swap] \arrow[dd, bend right = 40, "\varphi_8", swap] & B \arrow[d, "\...


14

The following example sets the corners of the pentagram by a node with polygon shape of a regular pentagon: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \begin{document} \begin{tikzpicture} \node[ regular polygon, regular polygon sides=5, minimum width=30mm, ] (PG) {} (PG.corner 1) node (PG1) ...


12

Here's a start diagram for you: We use a matrix for the positioning of the main nodes We draw edges or arrows, respectively, between the nodes, using nodes for labels If you would like to have a caption or subtitle, use a figure environment or the caption package \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{...


11

I suggest using tikz-cd: \documentclass{article} \usepackage{amsmath,amssymb,tikz-cd} \begin{document} \[ \begin{tikzcd} \mathbb{B} \arrow[r,"h_j"] \arrow[dr,swap,"h_i"] & \mathbb{B}_j \arrow[d,"h_{\mathbb{B}_i,\mathbb{B}_j}"] \\ & \mathbb{B}_i \end{tikzcd} \] \end{document}


11

Same principle really. See the diagram as a 4×3 matrix. In the first row you have KF' in the second column, nothing in the first and third col. In the second row you have K and F' in the first and third column, respectively. In rows three and four, you have K\cup F' and F in the second column, and nothing in the first and third column. There will be several ...


11

You need three columns. But also to vertically align \pi and \pi'. With \setheight{x}{y} we typeset x, but as if its vertical dimensions were those of y. \documentclass{article} \usepackage{amsmath} \usepackage{tikz-cd} \newcommand{\setheight}[2]{\smash{#1}\vphantom{#2}} \begin{document} \begin{tikzcd}[column sep=small] E \arrow[rd, "\pi"'] \arrow[rr, "...


10

The reason for this is that the curved arrows define helper coordinates that are placed far outside the drawn parts of the diagram, so the diagram contains a lot of whitespace, and its width is actually wider than the width of the text block. Look in the log and you'll see a warning about an Overfull \hbox (72.53682pt too wide). To visualize this, add the ...


10

Just make a matrix with four rows, and empty cells where appropriate. \documentclass{article} \usepackage[all]{xy} \begin{document} \xymatrixrowsep{2mm} % I modified this \xymatrixcolsep{10mm} \xymatrix{ \mathcal{F}(U) \ar[dd] \ar[dr] & & \mathcal{F}(V) \ar[ld] \ar[dd]\\ & \mathcal{F}(W) \ar[dd] & \\ \mathcal{G}(U) \ar[dr] & & \...


10

Here there is my version with tikz-cd. It is very easy to create simple and complex commutative diagrams. Advice: do not worry about the background because It does not appear. Your initial code it is into this link. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} V \arrow[r] \arrow[rdd] & FAI(V)...


10

with slightly different code syntax as is in nice Sebastiano answer:-) \documentclass[border=3mm]{standalone} \usepackage{tikz-cd} \begin{document} %---------------------------------------------------------------% \begin{tikzcd}[column sep=large, row sep=large] L \arrow{r}{\varepsilon} \arrow[swap]{d}{\forall\delta} & U(L) ...


9

Here's another option using the positioning library, which is nice because you specify nodes in terms of relative positions to one another \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} % set arrows as stealth fighter jets \tikzset{>=stealth} \begin{document} \begin{center} \begin{tikzpicture} % set up the nodes \node (...


9

I don't know how to do with pb-diagram, which is a very old package. A more modern one, and more powerful too, is tikz-cd: \documentclass{article} \usepackage{tikz-cd} \usepackage{pb-diagram} \newcommand{\C}{\mathcal{C}} \newcommand{\Chat}{\hat{\C}} \renewcommand{\top}{\mathrm{top}} \begin{document} \begin{equation} \begin{tikzcd} \C_R \arrow{r}{P} \arrow[...


9

The code required by the psmatrix environment is not very long either. The main difference with tikz-cd is that one first describes the nodes, then the nodes connections. \documentclass[border=3pt]{standalone} \usepackage{pst-node} \usepackage{auto-pst-pdf} \begin{document} \psset{arrows=->, arrowinset=0.15, linewidth=0.6pt, nodesep=2pt, labelsep=1pt, ...


9

I'd use an aligned: \documentclass{article} \usepackage{amsmath,amssymb,tikz-cd} \begin{document} \[ \begin{tikzcd}[row sep=huge] \mathbb{E}\arrow[d, "p"]\\ \mathbb{B} \end{tikzcd} \qquad\qquad \begin{aligned} & \begin{tikzcd} \phantom{p}Z\arrow[dr, "h", dashed]\arrow[drr, "g", bend left]\\ & X\arrow[r, "f"] & Y \end{tikzcd} \...


8

I can just offer two solutions with tikz-cd: % arara: pdflatex \documentclass{article} \usepackage{tikz-cd} \begin{document} \newlength{\edgelentgh} \setlength{\edgelentgh}{3cm} \[ \begin{tikzcd}[row sep={0cm,between origins},column sep={0cm,between origins}] % setting seperators to zero for easier manipulation &[.3090169944\edgelentgh] &[.5\...


8

I would recommend the tikz-cd package for your commutative diagrams; the package documentation contains examples, like the one for the next example: \documentclass{article} \usepackage{tikz-cd} \begin{document} \begin{tikzcd}[row sep=scriptsize, column sep=scriptsize] & f^* E_V \arrow{dl}\arrow{rr}\arrow{dd} & & E_V \arrow{dl}\arrow{dd} \\ f^*...


8

You can give a negative outer sep to the labels. In the code below I've added a style to save some typing. \documentclass{article} \usepackage{tikz-cd} \tikzset{close/.style={near start,outer sep=-2pt}} \begin{document} \[ \begin{tikzcd}[ampersand replacement = \&, column sep = tiny] \& z_1 \ar[r, phantom, description, "\in"] \& C \ar[dd, ...


8

If you like a TikZ solution (with also the diagonal arrow): \documentclass{article} \usepackage{tikz-cd} \begin{document} \begin{tikzcd}% 0 \arrow[r] & M' \arrow[r] \arrow[d] \arrow[rd] & M \arrow[r] \arrow[d] & M'' \arrow[r] \arrow[d] & 0 \\ 0 \arrow[r] & N' \arrow[r] & N \arrow[r] & N'' \arrow[r] &...


8

Here is a solution using the package tikz-cd. \documentclass[border=1mm,varwidth]{standalone} \usepackage{tikz-cd} \usepackage{mathrsfs} \begin{document} \paragraph{Step 1:} Position the nodes in a matrix \begin{tikzcd} \mathscr{F}(U) & & \mathscr{F}(V) \\ & \mathscr{F}(W) & \\ \mathscr{G}(U) ...


8

A "pure" tikz-cd attempt: \documentclass{article} \usepackage{tikz-cd} \usetikzlibrary{patterns} \definecolor{grey1}{RGB}{71,71,71} \definecolor{grey2}{RGB}{100,100,100} \begin{document} \begin{tikzcd}[arrows=dash,execute at end picture={ \foreach \Valor/\Nombre in { tikz@f@1-1-4/a,tikz@f@1-2-5/b,tikz@f@1-1-6/c,tikz@f@1-2-7/d, tikz@f@1-3-4/e,tikz@f@...


8

I have used the advice of the excellent user @egreg. You can change the tip of the vectors by looking at this link: Is it possible to change the size of an arrowhead in TikZ/PGF?. I believe that the diagram that uses the arrows in that way is from the package xymatrix. \documentclass{article} \usepackage{newtxtext,newtxmath} \usepackage{tikz-cd,amssymb} \...


8

Here you are: \documentclass[a4paper]{article} \usepackage{amsmath} \usepackage{tikz-cd} \begin{document} \[ \begin{tikzcd} A \arrow[r, hookleftarrow] & B\\ D \arrow[u, hookrightarrow] & C \arrow[l, "\simeq", swap] \arrow[u, hookrightarrow] \end{tikzcd} \] \end{document}


8

You can use tabstackengine to get the proper math spacings and align the operators. \documentclass{article} \usepackage{amsmath} % \xleftarrow, \xrightarrow \usepackage{stmaryrd} % \mapsfrom \usepackage{tabstackengine} \TABstackMath \setstacktabulargap{0pt} \TABbinary \begin{document} \[ \tabularCenterstack{rrcll}{ A & \xleftarrow{f} & B & \...


8

Is this what you mean? You can add the labels to your diagram with no arrows: \[\begin{tikzcd} \underline{V} \arrow[rrrrdd, bend left] \arrow[rrdddd, bend right] \arrow[rrdd, dotted] & && & \\ & & (1) & & \\ & (2) & A \arrow[dd] \arrow[rr] & & B \arrow[dd] \\ & & & (3) & \\ & &...


Only top voted, non community-wiki answers of a minimum length are eligible