15

I'd like to use the gentium font in a LaTeX document, and the instructions I found at this site make it look rather difficult.

Is there a simple package that is now available that would allow me to use the gentium font more easily?

Dima
  • 12,427
  • 8
  • 40
  • 53
bryn
  • 10,264
  • 14
  • 46
  • 43

5 Answers5

13

Posting the XeLaTeX comment as an answer, per suggestion. You just \setromanfont{Gentium}.

Note that the font Gentium doesn't yet have a bold variant, so if you need to use bold frequently, it's recommended that you use a different font. (If your interest in Gentium is because of its wide character repertoire, you may want to use a font like Charis SIL. If your interest was in the appearance, then there's a "Gentium Basic" that doesn't include Greek or Cyrillic characters, but has bold variants.) But in practice I found I could use Gentium with Gentium Basic Bold as the bold font, and it looks natural to my eyes (you still won't have bold Greek, of course):

\documentclass{article}
\usepackage{fontspec}
\setromanfont[BoldFont={Gentium Basic Bold},ItalicFont={Gentium Italic}]{Gentium}

\begin{document}
Look:\\
Hèllö wőrld: γεντιυμ \textit{Italic} \textbf{Bold}\\
\textbf{Hèllö wőrld}: γεντιυμ \textit{Italic} Bold
\end{document}
David Carlisle
  • 757,742
ShreevatsaR
  • 45,428
  • 10
  • 117
  • 149
  • Should this now be \setmainfont? – cfr Jun 07 '15 at 20:42
  • 1
    @cfr It's been a while since I used it, but the fontspec doc (fontspec.pdf) says that \setromanfont is "the old name for \setmainfont, retained for backwards compatibility" — so yes \setmainfont is the new name, but \setromanfont is also a (deprecated) synonym and should work I think. – ShreevatsaR Jun 07 '15 at 22:43
  • Thanks. I should have just said 'Is this the same as...?' which was what I was really wondering. – cfr Jun 07 '15 at 22:47
  • For Lualatex, I had to had the arguments Renderer=Basic,Ligatures=TeX. Otherwise ligatures like -- did not work (using Texlive 2015). – bluenote10 Aug 24 '15 at 14:37
9

Now there is a gentium-tug package that enables you to

\usepackage{gentium}

No additional steps required.

marczellm
  • 11,809
8

If you want to use pdfLaTeX, you can use the autoinst tool.

cd ${YOUR_TEX_DOCUMENT_DIR}
autoinst ${PATH_TO_GENTIUM}/Gen*.ttf

This will convert the ttf files and create a Gentium.sty file in the current directory. Now you can simply

\usepackage{Gentium}

to switch your LaTeX font to Gentium. Alternatively, try GentiumBasic for bold.

beza1e1
  • 323
3

The gentium package found on CTAN may help get you started with using Gentium in pdfLaTeX.

godbyk
  • 7,737
  • 2
  • 32
  • 47
  • Sadly this doesn't seem to work for me. After installing it I included \usepackage{gentium} and received "LaTeX Error: File `gentium.sty' not found.".

    Not sure if this is relevant: "Other encodings, and LaTeX support remain to be added." (from the linked page on CTAN).

    – bryn Aug 04 '10 at 10:23
  • Working for me. Maybe that @bryn needs to install the package. – Pankaj Jangid Mar 09 '18 at 08:56
1

While the XeLaTeX way is probably easier, if you wanted to stick with pdflatex, you could try the fontinst tool for creating the necessary package.

frabjous
  • 41,473
  • 3
    Just tried this using the autoinst script from the fontools package on CTAN and now have Gentium working with pdflatex. – frabjous Aug 05 '10 at 01:39