Senin, 07 Juli 2025

Customizing Latex Font Style 4



1. Open Latex editor.
2. Type this following Latex code in Latex editor.
\documentclass[12pt]{article}

\usepackage{anyfontsize}

\begin{document}
\fontsize{17}{18}\selectfont
{% font family tgbonum
\fontfamily{qbk}\selectfont
My Friend Jack
}\\

\fontsize{17}{18}\selectfont

{% font family  Latin Modern Typewriter
\fontfamily{lmtt}\selectfont
This is my friend Jack.
He is a great friend.
Jack is tall with short brown hair.
He has a small nose.
Jack is my classmate.
He is very clever.
He likes to read books.
He also likes to help teachers.
He always does his homework.
}
\end{document}
3. Save file as myFriendJack.tex
4. Then build or typeset the Latex code.
5. See the output above the post.

Exercise

Change the font size My Friend Jack to 54 and 55.




Bibliography

LKS digital penerbit Media Wiguna
LKS digital penerbit Arya Duta
LKS digital penerbit Media Pressindo
Buku paket digital penerbit Erlangga
Buku paket digital penerbit Yudhistira
Buku paket digital penerbit Tiga Serangkai

Tidak ada komentar:

Posting Komentar