SYLLABUS  Previous: 9 PROBLEM BASED LEARNING  Up: 9 PROBLEM BASED LEARNING  Next: 9.2 Programming in JAVA

## 9.1 Typesetting with TEX

Slide : [ TeX basics - size - accents - Greek - operators - arrows - functions - format - tables ]

The text input in the first window is typeset using the TEXlanguage and is translated into HTML with the tth compiler installed on our server. You have to view documents using the Western character set ISO-8859, which is generally set by default in recent browsers. If this page doesn't display the symbols correctly, please refer to the frequently asked questions FAQ link on the course main page.

TEXbasics.

Normal ASCII input is interpreted in text mode and TEXcommands starting with the backslash character are used for formatting. Mathematical symbols are typed in math mode delimited by two dollar signs ($partial_t f$ yields ) or in an equation:
 $$\label{advection} \frac{d}{dt}f \equiv \frac{\partial f}{\partial t} +u\frac{\partial f}{\partial x}=0$$ 
yields

 (1)

where (\ref{advection}) appears in the text as (9.1#eq.1) and can be used to reference your equations within the document. You can also add links and HTML inserts using

\href{http://address}{text} create a link from text to http://address
\special{html:stuff} inserts HTML stuff


Character type and size.

 Ital Bold textit{} textbf{} Rom textrm{} Type texttt{} mathrm{} mathit{} mathbf{} mathtt{} small small{} normal normalsize{} large large{} Large Large{}

Special characters and accents (text mode).

  & & % % # # { { } } _ _ é '{e} è {e} ê ^{e} ë "{e} ç c{c} dag ddag § S ¶ P © copyright £ pounds

Greek letters (math mode).

 alpha beta gamma delta epsilon varepsilon zeta eta theta vartheta iota kappa lambda mu nu xi o pi varpi rho varrho sigma varsigma tau upsilon phi varphi chi psi omega Gamma Delta Theta Lambda Xi Pi Sigma Upsilon Phi Psi Omega

Binary operation and relation symbols (math mode).

 pm mp times div ast circ bullet cdot cap cup dagger ddagger leq geq ll gg subset supset subseteq supseteq in ni equiv approx sim simeq neq propto perp mid parallel

Arrows and miscellaneous symbols (math mode).

 leftarrow rightarrow Leftarrow Rightarrow leftrightarrow Leftrightarrow uparrow downarrow Uparrow Downarrow mapsto aleph hbar imath ell wp Re Im prime emptyset nabla surd | angle forall exists backslash partial infty clubsuit diamondsuit heartsuit spadesuit

Operations and functions (math mode).

 sum prod int oint sqrt{a} a^{b} a_{ij} sinh arccos cos arcsin sin arctan tan arg cot cosh det dim exp lim ln log max min tanh frac{a}{b}

Format, list and equations.

 begin{quote} end{quote} begin{itemize} item end{itemize} begin{quotation} end{quotation} begin{enumerate} item end{enumerate} begin{center} end{center} begin{description} item end{description} begin{verse} end{verse} begin{equation} label{key} end{equation} begin{verbatim} end{verbatim} begin{equation*} end{equation*}

Tables (text mode) and arrays (math mode).

 \begin{tabular}{|llc|} \multicolumn{2}{c}{ITEM} & \multicolumn{1}{c}{PRICE} \\ gnat & (dozen) & 3.24 \\ gnu & (each) & 24.00 \end{tabular} \\ 
yields
 ITEM PRICE gnat (dozen) 3.24 gnu (each) 24.00

 \begin{equation*} \begin{array}{clcr} a+b+c & uv & x-y & 27 \\ a+b & u+v & z & 134 \\ a & 3u+vw & xyz & 2,978 \end{array} \end{equation*} 
yields

 \begin{eqnarray} \lefteqn{a+b+c=} \nonumber \\ & & c+d+e+f+g+h \nonumber x & < & y \end{eqnarray} `
yields

 (2)

SYLLABUS  Previous: 9 PROBLEM BASED LEARNING  Up: 9 PROBLEM BASED LEARNING  Next: 9.2 Programming in JAVA