At the moment I try to get the EB Garamond font to work on my windows machine (under MikTeX 2.9), but I failed. By searching TeX.SX I found this two questions:
The first solution is too generic because it only points out the existence of the ebgaramond
package on CTAN, while the second one consists in reinstalling the package by hand – which I tried without success.
As the README of ebgaramond
demands I enabled the font-map of EB Garamond (by adding
Map EBGaramond.map
to the updmap.cfg
, and then Refreshing FNDB and bashing
initexmf -u
updmap
to the Windows command line.) Is this alredy wrong? Maybe I am missing something completely basal in my test file:
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ebgaramond}
%\usepackage[DIV10]{typearea}
%\usepackage{microtype}
\usepackage{lipsum}
\title{A \LaTeX\ Article}
\author{Ruben Giannotti}
\date{\today}
\begin{document}
\maketitle
{{\large 1}\hspace{.5em}\scshape \uppercase{Introduction}\par\vspace{1em}}%faking a section title
\lipsum
\end{document}
When compiling with LaTeX a really bad looking .dvi
emerges. (So I guess the maping should be alright.) But, when doing so with pdfLaTeX not even an output file is generated. The log file says:
!pdfTeX error: pdflatex (file EBGaramond12-Regular-osf-t1–base): Font EBGaramo
nd12-Regular-osf-t1–base at 548 not found
==> Fatal error occurred, no output PDF file produced!
By enabling microtype
it changes a little:
! pdfTeX error (font expansion): auto expansion is only possible with scalable
fonts.\endgroup \set@typeset@protect
l.17 \end
{document}
…
! ==> Fatal error occurred, no output PDF file produced!
Edit
In the meantime I tried several things with the font mapping configuration. What I did in the first place was to modify updmap.cfg
in the root directory of MikTeX, which is not ideal. So, I restored it to its original state. Afterwords I started the configuration with initexmf --edit-config-file updmap
(which opens the corresponding config file in the roaming directory of MikTeX – at least on my machine). I finally made EB Garamond to work but – and this is a non acceptable drawback – I had to cancel out another mapping that I added before (MinionPro).
In short: With my actual knowledge and setup I can use only one of them, and what I deduce from what I did til now is that I simply use the wrong syntax to map the fonts (note the plural form) correctly. This is how my updmap.cfg
looks like:
Map EBGaramond.map Map MinionPro.map Map MyriadPro.map
By the way, I did this because the MikTeX manual says
"Insert the following line at the end of the file: Map xyz.map"
Do I have to respect some syntax rules? Is this even wrong? Or could this be a sign that my whole distro is broken (see @DG's comments on his/her answer)?
Best Answer
According to this post Are itemize and EBGaramond compatible? there is a bug in EBGaramond.
Using the code @egreg posted in his answer, you can fix your example like this:
The package
ebgaramond
is in the repository of miktex, so it is advisable to use the package manager, instead of installing it manually.Update
If this does not help, follow the steps outlined in the miktex manual:
initexmf --edit-config-file updmap
.Map EBGaramond.map
and add it at the end of the file, if absent. Make sure each entry is on its own line.initexmf --mkmaps
to rebuild the font map files.initexmf --update-fndb