There are three different ways to incorporate LaTeX symbols into pages. The first two have restrictive formatting requirements and are only designed for adding a small amount of LaTeX to an existing wiki page. The third method allows you to upload a complete LaTeX file.

Simple one-line LaTeX math mode commands

At the top of the page insert the formatting line

#format inline_latex

Then anywhere on that page you can use the usual dollar sign delimeters as you would in a LaTeX document. Everything between these delimeters must be entered as a single line with no line breaks.

For example,

Let $\Gamma$ be a group acting on a set $X$.  Let $\Gamma_x$ denote the stabilizer of $x$ and let $\Gamma\cdot x$ denote the orbit of $x$.  Then $$ |\Gamma\cdot x|=\frac{|\Gamma|}{|\Gamma_x|}.$$

produces

Let $\Gamma$ be a group acting on a set $X$. Let $\Gamma_x$ denote the stabilizer of $x$ and let $\Gamma\cdot x$ denote the orbit of $x$. Then

$$ |\Gamma\cdot x|=\frac{|\Gamma|}{|\Gamma_x|}.$$

Certain symbols and fonts may have to be loaded separately. If you get error messages, try adding the command

#pragma latex_preamble YourPreamblePage

to the top of the page. Then create the page YourPreamblePage and include your packages and macros. You can always use the default preamble page Preamble, but please do not edit it.

More complicated one-line LaTeX math mode commands

For larger blocks of latex involving user-defined macros, use the [ [ latex( ... % ... ) ] ] format (with spaces removed). Everything before the % symbol is header material (macros, included packages, etc). Everything after the % is normal LaTeX markup. For example,

[[latex(\newtheorem{def}{Definition} % \begin{def} A group $G$ is {\em nonpositively curved} if $\ldots$ \end{def})]] 

produces

 \begin{definition} A group $G$ is {\em nonpositively curved} if $\ldots$ \end{definition}

Note that everything between the delimeters must again be a single line with no line breaks. User defined macros can again be given for the entire page using the #pragma latex_preamble line at the top of the page. In this case, the % symbol is omitted.

LaTeXing an entire document

This is the method used to input an entire LaTeX document. It allows line breaks, blank lines, and compiles twice to check citations and references. (It does not handle figures.) The disadvantage to using this method is that the entire document gets embedded in the page as an image file. This means that wiki macros (such as internal links) cannot be used within the document, and any inserted comments or edits would have to be written in LaTeX and compiled with the image file.

This method uses the delimeters "{ { { #!latex" (remove the spaces) before the document and "} } }" after. For example,

{ { {#!latex

\newtheorem{thm}{Theorem}[section]

%

\title{Title}
\author{Author}
\maketitle

\section{This is the first section}

For a proof of Theorem~\ref{thm:integrals}, see \cite{Foo}.

\begin{thm}\label{thm:integrals}
\begin{eqnarray}
\int_0^1 e^x\;dx = e^2-1 \\ \int_0^2 e^x\;dx = e-1.
\end{eqnarray}
\end{thm}

\begin{thebibliography}{xxx}
\bibitem[Bar]{Foo} {\em Some famous integrals}, Topology 12 (1927).
\end{thebibliography}
} } }

produces the following:


\newtheorem{thm}{Theorem}[section]

%

\title{Title}
\author{Author}
\maketitle

\section{This is the first section}

For a proof of Theorem~\ref{thm:integrals}, see \cite{Foo}.

\begin{thm}\label{thm:integrals}
\begin{eqnarray}
\int_0^1 e^x\;dx = e-1 \\
\int_0^2 e^x\;dx = e^2-1.
\end{eqnarray}
\end{thm}

\begin{thebibliography}{xxx}
\bibitem[Bar]{Foo} {\em Some famous integrals}, Topology 12 (1927).
\end{thebibliography}

LatexReference (last edited 2007-04-29 07:25:31 by RickScott)