Text FormattingGaramond font in LaTeX?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
ffarr
Posts: 28
Joined: Sat Apr 23, 2011 6:00 pm

Garamond font in LaTeX?

Post by ffarr »

Hello, can I use "Garamond" font in LaTeX? If not, how can I use Do I need to install special packages?

I use this:

Code: Select all

\newcommand{\cambiaFont}[2]{{\fontencoding{T1}\fontfamily{#1}%
\selectfont#2}}
And in the text i just need to put:

Code: Select all

\cambiaFont{put}
Put is the font code. "cambiaFont" is just the name of the new comment, in Italian is "change font".

Thank you!

Recommended reading 2024:

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

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

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

Garamond font in LaTeX?

Post by Stefan Kottwitz »

Hi,

I would use mathdesign together with Garamond this way:

Code: Select all

\usepackage[T1]{fontenc}
\usepackage[urw-garamond]{mathdesign}
Stefan
LaTeX.org admin
ffarr
Posts: 28
Joined: Sat Apr 23, 2011 6:00 pm

Re: Garamond font in LaTeX?

Post by ffarr »

Hi Stefan, one question: will it change the font of the whole text?
If not: how can I change the font of the whole text with one command in the preamble?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Garamond font in LaTeX?

Post by Stefan Kottwitz »

This will affect the whole document. Specifically, all serif (roman) text will be changed, both in text and math, the latter by the mathdesign package.

Other font families, such as sans serif text and typewriter text will not be changed.

Stefan
LaTeX.org admin
ffarr
Posts: 28
Joined: Sat Apr 23, 2011 6:00 pm

Garamond font in LaTeX?

Post by ffarr »

Stefan_K wrote:This will affect the whole document. Specifically, all serif (roman) text will be changed, both in text and math, the latter by the mathdesign package.

Other font families, such as sans serif text and typewriter text will not be changed.

Stefan
Ok good, thank you. I believe I need to download the package, because it doesn't do the pdf anymore. Where do I get it?
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Garamond font in LaTeX?

Post by svend_tveskaeg »

ffarr wrote:I believe I need to download the package, because it doesn't do the pdf anymore. Where do I get it?
CTAN is your friend. ;)
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Garamond font in LaTeX?

Post by Stefan Kottwitz »

Hi,

I recommend to check first if the package can be installed by your package manager. This can be mpm (MiKTeX), tlmgr aka TeX Live Manager (TeX Live) or a OS package manager (such as with Linux).
Usually you can find the package manager in the start menu.

Stefan
LaTeX.org admin
Post Reply