LaTeX

Created Thursday 28 November 2013

  1. Site:
    1. http://www.latex-project.org/
  2. Intro:
    1. http://mirror.isoc.org.il/pub/ctan/info/lshort/english/lshort.pdf
  3. Math ref:
    1. http://web.ift.uib.no/Teori/KURS/WRK/TeX/symALL.html
  4. LaTeX tables
    1. \begin{tabular}{ l | c || r }
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9 \\
\end{tabular}

  1. \begin{tabular}{ l | c || r }
\hline
1 & 2 & 3 \\ \hline
4 & 5 & 6 \\ \hline
7 & 8 & 9 \\
\hline
\end{tabular}

  1. \begin{tabular}{|r|l|}
\hline
7C0 & hexadecimal \\
3700 & octal \\ \cline{2-2}
11111000000 & binary \\
\hline \hline
1984 & decimal \\
\hline
\end{tabular}

  1. Matrices and arrays:
    1. Matrix:

\left(\begin{array}{ccc}
a & b & c \\
d & e & f \\
g & h & i \\
\end{array}\right)
  1. Emulating formulae:

|x| =
\left\{
\begin{array}{ll}
x & \mbox{if $x \geq 0$};\\
-x & \mbox{if $x < 0$}.
\end{array}
\right.
http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/Matrices.html
  1. Nice example:

m
\left\{\left(
\overset{n}{\overbrace{
\begin{array}{c}
\alpha \\
\beta \\
\gamma
\end{array}
}}
\right)\right.
k
\left\{\left(
\overset{l}{\overbrace{
\begin{array}{ccc}
a & b & c \\
d & e & f
\end{array}
}}
\right)\right.
= \emptyset:n \neq k

\begin{tabular}{ | c || c | c | c | c | c | c | c | }
\hline
k & 1 & 2 & 3 & 4 & 5 & 6 & 7 \\ \hline
f(k) & 1 & 2 & 3 & 1 & 2 & 1 & 2 \\ \hline
\multicolumn{8}{c}{}\\
\multicolumn{8}{c}{
    \(f(7) = min \left[
        1 + 1,\: 1 + 3,\: 1 + 1
    \right] = 2 \)
} \\
\end{tabular}



Backlinks: