6 tex-latex snippets
Snippets are tiny notes I've collected for easy reference.
Avoiding naming collisions in TeX/LaTeX
Both the pifont
and marvosym
package define a macro named cross
, so a simple \usepackage
pair like:
\usepackage{pifont}
\usepackage{marvosym}
generates an error. The savesym
package is here to save the day:
\usepackage{savesym}
\usepackage{pifont}
\savesymbol{cross}
\usepackage{marvosym}
\restoresymbol{PIF}{cross}
Now both packages are loaded safely (and the pifont
\cross
macro is now available under the name \PIFcross
).
Published 8 Feb 2014
TeX/LaTeX Font Sizes
To change the font size of text in a TeX/LaTeX document, use:
{\size Text to change the size of.}
where \size
is one of:
\tiny
\scriptsize
\footnotesize
\small
\normalsize
\large
\Large
\LARGE
\huge
\Huge
Also see http://en.wikibooks.org/wiki/LaTeX/Fonts#Sizing_text for font size metrics and other details.
Published 8 Feb 2014
Snippets are tiny notes I've collected for easy reference.