jemdoc – latex equationsjemdoc includes support for LaTeX equations. LaTeX source embedded in jemdoc files is processed by calling latex and dvipng (which must both be available for this feature). Resulting PNG images are then placed on the web page. Equations are typeset using pure LaTeX. jemdoc equation support relies on several pieces, any of which may break. No guarantees! Support may be limited. Inline equationsThe conjugate function \(f^\star(y) = \sup_{x \in X}(y^Tx - f(x))\) appears here inline, and is in the variable \(y\). Dollar signs ($) surround the LaTeX equation in the jemdoc source. Syntax
The sample function $f^\star(y) = \sup_{x \in X}(y^Tx - f(x))$ appears here inline, and is in the variable $y$. Equations on separate linesTo render an equation on its own line, use backslash-escaped round brackets (\( and \)). For example, the identity \[ (I + XY)^{-1} = I - X(I + YX)^{-1}Y \] is typeset on its own line. Yes, round brackets instead of square brackets — this is to avoid a conflict with ordinary square brackets that are escaped to avoid being a link. Sorry. Syntax
The identity \( (I \+ XY)^{-1} = I - X(I \+ YX)^{-1}Y \) is typeset on its own line. Here, the line breaks (and other whitespace) are ignored. As always, the exact formatting details can be adjusted using CSS. Notes
\[ f(x) = \left\{ \begin{array}{ll} 3, & x \leq 0 \\ 5, & x > 0. \\ \end{array}\right. \] (You can view the jemdoc source for this page.)
|