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.
fontspecor the commands that follow withebgaramondpackage. You don't need thefontencpackage either. Try this, Type in your terminaltlmgr show ebgaramondand see if it's installed. If not, it's always a good idea to try to copy the whole folder and its contents (assuming it is unzipped of course) into saytexmf-dist/tex/latex, although the local directory is recommended most of the times, there are times when you have no option but to use thetexmfdirectory like you just did. – doed Oct 14 '13 at 03:54./install-tl --gui wizard(if a message saysCannot load Tkthensudo apt-get install perl-tk. Remember either way (whether in the wizard mode or text mode) to edit the folder where you want it. Unless the/usrfolder has enough space, I suggest you to use another directory. Once the installation finishes, remember to copy the last lines that will say something likeMost importantly, add /PATH/TO/DIRECTORYto your PATH for current and future sessions. Copy that Then open.bashrcand addPATH=/PATH/TO/DIRECTORY:$PATH, save and restart. – doed Oct 14 '13 at 08:43