previous up next 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 $ \backslash$ are used for formatting. Mathematical symbols are typed in math mode delimited by two dollar signs ($ $ \backslash$ partial_t f$ yields $ \partial_t f$ ) or in an equation:
\begin{equation}\label{advection}
\frac{d}{dt}f \equiv 
\frac{\partial f}{\partial t} 
  +u\frac{\partial f}{\partial x}=0
\end{equation}
yields

$\displaystyle \frac{d}{dt}f \equiv \frac{\partial f}{\partial t} + u\frac{\partial f}{\partial x} = 0$ (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.

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

* Special characters and accents (text mode).

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

* Greek letters (math mode).

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

* Binary operation and relation symbols (math mode).

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

* Arrows and miscellaneous symbols (math mode).

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

* Operations and functions (math mode).

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

* Format, list and equations.

$ \backslash$ begin{quote} $ \backslash$ end{quote} $ \backslash$ begin{itemize} $ \backslash$ item $ \backslash$ end{itemize}            
$ \backslash$ begin{quotation} $ \backslash$ end{quotation} $ \backslash$ begin{enumerate} $ \backslash$ item $ \backslash$ end{enumerate}            
$ \backslash$ begin{center} $ \backslash$ end{center} $ \backslash$ begin{description} $ \backslash$ item $ \backslash$ end{description}            
$ \backslash$ begin{verse} $ \backslash$ end{verse} $ \backslash$ begin{equation} $ \backslash$ label{key} $ \backslash$ end{equation}            
$ \backslash$ begin{verbatim} $ \backslash$ end{verbatim} $ \backslash$ begin{equation*} $ \backslash$ 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{displaymath}\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{displaymath}    

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

$\displaystyle {a+b+c=}$
    $\displaystyle c+d+e+f+g+h$  
$\displaystyle x$ $\displaystyle <$ $\displaystyle y$ (2)

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

      
back up next contents bibliography Copyright © Lifelong-learners at 08:01:16, November 19th, 2017