Difference between revisions of "Public:Writing LaTeX"

m
m
Line 13: Line 13:
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).
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 <code><nowiki>$$...$$</nowiki></code>, <code>\(...\)</code>, and <code>math</code> HTML tag. This means that <code><nowiki>$...$</nowiki></code> '''won't work!''' And display style maths is written with <code>\[...\]</code>, <code>\begin{XXX}...\end{XXX}</code>, where <code>XXX</code> can be, for example, <code>align</code>.
Note that there are minor differences with LaTeX. Inline mathematics is typeset with <code><nowiki>$$...$$</nowiki></code>, <code>\(...\)</code>, and <code>&lt;math&gt;</code> HTML tag. This means that <code><nowiki>$...$</nowiki></code> '''won't work!''' And display style maths is written with <code>\[...\]</code>, <code>\begin{XXX}...\end{XXX}</code>, where <code>XXX</code> can be, for example, <code>align</code>.





Revision as of 20:14, 27 May 2020

\( \newcommand\Ek{\mathbb E_k} \newcommand\Pk{\mathbb P_k} \)

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}