Update: The following is obsolete. The missing file OMXyhex.fd
was added on MiKTeX update from Dec 5 2012.
Actually I must confess, that “yhmath” works with some issues (see MikTeX 2.9 can not find font yrcmex10 of yhmath package). I also noticed, that on CTAN there are two yhmath.zip
! The OP downloaded the other compared to me (link see below), and this is the one used in MiKTeX. So the problem seems to be a bug in yhmath
!
I let stand the following for reference reasons.
I would consider the missing font file OMXyhex.fd
and the missing whole bunch of MetaFont files as a bug. It should be filed in the MiKTeX bug tracker.
All other files are installed in a full MiKTeX installation. You can get them with the Package Manager. Compared with my TeX Live installation in MiKTeX the type1 file is called yhcmex.pfa
, in TeX Live it is yhcmex.pfb
, but these are only variants, cf. https://en.wikipedia.org/wiki/PostScript_fonts.
If you downloaded the source files in the ZIP file (link: http://mirror.ctan.org/macros/latex/contrib/yhmath.zip), you must extract first into a temporary folder and then execute tex yhmath.ins
on the command line:
C:\tempfolder\yhmath>tex yhmath.ins
which creates amongst some auxiliary files the font files, optionally followed by latex yhmath.dtx
, which creates the documentation.
You could temporarily Create a local texmf tree in MiKTeX and put the virtual font file OMXyhex.fd
into the folder <localtexmf>\tex\latex\yhmath
. The MetaFont files with extension .mf
belong into <localtexmf>\source\latex\yhmath\
.
For further action see MikTeX 2.9 can not find font yrcmex10 of yhmath package.
It is possible to install MacTeX with homebrew using Homebrew Cask via
$ brew tap caskroom/cask
$ brew cask install mactex
Since that basically downloads the MacTeX.pkg from ctan it should not be different from the usual manual installation.
If you would like to install without the GUI, you can
$ brew cask install mactex-no-gui
[edit] Homebrew 2.2.6
Skip the brew tap caskroom/cask
or the following error occures:
Error: caskroom/cask was moved. Tap homebrew/cask-cask instead.
If you do what it's says, you will get:
Error: caskroom/cask-cask was moved. Tap homebrew/cask-cask-cask instead.
You can continue to do what it tells you, until you realize that you should look for help online. I think it is a fun, yet unhelpful error message, maybe there is a good reason for it. Just go ahead and do
$ brew cask install mactex
Edit 2021
brew
has once again changed its syntax for this. You should now be using
$ brew install --cask mactex
Best Answer
As far as I can see there are four different cases. The first three cases concern fonts with direct LaTeX support (there are packages) with different licenses, while the fourth addresses fonts without direct LaTeX support, no matter how they are licensed:
a) Free fonts in the TL repository like
xcharter
On a well maintained, recent distribution like TL2013 on MacOS it is very likely, that simply updating your system with the TeX Live Utility will install everything needed.
If you don’t have a full installation, just install the package with TeX Live Utility or by running
sudo tlmgr install xcharter
in a terminal. (The instructions on font installation, which are often found in the documentation of font packages, are only of import if you are not using a package manager.)This applies to a whole range of fonts like
dejavu
,utopia
,libertine
,mathpazo
andgentium
to name just a few.b) Non-free fonts like
garamondx
There is a number of fonts, including
garamondx
, which can be installed using the scriptgetnonfreefonts
. In order to do so, follow the instructions here.c) Non-free fonts with LaTeX support like
Minion Pro
Other popular fonts like
Minion Pro
have LaTeX support but need to be installed manually. Usually there are detailed instructions accompanying the packages. In some cases, like Minion Pro, you can even find scripts that do the work for you.d) Fonts without direct support
There is a huge class of commercial and free fonts without direct LaTeX support. They can be used with fontspec (this option requires XeLaTeX or LuaLaTeX).
More on manual font installation here.
So, to generalize a bit: if a package contains a font and the package is in the TL repository then installing it with a package manager (like
tlmgr
) should suffice.