If you see this, something is wrong
First published on Saturday, Nov 2, 2024 and last modified on Saturday, Nov 14, 2026 by François Chaplais.
Documents Live partially supports the tikz package and dependencies.
Documents Live has partial support for the tikz-cd package. Here are some examples.
The code is
\[
\begin{tikzcd}[column sep=6em, row sep=2.2em,
execute at end picture={
\foreach \c in {1,2,3}{
\node[inner sep=2pt, fit=(\tikzcdmatrixname-1-\c)(\tikzcdmatrixname-2-\c)] (col\c) {};
\draw[dotted] (col\c.north west) to[bend right=15] (col\c.south west);
\draw[dotted] (col\c.north east) to[bend left=15] (col\c.south east);
}}]
\mathbf{G}_a^\sharp \arrow[d, "d"] & \mathbf{G}_a^\sharp \oplus F_*W \arrow[l, "\text{pr}_1"'] \arrow[r, "\text{pr}_2"] \arrow[d, "{(\widetilde{d},V)}"] & F_*W \arrow[d, "p"] \\
\mathbf{G}_a & W \arrow[l, "\gamma"] \arrow[r, "F"] & F_*W
\end{tikzcd}
\]
Another example with \xymatrix.
The code is
\[
\xymatrix{
(X/Y)^\mathrm{dR} \ar[r] \ar[d]_-{f^\mathrm{dR}} \ar@{}[dr]|(.25){\lrcorner} & (X/A)^\mathrm{dR} \ar[d] \\
Y \ar[r]^-{\eta_Y} & (Y/A)^\mathrm{dR}.
}
\]A more complex diagram.
The code is
\[
\begin{tikzcd}[column sep=4em, row sep=1.5em]
& & \left\specialChar{123} \begin{tabular}{@{}c@{}} flat connections \\ on $X$ \end{tabular} \right\specialChar{125} \\
\left\specialChar{123} \begin{tabular}{@{}c@{}} semisimple complex \\ local systems on $X$ \end{tabular} \right\specialChar{125} \arrow[r, "\mathrm{RH}_\lambda"]
\arrow[urr, bend left=12, "\mathrm{RH} = \mathcal{O}_X \otimes_{\mathbf{C}} (-)"]
\arrow[drr, bend right=12, "\mathcal{S}\mathrm{imp}"]
& \left\specialChar{123} \begin{tabular}{@{}c@{}} $\lambda$-connections \\ on $X \times \mathbf{A}^1_\lambda/\mathbf{A}^1_\lambda$ \end{tabular} \right\specialChar{125} \arrow[ur, "\lambda=1"] \arrow[dr, "\lambda=0"']
& \\
& & \left\specialChar{123} \begin{tabular}{@{}c@{}} Higgs bundles \\ on $X$ \end{tabular} \right\specialChar{125}.
\end{tikzcd}
\]Another complex one.
Now, the code.
\begin{tikzcd}[column sep={8.5em,between origins}, row sep={9em,between origins}]
& & (\widetilde{X}/A)^{I,\mathrm{crys}} \times_{(X/A)^{\mathrm{Weil}}} (\widetilde{X}/A)^{\mathcal{F}}
\arrow[dll, sloped, "\substack{\text{pushout along} \\ \mathcal{T}\times\mathcal{T} \xrightarrow{\mathrm{pr}_1} \mathcal{T}}"{pos=0.6}]
\arrow[d, "\substack{\text{pushout along} \\ \mathcal{T}\times\mathcal{T} \xrightarrow{\mathrm{add}} \mathcal{T}}"]
\arrow[drr, sloped, "\substack{\text{pushout along} \\ \mathcal{T}\times\mathcal{T} \xrightarrow{\mathrm{pr}_2} \mathcal{T}}"{pos=0.6}]
\arrow[ddd, bend right=50, "\substack{\mathcal{T}\times\mathcal{T}\text{-} \\ \text{torsor}}"'{pos=0.4}]
&[-1.5em] &[1.5em] &[-1.5em] \\
(\widetilde{X}/A)^{I,\mathrm{crys}}
\arrow[ddrr, sloped, "\pi_{I,\mathrm{crys}}", "\mathcal{T}\text{-torsor}"']
& & (X/A)^{{\mathlarger{\mathbbl{\Delta}}}}
\arrow[dd, "\pi_{{\mathlarger{\mathbbl{\Delta}}}}"', "\mathcal{T}\text{-torsor}"]
& & (\widetilde{X}/A)^{\mathcal{F}}
\arrow[ddll, sloped, "\pi_{\mathcal{F}}", "\mathcal{T}\text{-torsor}"']
\arrow[dr]
& \\
& & & & & (\widetilde{X}/A)^{\mathcal{F}'}
\arrow[ddll, sloped, "\mathcal{T}^{\mathrm{crys}}\text{-torsor}"']
\\
& & (X/A)^{\mathrm{Weil}}
\arrow[dr, sloped, "\nu_X"']
& & & \\
& & & (X/A)^{\mathrm{crys}} & &
\end{tikzcd}Documents Live supports simple graphics which are simple constructions with base graphic objects. Here are a few examples.
Here is the code.
\begin{tikzpicture}[
node distance=6mm and 8mm,
every node/.style={font=\small},
nvbox/.style={draw=moaBlue, thick, fill=moaLightBlue, rounded corners, minimum width=2.6cm, minimum height=0.9cm, align=center},
amdbox/.style={draw=moaOrange, thick, fill=moaLightOrange, rounded corners, minimum width=2.6cm, minimum height=0.9cm, align=center},
cpubox/.style={draw=moaTeal, thick, fill=moaLightTeal, rounded corners, minimum width=2.6cm, minimum height=0.9cm, align=center},
intelbox/.style={draw=moaPurple, thick, dashed, fill=moaLightPurple, rounded corners, minimum width=2.6cm, minimum height=0.9cm, align=center},
hetbox/.style={draw=moaGray, dashed, rounded corners, inner sep=10pt},
lbl/.style={font=\scriptsize\color{moaGray}}
]
\node[nvbox] (g0) {A100 $\times$4\\ \scriptsize NVIDIA, ranks 0-3};
\node[cpubox, below=of g0] (c0) {CPU $\times$4\\ \scriptsize ranks 4-7};
\node[amdbox, right=62mm of g0] (m0) {MI100 $\times$k\\ \scriptsize AMD, ranks 8-(7+k)};
\node[hetbox, fit=(g0)(c0), label={[lbl]above left:het-job component 0: gpuA100x4}] (het0) {};
\node[hetbox, fit=(m0), label={[lbl]above left:het-job component 1: gpuMI100x8}] (het1) {};
\node[intelbox, right=40mm of m0] (intel) {Max 1550\\ \scriptsize Intel, Stampede3};
\draw[-{Latex[length=2mm]}, moaGray, thick] (het0.east) -- (het1.west) node[midway, above=1mm, lbl, align=center] {one real\\ MPI\specialChar{95}COMM\specialChar{95}WORLD};
\draw[-{Latex[length=2mm]}, moaGray, dashed, thick] (het1.east) -- (intel.west) node[midway, above=2mm, lbl] {no shared interconnect};
\end{tikzpicture}A bar chart.
The code.
\begin{tikzpicture}[x=1cm,y=0.62cm]
\node[anchor=east,font=\scriptsize] at (-0.15,0) {rank 0 A100, 1990 rows};
\fill[moaBlue!35,draw=moaBlue,thick] (0,-0.32) rectangle (1.099,0.32);
\draw[moaGray,very thick] (0.668,-0.42) -- (0.668,0.42);
\node[anchor=west,font=\scriptsize] at (1.219,0) {2.3 ms};
\node[anchor=east,font=\scriptsize] at (-0.15,-1) {rank 1 A100, 1984 rows};
\fill[moaBlue!35,draw=moaBlue,thick] (0,-1.32) rectangle (1.034,-0.6799999999999999);
\draw[moaGray,very thick] (0.664,-1.42) -- (0.664,-0.5800000000000001);
\node[anchor=west,font=\scriptsize] at (1.154,-1) {2.2 ms};
\node[anchor=east,font=\scriptsize] at (-0.15,-2) {rank 2 A100, 1984 rows};
\fill[moaBlue!35,draw=moaBlue,thick] (0,-2.32) rectangle (1.031,-1.68);
\draw[moaGray,very thick] (0.664,-2.42) -- (0.664,-1.58);
\node[anchor=west,font=\scriptsize] at (1.151,-2) {2.2 ms};
\node[anchor=east,font=\scriptsize] at (-0.15,-3) {rank 3 A100, 1984 rows};
\fill[moaBlue!35,draw=moaBlue,thick] (0,-3.32) rectangle (1.044,-2.68);
\draw[moaGray,very thick] (0.664,-3.42) -- (0.664,-2.58);
\node[anchor=west,font=\scriptsize] at (1.164,-3) {2.2 ms};
\node[anchor=east,font=\scriptsize] at (-0.15,-4) {rank 4 CPU, 61 rows};
\fill[moaTeal!35,draw=moaTeal,thick] (0,-4.32) rectangle (2.477,-3.68);
\draw[moaGray,very thick] (0.649,-4.42) -- (0.649,-3.58);
\node[anchor=west,font=\scriptsize] at (2.597,-4) {6.7 ms};
\node[anchor=east,font=\scriptsize] at (-0.15,-5) {rank 5 CPU, 61 rows};
\fill[moaTeal!35,draw=moaTeal,thick] (0,-5.32) rectangle (2.465,-4.68);
\draw[moaGray,very thick] (0.649,-5.42) -- (0.649,-4.58);
\node[anchor=west,font=\scriptsize] at (2.585,-5) {6.6 ms};
\node[anchor=east,font=\scriptsize] at (-0.15,-6) {rank 6 CPU, 61 rows};
\fill[moaTeal!35,draw=moaTeal,thick] (0,-6.32) rectangle (2.476,-5.68);
\draw[moaGray,very thick] (0.649,-6.42) -- (0.649,-5.58);
\node[anchor=west,font=\scriptsize] at (2.596,-6) {6.7 ms};
\node[anchor=east,font=\scriptsize] at (-0.15,-7) {rank 7 CPU, 61 rows};
\fill[moaTeal!35,draw=moaTeal,thick] (0,-7.32) rectangle (2.503,-6.68);
\draw[moaGray,very thick] (0.649,-7.42) -- (0.649,-6.58);
\node[anchor=west,font=\scriptsize] at (2.623,-7) {6.8 ms};
\node[anchor=east,font=\scriptsize] at (-0.15,-8) {rank 8 MI100, 6 rows};
\fill[moaOrange!35,draw=moaOrange,thick] (0,-8.32) rectangle (8.328,-7.68);
\draw[moaGray,very thick] (0.582,-8.42) -- (0.582,-7.58);
\node[anchor=west,font=\scriptsize] at (8.448,-8) {597 ms};
\draw[->,moaGray] (0,-9.0) -- (9.4,-9.0);
\foreach \x/ł in {0/1,3/10,6/100,9/1000}{\draw[moaGray] (\x,-8.9) -- (\x,-9.1) node[below,font=\scriptsize]{ł};}
\node[font=\scriptsize,anchor=west] at (9.5,-9.0) {ms (log scale)};
\draw[moaGray,very thick] (6.2,-10.15) -- (6.2,-10.75);
\node[font=\scriptsize,anchor=west] at (6.35,-10.45) {linear-scaling prediction};
\end{tikzpicture}