Please I need the LaTeX code of the following diagram.
Asked
Active
Viewed 126 times
1
Display Name
- 46,933
M.A
- 101
2 Answers
2
as starting point:
\documentclass[margin=3.1415692mm]{standalone}
\usepackage{tikz-cd}
\begin{document}
%---------------------------------------------------------------%
\begin{tikzcd}
A \ar[r, "label"]
\ar[d, "label" ']
& B \ar[r, "label"] & C \ar[d, "label"] \\
D & & E \ar[ll, "label"] \\
\end{tikzcd}
%---------------------------------------------------------------%
\end{document}
for details see documentation for tikz-cd. package. You only need to replace node names and edges' labels with your math expressions.
Zarko
- 296,517
-
add
column sep=...androw sep=...as option to\begin{tikzcd}. see documentation, page 6. – Zarko May 12 '19 at 18:00
2
In this question there is one somewhat nonstandard problem which is to have the text along a bent arrow in tikz-cd. This can be accomplished using decorations.text along with execute at end picture.
\documentclass{article}
\usepackage{tikz-cd}
\usepackage{amsmath}
\usepackage{amsfonts}
\usetikzlibrary{decorations.text}
\begin{document}
\[\begin{tikzcd}[column sep=pi*1cm,row sep=pi*1cm,
execute at end picture={
\draw[<-,postaction={decorate,decoration={text along path,text align=center,
raise=1ex,
text={|\small|change of variable}}}] (\tikzcdmatrixname-2-1)
to[bend left=15] (\tikzcdmatrixname-1-1);
}
]
u \ar[r, "g(s)"] & g(u) \ar[r, "G(s)=\int\limits_0^sg(r)\,\mathrm{d}r"] &
G(u) \ar[d, "\psi(t)=\int\limits_0^r\mathrm{e}^{-G(s)}\,\mathrm{d}s"] \\
v=\varphi(u) & &
\psi(u) \ar[ll, "\varphi:\mathbb{R}\to\mathbb{R}~\text{w/}~\varphi'(s)>0" ',
"\varphi(s)=\psi^{-1}(s)"] \\
\end{tikzcd}
\]
\end{document}



tikz-cdmanual and examples on this site. – May 12 '19 at 17:11