which package should I use for doing a diagram like this in latex:
[Tex/LaTex] Which package should I use for doing a connecting homomorphism diagram like this in latex
codediagramspackagesxy-pic
Related Solutions
You can use the following.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
\pi^{\ast} \colon C^{k}(P,N) &\to C^{k}(M,N) \\[-1ex]
f &\mapsto f \circ \pi
\end{align*}
\end{document}
Remember to use \colon
for maps; with :
you will get wrong spacing acound the colon.
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,fit,calc,positioning}
\tikzset{box/.style={draw, rectangle, thick, text centered, minimum height=3em}}
\tikzset{line/.style={draw, thick, -latex'}}
\begin{document}
\begin{tikzpicture}[auto]
\node [box] (inv) {Inventory};
\node [box, below=0.5cm of inv] (deter) {Deterioration};
\node [box, right=0.5cm of deter] (noobs) {No Obsolescence/Deterioration};
\node [box, left=0.5cm of deter] (obs) {Obsolescence};
\node [box, below=1.5cm of deter, xshift=-2cm] (decay) {Decaying products};
\node [box, below=1.5cm of deter, xshift=2cm] (per) {Perishable Products};
\node [box, below=1.5cm of per, xshift=2cm] (fix) {Fixed Lifetime};
\node [box, below=1.5cm of per, xshift=-2cm] (cont) {Continuously Deteriorating};
\path [line] (inv) -- (deter);
\path [line] (inv) -| (noobs);
\path [line] (inv) -| (obs);
\path [line] (deter) -- (per);
\path [line] (deter) -- (decay);
\path [line] (per) -- (cont);
\path [line] (per) -- (fix);
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,fit,calc,positioning}
\tikzset{box/.style={draw, rectangle, thick, text centered, minimum height=3em}}
\tikzset{line/.style={draw, thick, -latex'}}
\begin{document}
\begin{tikzpicture}[auto]
\node [box] (inv) {Inventory};
\node [box, below=0.5cm of inv] (deter) {Deterioration};
\node [box, right=0.5cm of deter] (noobs) {No Obsolescence/Deterioration};
\node [below=0.5cm of deter] (vuoto1) {};
\node [box, left=0.5cm of deter] (obs) {Obsolescence};
\node [box, below=0.5cm of vuoto1, xshift=-2cm] (decay) {Decaying products};
\node [box, below=0.5cm of vuoto1, xshift=2cm] (per) {Perishable Products};
\node [below=0.5cm of per] (vuoto2) {};
\node [box, below=0.5cm of vuoto2, xshift=2cm] (fix) {Fixed Lifetime};
\node [box, below=0.5cm of vuoto2, xshift=-2cm] (cont) {Continuously Deteriorating};
\path [line] (inv) -- (deter);
\path [line] (inv) -| (noobs);
\path [line] (inv) -| (obs);
\path [line] (deter) -- (vuoto1);
\path [line] (vuoto1) -| (decay);
\path [line] (vuoto1) -| (per);
\path [line] (per) -- (vuoto2);
\path [line] (vuoto2) -| (cont);
\path [line] (vuoto2) -| (fix);
\end{tikzpicture}
\end{document}
Edit: Substituting
\node [below=0.5cm of deter] (vuoto1) {};
and
\node [below=0.5cm of per] (vuoto2) {};
with
\coordinate [below=0.5cm of deter] (vuoto1) {};
and
\coordinate [below=0.5cm of per] (vuoto2) {};
yields
Best Answer
Using xy-pic package for Commutative Homomorphism diagrams. your diagram was made using
xy-pic
as suggested by Qrrbrbirlbel in his commentcode for diagram
Output: