Public:Writing LaTeX
This page serves as an example of how to write LaTeX formulas on this wiki. Go to Edit of this page to see how it's done (especially see the top of the text where I define new macros the same way as we would do in the regular LaTeX).
Note that there are minor differences with LaTeX. Inline mathematics is typeset with $$...$$
, \(...\)
, and <math>
HTML tag. This means that $...$
won't work! And display style maths is written with \[...\]
, \begin{XXX}...\end{XXX}
, where XXX
can be, for example, align
.
See for example this $$\Ek A$$ and \(\Pk A\) and also the following:
\[ \Ek A =\ ... \] and \begin{align} \Pk A = ... \end{align}
For commutative diagrams the simplest option is to just use arrays:
\[ \begin{array}{ccc} 0 & \xrightarrow{i} & A & \xrightarrow{f} & B & \xrightarrow{q} & C & \xrightarrow{d} & 0\\ \downarrow & \searrow & \downarrow & \nearrow & \downarrow & \searrow & \downarrow & \nearrow & \downarrow\\ 0 & \xrightarrow{j} & D & \xrightarrow{g} & E & \xrightarrow{r} & F & \xrightarrow{e} & 0 \end{array}\]
Another option is to use CD
\(\require{AMScd}\)
\begin{CD}
\mathbb{Z}/p^n\mathbb{Z} @>{\theta_{n+1,\alpha}}>> U_1/U_{n+1}\\
@VVV @VVV\\
\mathbb{Z}/p^{n-1}\mathbb{Z} @>{\theta_{n,\alpha}}>> U_1/U_n
\end{CD}
However, CD doesn't support diagnoal arrows [1]. Note that to use CD one has to include <math>\require{AMScd}</math>
somewhere in the text. Basic documentation of CD can be found here.
If one prefers to use TikZ diagrams or XY, it's possible to prepare the diagram in presheaf.com and then just add a link to the generated image. For example, this one
or (preferably) also include a link to the source (so that it can be easily eddited if needed):