Help:Fractions, matrices, multilines

From ThermoWiki

Jump to: navigation, search


Contents

Fractions

Feature Syntax How it looks rendered
Fractions \frac{2}{4}=0.5 \frac{2}{4}=0.5
Small Fractions \tfrac{2}{4} = 0.5 \tfrac{2}{4} = 0.5
Large (normal) Fractions \dfrac{2}{4} = 0.5 \dfrac{2}{4} = 0.5
Nested Fractions \cfrac{2}{c + \cfrac{2}{d + \cfrac{2}{4}}} = a \cfrac{2}{c + \cfrac{2}{d + \cfrac{2}{4}}} = a

Binomial coefficients

Feature Syntax How it looks rendered
Binomial coefficients \binom{n}{k} \binom{n}{k}
Small Binomial coefficients \tbinom{n}{k} \tbinom{n}{k}
Large (normal) Binomial coefficients \dbinom{n}{k} \dbinom{n}{k}

Matrices

Feature Syntax How it looks rendered
No delimiters
\begin{matrix}
  x & y \\
  z & v 
\end{matrix}
\begin{matrix} x & y \\ z & v \end{matrix}
Single bars
\begin{vmatrix}
  x & y \\
  z & v 
\end{vmatrix}
\begin{vmatrix} x & y \\ z & v \end{vmatrix}
Double bars
\begin{Vmatrix}
  x & y \\
  z & v
\end{Vmatrix}
\begin{Vmatrix} x & y \\ z & v \end{Vmatrix}
Brackets
\begin{bmatrix}
  0      & \cdots & 0      \\
  \vdots & \ddots & \vdots \\ 
  0      & \cdots & 0
\end{bmatrix}
\begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0\end{bmatrix}
Curly brackets
\begin{Bmatrix}
  x & y \\
  z & v
\end{Bmatrix}
\begin{Bmatrix} x & y \\ z & v \end{Bmatrix}
Parentheses
\begin{pmatrix}
  x & y \\
  z & v 
\end{pmatrix}
\begin{pmatrix} x & y \\ z & v \end{pmatrix}
Small
\bigl( \begin{smallmatrix}
  a&b\\ c&d
\end{smallmatrix} \bigr)
\bigl( \begin{smallmatrix}   a&b\\ c&d \end{smallmatrix} \bigr)

MultiLines

Feature Syntax How it looks rendered
Case distinctions
f(n) = 
\begin{cases} 
  n/2,  & \mbox{if }n\mbox{ is even} \\
  3n+1, & \mbox{if }n\mbox{ is odd} 
\end{cases}
f(n) =  \begin{cases}   n/2,  & \mbox{if }n\mbox{ is even} \\    3n+1, & \mbox{if }n\mbox{ is odd}  \end{cases}
Multiline equations
\begin{align}
 f(x) & = (a+b)^2 \\
      & = a^2+2ab+b^2 \\
\end{align}
\begin{align}  f(x) & = (a+b)^2 \\       & = a^2+2ab+b^2 \\ \end{align}
\begin{alignat}{2}
 f(x) & = (a-b)^2 \\
      & = a^2-2ab+b^2 \\
\end{alignat}
\begin{alignat}{2}  f(x) & = (a-b)^2 \\       & = a^2-2ab+b^2 \\ \end{alignat}
Multiline equations

(must define number of colums used)

(should not be used unless needed)
\begin{array}{lcl}
  z        & = & a \\
  f(x,y,z) & = & x + y + z  
\end{array}
\begin{array}{lcl}   z        & = & a \\   f(x,y,z) & = & x + y + z   \end{array}
More multiline equations
\begin{array}{lcr}
  z        & = & a \\
  f(x,y,z) & = & x + y + z     
\end{array}
\begin{array}{lcr}   z        & = & a \\   f(x,y,z) & = & x + y + z      \end{array}
Breaking up a long expression so that
it wraps when necessary

<math>f(x) \,\!</math>
<math>= \sum_{n=0}^\infty a_n x^n </math>
<math>= a_0+a_1x+a_2x^2+\cdots</math>

f(x) \,\!= \sum_{n=0}^\infty a_n x^n= a_0 +a_1x+a_2x^2+\cdots

Simultaneous equations
\begin{cases}
    3x + 5y +  z \\
    7x - 2y + 4z \\
   -6x + 3y + 2z 
\end{cases}
\begin{cases} 3x + 5y + z \\ 7x - 2y + 4z \\ -6x + 3y + 2z \end{cases}


Return to General TeX Help Page

Personal tools