LaTeX/Fonts

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

In order to select another than the default typeface in Latex environment, it is necessary to include some command in the preamble of the document.

Consider the following example:

\usepackage[T1]{fontenc}
\usepackage[light,math]{iwona}

[edit] Useful example

Following is an useful example found at google discussion groups [1] . The example demonstrates how to select different fonts in a simple document.

\documentclass{book}

\newcommand\blah{blah blah blah blah blah }

\begin{document}

\blah \blah \blah \blah

\renewcommand*\rmdefault{ppl}\normalfont\upshape

\blah \blah \blah \blah

\renewcommand*\rmdefault{iwona}\normalfont\upshape

\blah \blah \blah \blah

\end{document} 


[edit] XeTeX

XeTeX and fontspec simplify font management considerably.

[edit] Some useful websites

The Latex Font Catalogue
LaTeX font commands
How to change fonts from Times Roman to Helvetica in Latex
LaTeX: Fonts

Personal tools