Text Formattingchange font type

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
harrymatth
Posts: 8
Joined: Sun Dec 19, 2010 11:54 pm

change font type

Post by harrymatth »

Hi,
I am in the middle of creating a thesis according to my school default template. How can I change the font to Courier New for just one word?
Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

change font type

Post by Stefan Kottwitz »

Hi,
harrymatth wrote:How can I change the font to Courier New for just one word?
do you really mean Courier New? For truetype fonts you could use XeLaTeX.

But if you mean a typewriter font (monospaced) for this one word, you could simply write:

Code: Select all

\texttt{word}
To change the default typewriter font to Courier, load the courier package:

Code: Select all

\usepackage{courier}
Stefan
LaTeX.org admin
Post Reply