Mengganti default font

Cara mengganti default font dalam dokumen LaTeX.

\documentclass[12pt]{article}
\renewcommand*\rmdefault{bch} % Charter font
\usepackage{blindtext}
\begin{document}
\blindtext
\end{document}

bch adalah nama font. Sementara rmdefault adalah default roman font (serif). Ada juga \sfdefault (sans font aka sans-serif) dan \ttdefault (typewriter).

Pilihan jenis font lainnya:

  1. Serif font:
    • cmr → Computer Modern Roman (default)
    • lmr → Latin Modern Roman
    • pbk → Bookman
    • bch → Charter
    • pnc → New Century Schoolbook
    • ppl → Palatino
    • ptm → Times
  2. Sans-serif font:
    • cmss → Computer Modern Sans Serif (default)
    • lmss → Latin Modern Sans Serif
    • pag → Avant Garde
    • phv → Helvetica
  3. Typewriter font:
    • cmtt → Computer Modern Typewriter (default)
    • lmtt → Latin Modern
    • pcr → Courier

Selamat mencoba, semoga bermanfaat.

Default font (atas) dan Charter font
Default font (atas) dan Charter font
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s