> 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/cs/pisma/02-font-typefaces.md).

# Druhy písma

## Úvod

Ve výchozím nastavení LaTeX sází dokumenty pomocí $$\text{Computer Modern}$$ rodiny písma, ale můžete použít balíčky LaTeX k použití různých fontů podle svých potřeb nebo preferencí.

## Změna výchozích písem dokumentu

Například přidáním `\usepackage{tgbonum}` do preambule dokumentu použije LaTeX při sazbě vašeho dokumentu rodinu písma TEX Gyre Bonum:

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

\begin{document}
Tento dokument je ukázkový dokument pro testování písem
rodin a řezů písma.

Tento text používá jiný řez písma
\end{document}
```

[Otevřete tento příklad v Overleafu](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)

Následující obrázek ukazuje výstup vytvořený výše uvedeným příkladem:

![FontTypefacesEx1OLV2.png](/files/58dc64a815d262c1997d2a20569e4bb43ed97a79)

## Změna výchozího řezu písma

Písmo lze také změnit pro konkrétní prvek v dokumentu.

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

\begin{document}
Tento dokument je ukázkový dokument pro
testování rodin a řezů písma.

{\fontfamily{qcr}\selectfont
Tento text používá jiný řez písma
}
\end{document}
```

[Otevřete tento příklad v Overleafu](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)

Následující obrázek ukazuje výstup vytvořený výše uvedeným příkladem:

![FontTypefacesEx2.png](/files/243970147aa81c564e104414a3851543039a4897)

Příkaz `\fontfamily{qcr}\selectfont` nastaví *TeX Gyre Cursor* řez písma, jehož kód písma je `qcr`, pro text uvnitř složených závorek. K dispozici je mnohem více řezů písma LaTeXu, viz [referenční příručku](#reference-guide).

Oblíbené řezy písma LaTeXu pocházejí ze čtyř rodin:

* *Computer Modern* (výchozí ve standardních třídách LaTeXu): CM Roman, CM Sans Serif, CM Typewriter
* *Latin Modern*: LM Roman, LM Sans Serif, LM Typewriter, LM Dunhill
* *Post Script Fonts*: Times, Utopia/Fourier, Palatino, Bookman, Helvetica, Courier
* *TeX Gyre*

## Referenční příručka

**řezů Roman, Sans Serif a Typewriter**

| Písmo                        | "název balíčku písma" | "kód písma" | Příklad                                                               |
| ---------------------------- | --------------------- | ----------- | --------------------------------------------------------------------- |
| Computer Modern Roman        |                       | `cmr`       | ![Typeface-cmr.png](/files/42a18b69704c4bbf3840c899007afebb4dbe3015)  |
| Latin Modern Roman           | `lmodern`             | `lmr`       | ![Typeface-lmr.png](/files/7edc381d65874ebb528f7ce76e299badeec65cd1)  |
| Latin Modern Dunhill         | `lmodern`             | `lmdh`      | ![Typeface-lmdh.png](/files/24233b9bbe39efe2f3374ce2831541bf5799e99f) |
| TeX Gyre Termes              | `tgtermes`            | `qtm`       | ![Typeface-qtm.png](/files/bf2ef19e279bd4aeaa39850878c447e8b1226d7c)  |
| TeX Gyre Pagella             | `tgpagella`           | `qpl`       | ![Typeface-qpl.png](/files/19c8fa72b68c8b2d6a224d2537fc27a6c19fce46)  |
| TeX Gyre Bonum               | `tgbonum`             | `qbk`       | ![Typeface-qbk.png](/files/aaf1d351694b7be447a77d477f77202e90b22ee2)  |
| TeX Gyre Schola              | `tgschola`            | `qcs`       | ![Typeface-qsc.png](/files/63c6aeb4c98e3d2a0ffaa72483c2905c743e9b9e)  |
| Times                        | `mathptmx`            | `ptm`       | ![Typeface-ptm.png](/files/8f556bbd9a27ac35e3de730961a690b00e905f68)  |
| Utopia / Fourier             | `utopia` / `fourier`  | `put`       | ![Typeface-put.png](/files/a030cc5fcbfe8e160de8bb6be3ee1cba0ffd2972)  |
| Palatino                     | `palatino`            | `ppl`       | ![Typeface-ppl.png](/files/113514f7c5a570b8d748896af281070c2a0f0396)  |
| Bookman                      | `bookman`             | `pbk`       | ![Typeface-pbk.png](/files/719bc40e53521489d20dd0e172f8cbea27731daf)  |
| Charter                      | `charter`             | `bch`       | ![Typeface-bch.png](/files/6c1650241cee4e1a05d4998853e23bcf12e73bf3)  |
| Computer Modern Sans Serif   |                       | `cmss`      | ![Typeface-cmss.png](/files/266d6496180b1d6f739a3c08d46ce9374a4bfbf7) |
| Latin Modern Sans Serif      | `lmodern`             | `lmss`      | ![Typeface-lmss.png](/files/4d6958f5b6350b98c94083e75e39381bce548c72) |
| TeX Gyre Adventor            | `tgadventor`          | `qag`       | ![Typeface-qag.png](/files/c4ce89d571735bca0f4803059c968d3f91171aca)  |
| TeX Gyre Heros               | `tgheros`             | `qhv`       | ![Typeface-qhv.png](/files/32e3ea6a401d72d7a4ddcc620de13fe9e72c1214)  |
| Helvetica                    | `helvet`              | `phv`       | ![Typeface-phv.png](/files/e81319e4e8c302c8b86a7d085f21f5b023b9a0ec)  |
| Computer Modern Typewriter   |                       | `cmtt`      | ![Typeface-cmtt.png](/files/d818a45ebe419b547836dfb83327576838d898f4) |
| Latin Modern Sans Typewriter | `lmodern`             | `lmtt`      | ![Typeface-lmtt.png](/files/25184c7c901744ba2239708eb4f4be6fb1242e6b) |
| TeX Gyre Cursor              | `tgcursor`            | `qcr`       | ![Typeface-qcr.png](/files/3ce573dc185f559bc5bc10710cecafeaabce2fe3)  |
| Courier                      | `courier`             | `pcr`       | ![Typeface-pcr.png](/files/97dde91646e8d02135fd81e416a04f265da14d42)  |

Viz také [Katalog písem LaTeX](https://tug.org/FontCatalogue/), i když upozorňujeme, že ne všechna písma uvedená v katalogu jsou distribuována s licencí, která umožňuje jejich šíření jako součásti TeX Live, a proto ne všechna tato písma jsou na Overleafu dostupná.

## Další čtení

Více informací viz:

* [Katalog písem LaTeX](https://tug.org/FontCatalogue/).
* [Tučné písmo, kurzíva a podtržení](/latex/cs/zaklady-latexu/03-bold-italics-and-underlining.md)
* [Velikosti, rodiny a styly písma](/latex/cs/pisma/01-font-sizes-families-and-styles.md)
* [Podpora moderních fontů s XeLaTeXem](/latex/cs/pisma/03-xelatex.md)
* [Formátování odstavců](/latex/cs/formatovani/04-articles-how-to-change-paragraph-spacing-in-latex.md)
* [Zalomení řádků a prázdná místa](/latex/cs/formatovani/05-line-breaks-and-blank-spaces.md)
* [Více sloupců](/latex/cs/formatovani/09-multiple-columns.md)
* [Jednostranné a oboustranné dokumenty](/latex/cs/formatovani/08-single-sided-and-double-sided-documents.md)
* [Správa ve velkém projektu](/latex/cs/struktura-dokumentu/07-management-in-a-large-project.md)
* [Vícesouborové projekty LaTeXu](/latex/cs/struktura-dokumentu/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/cs/pisma/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.
