> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/es/fuentes/02-font-typefaces.md).

# Familias tipográficas

## Introducción

De forma predeterminada, LaTeX compone los documentos usando la $$\text{Computer Modern}$$ familia tipográfica, pero puedes usar paquetes de LaTeX para utilizar distintas fuentes según tus necesidades o preferencias.

## Cambiar las fuentes predeterminadas del documento

Por ejemplo, al añadir `\usepackage{tgbonum}` al preámbulo del documento, LaTeX usará la familia tipográfica TEX Gyre Bonum para componer tu documento:

```latex
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{tgbonum}

\begin{document}
Este documento es un documento de ejemplo para probar las
familias tipográficas y los tipos de letra.

Este texto usa un tipo de letra diferente
\end{document}
```

[Abre este ejemplo en Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Change+LaTeX+fonts\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%5BT1%5D%7Bfontenc%7D%0A%5Cusepackage%7Btgbonum%7D%0A%0A%5Cbegin%7Bdocument%7D%0AThis+document+is+a+sample+document+to+test+font+%0Afamilies+and+font+typefaces.%0A%0AThis+text+uses+a+different+font+typeface%0A%5Cend%7Bdocument%7D)

La siguiente imagen muestra el resultado producido por el ejemplo anterior:

![FontTypefacesEx1OLV2.png](/files/e73ebaa531082a970068a11a6dd963623899f624)

## Cambiar la tipografía predeterminada

La fuente también puede cambiarse para un elemento específico del documento.

```latex
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{tgbonum}

\begin{document}
Este documento es un documento de ejemplo para
probar familias tipográficas y tipos de letra.

{\fontfamily{qcr}\selectfont
Este texto usa un tipo de letra diferente
}
\end{document}
```

[Abre este ejemplo en Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Change+LaTeX+fonts\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%5BT1%5D%7Bfontenc%7D%0A%5Cusepackage%7Btgbonum%7D%0A%0A%5Cbegin%7Bdocument%7D%0AThis+document+is+a+sample+document+to+%0Atest+font+families+and+font+typefaces.%0A%0A%7B%5Cfontfamily%7Bqcr%7D%5Cselectfont%0AThis+text+uses+a+different+font+typeface%0A%7D%0A%5Cend%7Bdocument%7D)

La siguiente imagen muestra el resultado producido por el ejemplo anterior:

![FontTypefacesEx2.png](/files/14ffedbf9d82928be3627fa8d4112b025596e0ea)

El comando `\fontfamily{qcr}\selectfont` establecerá el *TeX Gyre Cursor* tipo de letra, cuyo código de fuente es `qcr`, para el texto dentro de las llaves. Hay muchos más tipos de letra de LaTeX disponibles; consulta el [guía de referencia](#reference-guide).

Los tipos de letra populares de LaTeX proceden de cuatro familias:

* *Computer Modern* (predeterminado en las clases estándar de LaTeX): CM Roman, CM Sans Serif, CM Typewriter
* *Latin Modern*: LM Roman, LM Sans Serif, LM Typewriter, LM Dunhill
* *Fuentes PostScript*: Times, Utopia/Fourier, Palatino, Bookman, Helvetica, Courier
* *TeX Gyre*

## Guía de referencia

**tipos de letra Roman, Sans Serif y Typewriter**

| Fuente                       | "nombre del paquete de fuente" | "código de fuente" | Ejemplo                                                               |
| ---------------------------- | ------------------------------ | ------------------ | --------------------------------------------------------------------- |
| Computer Modern Roman        |                                | `cmr`              | ![Typeface-cmr.png](/files/b446b366c10ffc830df48ad1408dc6c50030ccea)  |
| Latin Modern Roman           | `lmodern`                      | `lmr`              | ![Typeface-lmr.png](/files/cb54d5a9eeb33432ec6934709b2432aaa336ef0f)  |
| Latin Modern Dunhill         | `lmodern`                      | `lmdh`             | ![Typeface-lmdh.png](/files/06295eec8e3c3b2f62a0b73cbe3feb0252498abc) |
| TeX Gyre Termes              | `tgtermes`                     | `qtm`              | ![Typeface-qtm.png](/files/7a56773740ba157e5fa7558fa298cff7c810c553)  |
| TeX Gyre Pagella             | `tgpagella`                    | `qpl`              | ![Typeface-qpl.png](/files/453d5ac7eeb09d343ce7df3f466d6e0c6a94861c)  |
| TeX Gyre Bonum               | `tgbonum`                      | `qbk`              | ![Typeface-qbk.png](/files/9e83dda104faf290fbafddac4767e34d231dd99a)  |
| TeX Gyre Schola              | `tgschola`                     | `qcs`              | ![Typeface-qsc.png](/files/7361ba3162bdfa3af0a1c35461ea1e80f76a99eb)  |
| Times                        | `mathptmx`                     | `ptm`              | ![Typeface-ptm.png](/files/1fdd79def92cc219528bd469a5410aeb67dd5395)  |
| Utopia / Fourier             | `utopia` / `fourier`           | `put`              | ![Typeface-put.png](/files/336df52baa84dcb805986fd6d5e5f5a7832c589d)  |
| Palatino                     | `palatino`                     | `ppl`              | ![Typeface-ppl.png](/files/3e575f1d3a749f8833aede6c1f325d5b4259ee46)  |
| Bookman                      | `bookman`                      | `pbk`              | ![Typeface-pbk.png](/files/d3747e04b1bf5b5e5b5d5a80189d4150eb108ec8)  |
| Charter                      | `charter`                      | `bch`              | ![Typeface-bch.png](/files/584cb2354fe90f61c76d10f6b711d4c3ebf5af9f)  |
| Computer Modern Sans Serif   |                                | `cmss`             | ![Typeface-cmss.png](/files/25520a53ac674463c72517cd20f306b5e089e12e) |
| Latin Modern Sans Serif      | `lmodern`                      | `lmss`             | ![Typeface-lmss.png](/files/68e4a3339bcf6239c8808ec0609ee587cddb6038) |
| TeX Gyre Adventor            | `tgadventor`                   | `qag`              | ![Typeface-qag.png](/files/c445efd890e14936cb1e8e5dbc9ccbde2c331337)  |
| TeX Gyre Heros               | `tgheros`                      | `qhv`              | ![Typeface-qhv.png](/files/92f3c923f6d0f2fbc8e001813f3b9b75ae942a7e)  |
| Helvetica                    | `helvet`                       | `phv`              | ![Typeface-phv.png](/files/717d27435953d5ec23895c15dc042e504c7f1398)  |
| Computer Modern Typewriter   |                                | `cmtt`             | ![Typeface-cmtt.png](/files/e801eaa1d16b7fedb63d031e2423140d5552e480) |
| Latin Modern Sans Typewriter | `lmodern`                      | `lmtt`             | ![Typeface-lmtt.png](/files/2e17851ed4d4354a7c84d1d8229151eff87c6be5) |
| TeX Gyre Cursor              | `tgcursor`                     | `qcr`              | ![Typeface-qcr.png](/files/ed8144e5e1d459c90f18148fb24ed4b0f1fe93f8)  |
| Courier                      | `courier`                      | `pcr`              | ![Typeface-pcr.png](/files/ab18d68404a09caac80cf3063fe754292de55510)  |

Ver también [El catálogo de fuentes de LaTeX](https://tug.org/FontCatalogue/), aunque ten en cuenta que no todas las fuentes enumeradas en el catálogo se distribuyen con una licencia que permita su distribución como parte de TeX Live, y por lo tanto no todas esas fuentes están disponibles en Overleaf.

## Lectura adicional

Para más información, consulte:

* [El catálogo de fuentes de LaTeX](https://tug.org/FontCatalogue/).
* [Negrita, cursiva y subrayado](/latex/es/conceptos-basicos-de-latex/03-bold-italics-and-underlining.md)
* [Tamaños, familias y estilos de fuente](/latex/es/fuentes/01-font-sizes-families-and-styles.md)
* [Compatibilidad con fuentes modernas con XeLaTeX](/latex/es/fuentes/03-xelatex.md)
* [Formato de párrafos](/latex/es/formato/04-articles-how-to-change-paragraph-spacing-in-latex.md)
* [Saltos de línea y espacios en blanco](/latex/es/formato/05-line-breaks-and-blank-spaces.md)
* [Varias columnas](/latex/es/formato/09-multiple-columns.md)
* [Documentos a una sola cara y a doble cara](/latex/es/formato/08-single-sided-and-double-sided-documents.md)
* [Gestión en un proyecto grande](/latex/es/estructura-del-documento/07-management-in-a-large-project.md)
* [Proyectos de LaTeX de varios archivos](/latex/es/estructura-del-documento/08-multi-file-latex-projects.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/es/fuentes/02-font-typefaces.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
