> 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/uk/shrifti/02-font-typefaces.md).

# Шрифтові гарнітури

## Вступ

За замовчуванням LaTeX верстає документи, використовуючи $$\text{Computer Modern}$$ сімейство шрифтів, але ви можете використовувати пакети LaTeX, щоб застосовувати інші шрифти відповідно до ваших потреб або вподобань.

## Зміна шрифтів документа за замовчуванням

Наприклад, додавши `\usepackage{tgbonum}` до преамбули документа, LaTeX використовуватиме сімейство шрифтів TEX Gyre Bonum для верстки вашого документа:

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

\begin{document}
Цей документ є зразком для тестування шрифтів
сімейств і накреслень шрифтів.

Цей текст використовує інше накреслення шрифту
\end{document}
```

[Відкрити цей приклад в 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)

Наступне зображення показує результат, створений наведеним вище прикладом:

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

## Зміна накреслення шрифту за замовчуванням

Шрифт також можна змінити для конкретного елемента в документі.

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

\begin{document}
Цей документ є зразком для
тестування сімейств і накреслень шрифтів.

{\fontfamily{qcr}\selectfont
Цей текст використовує інше накреслення шрифту
}
\end{document}
```

[Відкрити цей приклад в 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)

Наступне зображення показує результат, створений наведеним вище прикладом:

![FontTypefacesEx2.png](/files/f7d9b90bd83856273d004416da1aa90cdcf7434f)

Команда `\fontfamily{qcr}\selectfont` встановить *TeX gyre cursor* накреслення шрифту, код якого `qcr`, для тексту всередині фігурних дужок. Доступно ще багато накреслень шрифтів LaTeX; дивіться [довідковий посібник](#reference-guide).

Популярні накреслення шрифтів LaTeX походять із чотирьох сімейств:

* *Computer Modern* (за замовчуванням у стандартних класах LaTeX): 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*

## Довідковий посібник

**Накреслення Roman, Sans Serif і Typewriter**

| Шрифт                        | "назва пакета шрифтів" | "код шрифту" | Приклад                                                               |
| ---------------------------- | ---------------------- | ------------ | --------------------------------------------------------------------- |
| Computer Modern Roman        |                        | `cmr`        | ![Typeface-cmr.png](/files/6ccef4e9df0db8b24f3e268e8ed10dce2dfc03a5)  |
| Latin Modern Roman           | `lmodern`              | `lmr`        | ![Typeface-lmr.png](/files/f86dad1b6b5c64cc67ad8d48888d1e648c9235a5)  |
| Latin Modern Dunhill         | `lmodern`              | `lmdh`       | ![Typeface-lmdh.png](/files/eb939bdd7a50621566e7530226a85568de5fe4fd) |
| TeX Gyre Termes              | `tgtermes`             | `qtm`        | ![Typeface-qtm.png](/files/f8a82a77c07fd85e78d7d41621895627e5526101)  |
| TeX Gyre Pagella             | `tgpagella`            | `qpl`        | ![Typeface-qpl.png](/files/cf19ffcaf4be05103f629883c666078fbab02280)  |
| TeX Gyre Bonum               | `tgbonum`              | `qbk`        | ![Typeface-qbk.png](/files/fb6c2ca2e41bb7869117549748672525c1c31db1)  |
| TeX Gyre Schola              | `tgschola`             | `qcs`        | ![Typeface-qsc.png](/files/60a22dba71a08e853de4457f9dd6bb04da9dce2a)  |
| Times                        | `mathptmx`             | `ptm`        | ![Typeface-ptm.png](/files/45ec57729164ded70346fe7bca3472e99711983d)  |
| Utopia / Fourier             | `utopia` / `fourier`   | `put`        | ![Typeface-put.png](/files/cb295c444aa07db704a84d4ac1f95079bbb6aa6b)  |
| Palatino                     | `palatino`             | `ppl`        | ![Typeface-ppl.png](/files/a5878c034e1cabc60703c209a5f1c1bea31c835c)  |
| Bookman                      | `bookman`              | `pbk`        | ![Typeface-pbk.png](/files/832046c29416595ab0b541750c196c8642300f50)  |
| Charter                      | `charter`              | `bch`        | ![Typeface-bch.png](/files/c385308fb699fa0b1aed38ebc229237ce3ee5b86)  |
| Computer Modern Sans Serif   |                        | `cmss`       | ![Typeface-cmss.png](/files/7371cb841bff66c5282e75e4f68296d62c1beea6) |
| Latin Modern Sans Serif      | `lmodern`              | `lmss`       | ![Typeface-lmss.png](/files/709dd5363f60cfcf0cdead3d63e3fa3c4eb6b2c1) |
| TeX Gyre Adventor            | `tgadventor`           | `qag`        | ![Typeface-qag.png](/files/66f27d6ed82497536a28907c68303e5a4864459d)  |
| TeX Gyre Heros               | `tgheros`              | `qhv`        | ![Typeface-qhv.png](/files/247ae8f96efb1b84fb0893e5dbce36b6129fa0e0)  |
| Helvetica                    | `helvet`               | `phv`        | ![Typeface-phv.png](/files/a85b753dff0e125dfecde569bf3d17be7e50da42)  |
| Computer Modern Typewriter   |                        | `cmtt`       | ![Typeface-cmtt.png](/files/98347258c7c990ca07da3f63d7af3e7d56412238) |
| Latin Modern Sans Typewriter | `lmodern`              | `lmtt`       | ![Typeface-lmtt.png](/files/b0a39e5bbaefa790599401c7e9fbb8c5435cbad9) |
| TeX Gyre Cursor              | `tgcursor`             | `qcr`        | ![Typeface-qcr.png](/files/124e4633b7180f5b4675d0db38631dd6643a17b3)  |
| Courier                      | `courier`              | `pcr`        | ![Typeface-pcr.png](/files/3cded592152258369f41cec2184da505a3818239)  |

Дивіться також [Каталог шрифтів LaTeX](https://tug.org/FontCatalogue/), зауважте, однак, що не всі шрифти, перелічені в каталозі, поширюються за ліцензією, яка дозволяє включати їх до складу TeX Live, і тому не всі ці шрифти доступні в Overleaf.

## Додаткове читання

Докладніше див.:

* [Каталог шрифтів LaTeX](https://tug.org/FontCatalogue/).
* [Жирний, курсив і підкреслення](/latex/uk/osnovi-latex/03-bold-italics-and-underlining.md)
* [Розміри, гарнітури та стилі шрифтів](/latex/uk/shrifti/01-font-sizes-families-and-styles.md)
* [Підтримка сучасних шрифтів у XeLaTeX](/latex/uk/shrifti/03-xelatex.md)
* [Форматування абзацу](/latex/uk/formatuvannya/04-articles-how-to-change-paragraph-spacing-in-latex.md)
* [Перенесення рядків і порожні пробіли](/latex/uk/formatuvannya/05-line-breaks-and-blank-spaces.md)
* [Кілька колонок](/latex/uk/formatuvannya/09-multiple-columns.md)
* [Односторонні та двосторонні документи](/latex/uk/formatuvannya/08-single-sided-and-double-sided-documents.md)
* [Керування у великому проєкті](/latex/uk/struktura-dokumenta/07-management-in-a-large-project.md)
* [Багатофайлові проєкти LaTeX](/latex/uk/struktura-dokumenta/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/uk/shrifti/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.
