# \@\bf\Large\La Te X\@ Support

\@\La Te X\@ has been integrated into this site, making it easy to include mathematics into the pages you edit. This is not a standard feature of PmWiki, so it is not covered in the usual documentation on text formatting rules. This page covers the inclusion of \@\La Te X\@ code and addresses some of the complications that arise.

The syntax used to produce \@\La Te X\@ output is basically what you would expect. For example, the formula `⚠ $A\in 2^\omega$`

is produced by the code `$A\in 2^\omega$`

. The usual markup is also provided for display mathematics. In addition, text delimited by `\@`

and `\@`

is compiled as \@\La Te X\@ in text mode and included inline. Text beween `\@@`

and `\@@`

is compiled in text mode too, but then centered in the same way as display mathematics.

The following table summerizes the different ways to include \@\La Te X\@ in pages on this site.

\@\La Te X\@ Markup |

inline mathematics | `$...$` or `\(...\)` |

display mathematics | `$$...$$` or `\[...\]` |

inline text | `\@...\@` |

display text | `\@@...\@@` |

## Important \@\bf\large\Te X\@nical Notes

1. \@\La Te X\@ code is compiled in documentclass `article`

with `amssymb`

and `amsmath`

loaded. Please request macros and additional packages which you would find particularly useful.

2. I have tried to ensure that the vertical alignment of inline formulas is correct on browsers that support CSS (cascading style sheets). Please contact me if the formulas below do not align well on your browser.

`⚠ $\sqrt{2^\frac{1}{x^2+1}+1}$`

and `⚠ $\sigma_{\left\lfloor\frac{n}{\sqrt{m+1}}\right\rfloor}$`

should be aligned with the surrounding text.
3. The first matching end delimiter is *always* interpreted as the end of the \@\La Te X\@ expression. Thus, `$\$$`

produces an error but `\(\$\)`

produces \(\$\).

4. To produce a dollar sign type [`=$=`

]. This prevents the Wiki engine from interpreting it as part of an inline formula.

5. You must explicitly change the font of inline \@\La Te X\@ to match changes in the surrounding text font. For example, if you enter `[+++'''Let $A\in 2^\omega$ be 1-random.'''+++]`

then you get

**Let**`⚠ $A\in 2^\omega$`

be 1-random.

In order to generate

**Let \@\boldmath \LARGE**`⚠ $A\in 2^\omega$`

\@ be 1-random.

you should enter `[+++'''Let \@\boldmath \LARGE $A\in 2^\omega$\@ be 1-random.'''+++]`

. Note that math font information is generally set *before* entering math mode, so the `\@...\@`

markup is usefull here.

Although not perfect, there is a fairly reasonable correspondence between font sizes in \@\La Te X\@ and in the text markup on this site. The following tables suggests the code to use in various situations.

Matching Font Sizes |

Pm Wiki markup | Corresponding \@\La Te X\@ |

`[+++...+++]` | `\LARGE` |

`[++...++]` | `\Large` |

`[+...+]` | `\large` |

`[-...-]` | `\footnotesize` |

`[--...--]` | `\scriptsize` |

\@\La Te X\@ in Headings |

Pm Wiki markup | Corresponding \@\La Te X\@ |

`!` | `\boldmath\LARGE` or `\bf\LARGE` |

`!!` | `\boldmath\Large` or `\bf\Large` |

`!!!` | `\boldmath\large` or `\bf\large` |