[Tex/LaTex] Installing EBGaramond for pdfLaTeX

ebgaramondfontspdftextexlive

I made a foolish choice to play around with fonts a few days ago, and haven't escaped since. After getting very kind and useful help here yesterday, I decided to follow the advice given, and change to use EBGaramond from the LaTeX Font Catalogue. This, however, has proved problematic.

I tried to follow the instructions given here as best I could – below is the sequence of events, using the following code as a MWE:

\documentclass[a4paper,10pt]{article}
\usepackage[T1]{fontenc}
\usepackage{ebgaramond}

\begin{document}
Testing\ldots{}
\end{document}

First of all, I used kpsewhich --var-value TEXMFLOCAL to determine obtain the value of /usr/local/share/texmf, to which I moved the unzipped ebgaramond folder (I had to use sudo mv to do so). I then applied sudo texhash, which gave the output:

texhash: Updating /usr/local/share/texmf/ls-R... 
texhash: Updating /var/lib/texmf/ls-R-TEXLIVEMAIN... 
texhash: Updating /var/lib/texmf/ls-R-TEXLIVEDIST... 
texhash: Updating /var/lib/texmf/ls-R-TEXMFMAIN... 
texhash: Updating /var/lib/texmf/ls-R... 
texhash: Done.

and then sudo updmap-sys --enable Map=EBGaramond.map, which produced

updmap: resetting $HOME value (was /home/philip) to root's actual home (/root).
updmap is using the following updmap.cfg files (in precedence order):
  /etc/texmf/web2c/updmap.cfg
  /usr/share/texmf/web2c/updmap.cfg
  /usr/share/texlive/texmf/web2c/updmap.cfg
  /usr/share/texlive/texmf-dist/web2c/updmap.cfg
Creating new config file /etc/texmf/web2c/updmap.cfg
dvips output dir: "/var/lib/texmf/fonts/map/dvips/updmap"
pdftex output dir: "/var/lib/texmf/fonts/map/pdftex/updmap"
dvipdfmx output dir: "/var/lib/texmf/fonts/map/dvipdfmx/updmap"
pxdvi output dir: "/var/lib/texmf/fonts/map/pxdvi/updmap"

ERROR:  The following map file(s) couldn't be found:
    EBGaramond.map (in /etc/texmf/web2c/updmap.cfg)

    Did you run mktexlsr?

    You can disable non-existent map entries using the option
  --syncwithtrees.

On the basis of that output, I ran sudo mktexlsr, followed by sudo updmap-sys --enable Map=EBGaramond.map.

This, however, produced an error when I ran pdfLaTeX, saying ebgaramond.sty could not be found. I thus then moved ebgaramond to ~/texmf/tex/latex/, and reran sudo texhash. Now, however, the compilation fails with the error

! I can't find file `EBGaramond12-Regular-osf-t1'.

I did try putting in \usepackage{fontspec} and \setmainfont{ebgaramond}, but that threw up another series of errors, and I'd really rather not go down the XeTeX route.

I'll admit, I have been lurching through the problems, but can anyone please give me some tips on this? The phrasing in the README suggests it's a simple process, but I'm still having troubles.

Thanks in advance for any advice.

Best Answer

Solved by uninstalling the Ubuntu package, and installing the full package directly. Slight problem with installation solved according to Are itemize and EBGaramond compatible?