Skip to content

Latex

Cheatsheet

Style

Use point as the decimal separator: \decimalpoint.

(https://tex.stackexchange.com/questions/82009/babel-and-the-decimal-separator)

Greek letters

  • epsilon: \varepsilon $ \varepsilon $
  • rho: \rho $ \rho $
  • phi: \phi $ \phi $

Not greek, but related:

  • Nabla: \nabla $ \nabla $

(http://web.ift.uib.no/Teori/KURS/WRK/TeX/sym1.html) (https://en.wikipedia.org/wiki/Greek_alphabet)

Math

Vectors

  • Unit vectors: \hat{v} $ \hat{v} $

Integrals

  • Triple integrals: \iiint xyz dxdydz $ \iiint xyz dxdydz $
Closed integrals

Using packages asmath and esint.

  • \oiint $ \oiint $

(https://tex.stackexchange.com/questions/134416/surface-integral)

Quotation

To quote some text you can't directly use "", you should wrap it around `` and '' instead.

Rename tables names in Spanish

By default, the caption of a table will start with “Cuadro: ” when using \usepackage{babel}. if you want to change it to something else, for example “Tabla: ” add the following lines after \begin{document}:

% Cambiar Cuadros por Tablas y lista de...
\renewcommand{\listtablename}{Índice de tablas}
\renewcommand{\tablename}{Tabla}

Usage

Plugins

Minted

Import code from file
\inputminted{<lang>}{<file>}

Figures

Tips

\usepackage{placeins}

% ... some floats here ...

\FloatBarrier

Reference

Packages