This site is a part of Przemoc's network. Look also at my techblog.
 

LaTeX tips

Common mistakes

Closed interval

Incorrect
<0,1>

Graph

Correct

\langle 0,1 \rangle

Graph

Colon in function definition

Incorrect
f: \mathbb{R} \to \mathbb{R}

Graph

Correct

f\colon \mathbb{R} \to \mathbb{R}

Graph

Comma as decimal point

Incorrect
12,34

Graph

Correct

12{,}34

Graph

Matrix

Incorrect
\left[ \begin{array}{cc} 
a & b \\ 
c & d 
\end{array} \right]

Graph

Correct

\begin{bmatrix} 
a & b \\ 
c & d 
\end{bmatrix}

Graph

Parenthesis in complex equations

Incorrect
( \frac{(a + b)^2}{2} )^\frac{1}{3}

Graph

Correct

\left( \frac{(a + b)^2}{2} \right)^\frac{1}{3}

Graph

Beamer

Translating definition, example and other block names without beamer translator

\RequirePackage{ifthen}
\renewcommand{\translate}[1]
{\ifthenelse{\equal{#1}{Definition}}{Definicja}
{\ifthenelse{\equal{#1}{Example}}{Przykład}
{\ifthenelse{\equal{#1}{Examples}}{Przykłady}
{#1}}}}
 
tips/latex.txt · Last modified: 2009.12.02 12:49 by przemoc
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki