3

I can compile my LaTeX documents in LuaLaTeX with these lines in my preamble:

\usepackage{fontspec}
\setmainfont{Georgia}

However, PDFLaTeX does not support fontspec, so this will not compile.

Is there any way to use the Georgia font (or a lookalike) that’s compatible with PDFLaTeX?

  • 2
    Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See minimal working example (MWE). – Henri Menke Nov 18 '17 at 23:34
  • You could try any of the fonts listed on tug.dk. The same designer also made Charter (BT or X). Or you could go for another wide serif font like any of the Garamonds listed there, of which I recommend garamondx (Install that here.) If you need help choosing, will the document be read on a screen or paper? – svenper Nov 19 '17 at 3:14
  • See also this newer question. This is a good question, but it narrowly asks only about PDFLaTeX (AKA the latex executable). Unless you’ve been using LaTeX for decades and know exactly how you like things, or unless someone ordered you to use PDFTeX, the modern toolchain is what you want for new documents. Especially with a TrueType font. – Davislor Dec 12 '18 at 20:23
5

If you need to support Georgia in math mode, or produce PostScript output (which the TrueType fonts winfonts supports do not have the right type of outlines for), the package you need is mathgifg.

This package very much does not come with batteries included, for legal reasons. You must even convert the TrueType files to Type 1 yourself.

An alternative is to load Georgia as your text font and some concordant math font (you might try newpxmath or stix2), then load mathastext.

Whether you use winfonts or mathgifg, I recommend you \usepackage{microtype} with font expansion on. Some people don’t like it when printed out at high resolution, but it looks great on screen and cuts down on the number of hyphenated lines you need drastically. Add the package option [protrusion=false] if you don’t like the hanging punctuation on the right margin.

PS

This answer has been significantly edited down, following a discussion on the Meta site. I posted my original, much longer answer as a separate question.

  • 3
    The OP's question is just one year old. But note that the OP specifically asks for a solution in latex, and doesn't want to use xelatex or lualatex, so the line "There is a rudimentary package for this, mathgifg", would be sufficient to address the OP's question. – Sverre Dec 10 '18 at 13:14
  • 2
    Well, the OP's question is "Is there any way to use Georgia font [...] in only LaTex [Not LuaLaTeX or XeLaTeX]?", so I think it's reasonably clear that (s)he is not asking about how to do this in lualatex. – Sverre Dec 11 '18 at 11:29
  • 2
    This issue should now be raised on the Meta site. I don't think it's appropriate within the StackExchange family to change an OP's question to fit the answer you would like to give, but that's for the community to decide. I can open a question about it on the Meta site. – Sverre Dec 11 '18 at 14:50
  • 3
    Great and very detailed answer! But maybe it would be better to ask a new question and self-answer it with this answer instead of altering the question? Maybe we can change the title of this treat into "How to use Georgia with pdflatex" then your new question could have the more general title. – user36296 Dec 11 '18 at 15:33
  • 2
    Please see the question about this on the meta site. – Sverre Dec 11 '18 at 17:52
4

The winfonts package has the necessary files to use the fonts which come with Windows XP , but you'll have to install it by yourself in your texmf-local tree. There's no math support, as far as I know.

To use Georgia, use a simple declaration:

\usepackage[T1]{fontenc}
\fontfamily{georgia}\selectfont
  • I am using Windows 10. Do I have to install any font package in windows before I use the code you provided? – Moinuddin Shuvo Nov 19 '17 at 0:40
  • 1
    Yes: winfonts is not part of any distribution (for licensing reasons, I guess), albeit you find it on CTAN. There's a detailed documentation with the package. – Bernard Nov 19 '17 at 0:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.