This is a follow-up to Installing fonts for yhmath on MiKTeX 2.9 .
Compiling a document, TeXnicCenter with MiKTeX could not make use of the yrcmex10
font in the yhmath
package.
I downloaded yhmath
, ran latex yhmath.ins
, and created yhmath.map
by copying another map
file; then I put my files on a root C:\localtexmf
, added the root to MiKTeX, edited updmap.cfg
, updated maps, refreshed Database; but the tests keep failing.
My root is structured as follows:
\localtexmf\tex\latex\yhmath
has yhmath.sty
and OMXyhex.fd
\localtexmf\fonts
has five subdirectories:
\map\dvips\yhmath
withyhmath.map
\source\public\yhmath
with.mf
files\tfm\public\yhmath
withyhcmex10.tfm
andyrcmex10.tfm
\type1\public\yhmath
withyhcmex.pfa
(its name is NOTyhcmex10.pfa
)\vf\public\yhmath
withyhcmex10.vf
yhmath.map
has the only line
yrcmex10 Yhcmex <yhcmex.pfa
Am I wrong somewhere?
Best Answer
Update: Obsolete since Dec 5 2012.
Problem solved.
As
yhmath.ins
didn't generate any.map
file, I previously createdyhmath.map
with Wordpad, which proved to be a mistake: I only obtained a.txt
file namedyhmath.map
.So I pasted a file
.map
whatever into\localtexmf\fonts\map\dvips\yhmath
, changed it with Wordpad, saved it being careful not to change its format, and renamed asyhmath.map
. Then I raninitexmf --mkmaps
, andkpsewhich
could findyhmath.map
.Still MikTex couldn't find
yrcmex10.tfm
.I eventually discovered that running
initexmf --edit-config-file updmap
editedupdmap.cfg
located in\AppData\Roaming\MikTex\2.9\miktx\config\
directory, while I actually wanted to edit the homonym file in\Program Files\MikTex 2.9\miktex\config\
. So I copied the file in\AppData\[...]
and pasted to\Program Files\[...]
.Ran
initexmf --mkmaps
again. Rantestfont.tex
and found the fontyrcmex10.tfm
was avaliable to MikTex.There is still a minor issue. Creating a
.ps
or a.dvi
with Texniccenter works fine. A.pdf
will contain some wrong characters, due to the fact that the embodied fontyhcmex10.tfm
is not avaliable to extract.Here is a Minimal Working Example
Image added by Speravir