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

# Jenis huruf

## Pendahuluan

Secara bawaan, LaTeX menata dokumen menggunakan $$\text{Computer Modern}$$ keluarga jenis huruf, tetapi Anda dapat menggunakan paket LaTeX untuk memakai font yang berbeda sesuai kebutuhan atau preferensi Anda.

## Mengubah font dokumen bawaan

Misalnya, dengan menambahkan `\usepackage{tgbonum}` ke preambel dokumen, LaTeX akan menggunakan keluarga font TEX Gyre Bonum untuk menata dokumen Anda:

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

\begin{document}
Dokumen ini adalah dokumen contoh untuk menguji font
keluarga dan jenis huruf.

Teks ini menggunakan jenis huruf yang berbeda
\end{document}
```

[Buka contoh ini di 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)

Gambar berikut menunjukkan keluaran yang dihasilkan oleh contoh di atas:

![FontTypefacesEx1OLV2.png](/files/578b1e9995224a09f583fceea92ca07a69c51c14)

## Mengubah jenis huruf bawaan

Font juga dapat diubah untuk elemen tertentu dalam dokumen.

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

\begin{document}
Dokumen ini adalah dokumen contoh untuk
menguji keluarga font dan jenis huruf.

{\fontfamily{qcr}\selectfont
Teks ini menggunakan jenis huruf yang berbeda
}
\end{document}
```

[Buka contoh ini di 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)

Gambar berikut menunjukkan keluaran yang dihasilkan oleh contoh di atas:

![FontTypefacesEx2.png](/files/51243aa56680168230ba493bb0cd426fcb0f44ad)

Perintah `\fontfamily{qcr}\selectfont` akan menetapkan *TeX gyre cursor* jenis huruf, yang kode font-nya adalah `qcr`, untuk teks di dalam kurung kurawal. Masih banyak jenis huruf LaTeX lainnya yang tersedia, lihat [panduan referensi](#reference-guide).

Jenis huruf LaTeX yang populer berasal dari empat keluarga:

* *Computer Modern* (bawaan dalam kelas LaTeX standar): CM Roman, CM Sans Serif, CM Typewriter
* *Latin Modern*: LM Roman, LM Sans Serif, LM Typewriter, LM Dunhill
* *Font PostScript*: Times, Utopia/Fourier, Palatino, Bookman, Helvetica, Courier
* *TeX Gyre*

## Panduan referensi

**jenis huruf Roman, Sans Serif, dan Typewriter**

| Font                         | "nama paket font"    | "kode font" | Contoh                                                                |
| ---------------------------- | -------------------- | ----------- | --------------------------------------------------------------------- |
| Computer Modern Roman        |                      | `cmr`       | ![Typeface-cmr.png](/files/361a4ce99d4c70f42a05c6bbc50c6f4817b2236c)  |
| Latin Modern Roman           | `lmodern`            | `lmr`       | ![Typeface-lmr.png](/files/a2783315a81efe9552435247cc9ac095b9843f31)  |
| Latin Modern Dunhill         | `lmodern`            | `lmdh`      | ![Typeface-lmdh.png](/files/aff2fa2a6ace5f54049498ba3f54d48b09113a76) |
| TeX Gyre Termes              | `tgtermes`           | `qtm`       | ![Typeface-qtm.png](/files/d159af9420be70d1821e7da4dc7c03281fad0d43)  |
| TeX Gyre Pagella             | `tgpagella`          | `qpl`       | ![Typeface-qpl.png](/files/427f54f106cfe1d3b595e772c04d32aed226afd7)  |
| TeX Gyre Bonum               | `tgbonum`            | `qbk`       | ![Typeface-qbk.png](/files/da22294e8a9c1dacf2bce409134bd38358441b61)  |
| TeX Gyre Schola              | `tgschola`           | `qcs`       | ![Typeface-qsc.png](/files/bc303da556665f1c62d96054518fdf7c25e12f40)  |
| Times                        | `mathptmx`           | `ptm`       | ![Typeface-ptm.png](/files/dfdc02a48df5b3729dd4cf3352fe2a6b903139ac)  |
| Utopia / Fourier             | `utopia` / `fourier` | `put`       | ![Typeface-put.png](/files/914d43de566a74334c5b9c3b4bd1e7e0cd2ac8cf)  |
| Palatino                     | `palatino`           | `ppl`       | ![Typeface-ppl.png](/files/6f1960f28284c8bdd7fac02e02f7e620cb162635)  |
| Bookman                      | `bookman`            | `pbk`       | ![Typeface-pbk.png](/files/a17def9ebbafb99b38bfe3de9f6ab79d264b1db1)  |
| Charter                      | `charter`            | `bch`       | ![Typeface-bch.png](/files/36a58654cf2cca84fc367cf792fdfd6fa52e9f2c)  |
| Computer Modern Sans Serif   |                      | `cmss`      | ![Typeface-cmss.png](/files/9c28cbfad6d002f4f194b159daa8cc6101afde36) |
| Latin Modern Sans Serif      | `lmodern`            | `lmss`      | ![Typeface-lmss.png](/files/7b9fdc96454b329044efe96fce49f9dd2e4ed7d2) |
| TeX Gyre Adventor            | `tgadventor`         | `qag`       | ![Typeface-qag.png](/files/164c55e69c7ac5a5f68337bc109ff2889f6060a8)  |
| TeX Gyre Heros               | `tgheros`            | `qhv`       | ![Typeface-qhv.png](/files/6deb5a1df2fbdebf8cecad8402d1f9bbc616929b)  |
| Helvetica                    | `helvet`             | `phv`       | ![Typeface-phv.png](/files/585625981527b3958c17f9436b349d005d0ca2e5)  |
| Computer Modern Typewriter   |                      | `cmtt`      | ![Typeface-cmtt.png](/files/ab60ec1cc745bc3e82a6cdaf5187503b1cf1ba5f) |
| Latin Modern Sans Typewriter | `lmodern`            | `lmtt`      | ![Typeface-lmtt.png](/files/d733a24b6349ac859e68b906dcf80152fcd3b92e) |
| TeX Gyre Cursor              | `tgcursor`           | `qcr`       | ![Typeface-qcr.png](/files/34a09846269bf95db7c00384135007cc4d5a3bb2)  |
| Courier                      | `courier`            | `pcr`       | ![Typeface-pcr.png](/files/530fa690295f2ad884ba4954eb93899b1fac2530)  |

Lihat juga [Katalog Font LaTeX](https://tug.org/FontCatalogue/), meskipun perlu dicatat bahwa tidak semua font yang tercantum dalam katalog didistribusikan dengan lisensi yang mengizinkannya untuk didistribusikan sebagai bagian dari TeX Live, dan karena itu tidak semua font tersebut tersedia di Overleaf.

## Bacaan lanjutan

Untuk informasi lebih lanjut lihat:

* [Katalog Font LaTeX](https://tug.org/FontCatalogue/).
* [Huruf tebal, miring, dan garis bawah](/latex/id/dasar-dasar-latex/03-bold-italics-and-underlining.md)
* [Ukuran font, keluarga font, dan gaya](/latex/id/font/01-font-sizes-families-and-styles.md)
* [Mendukung font modern dengan XeLaTeX](/latex/id/font/03-xelatex.md)
* [Pemformatan paragraf](/latex/id/pemformatan/04-articles-how-to-change-paragraph-spacing-in-latex.md)
* [Pemisah baris dan spasi kosong](/latex/id/pemformatan/05-line-breaks-and-blank-spaces.md)
* [Beberapa kolom](/latex/id/pemformatan/09-multiple-columns.md)
* [Dokumen satu sisi dan dua sisi](/latex/id/pemformatan/08-single-sided-and-double-sided-documents.md)
* [Pengelolaan dalam proyek besar](/latex/id/struktur-dokumen/07-management-in-a-large-project.md)
* [Proyek LaTeX multi-berkas](/latex/id/struktur-dokumen/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/id/font/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.
