I have a short latex program that fails to compile when I use the following:
\usepackage[scaled]{helvet}
I suspect that this is an issue with using BasicTeX on the Mac because I have seen this construct shown in so many places that I believe that it should work under normal conditions.
Here is the program.
\documentclass{article}
%
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[scaled]{helvet}
%
% change the default font to sans-serif
%
\renewcommand{\familydefault}{\sfdefault}
\begin{document}
Hello World!
\end{document}
And here is error output.
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
restricted \write18 enabled.
entering extended mode
(./hello.tex
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 21 languages loaded.
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/textcomp.sty
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/ts1enc.def))
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/psnfss/helvet.sty
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/graphics/keyval.sty))
(./hello.aux) (/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/ts1cmr.fd
) (/usr/local/texlive/2013basic/texmf-dist/tex/latex/psnfss/t1phv.fd)
kpathsea: Running mktextfm phvr8t
/usr/local/texlive/2013basic/texmf-dist/web2c/mktexnam: Could not map source abbreviation for phvr8t.
/usr/local/texlive/2013basic/texmf-dist/web2c/mktexnam: Need to update ?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input phvr8t
This is METAFONT, Version 2.718281 (TeX Live 2013)
kpathsea: Running mktexmf phvr8t
! I can't find file `phvr8t'.
<*> ...:=ljfour; mag:=1; nonstopmode; input phvr8t
Please type another input file name
! Emergency stop.
<*> ...:=ljfour; mag:=1; nonstopmode; input phvr8t
Transcript written on mfput.log.
grep: phvr8t.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input phvr8t' failed to make phvr8t.tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font T1/phv/m/n/10=phvr8t at 9.49997pt not loadable: Metric (TFM) file not found.
<to be read again>
relax
l.10 \begin{document}
The following gist suggests installing texlive-fonts-extra or urw-base35, but not sure how to do that on Mac.
https://gist.github.com/fernandomantoan/3751190
Thanks.
Best Answer
TeX Live provides
tlmgr
to update, maintain and manage the installation. If you do not initially install a full TeX installation, you can use it to upgrade to a largerscheme
or to install particularcollections
orpackages
.TeX Live package names will not generally correspond to those used by e.g. distros when packaging TL. So you need to do some detective work to figure out what to tell
tlmgr
to install.gives the full details of this facility in all its glory. You can just say
to get a listing of
packages
. However, this will be huge. Instead, tryto get a listing of
collections
(groups of related packages). On my system, I getThis shows me which repository I'm using, which
collections
are available and which are installed (marked withi
). Almost all are installed here as I installed a full version of TeX. If you installed a smaller version, you will have feweri
s. There are severalcollections
which mention fonts:The last sounds less likely. The first two are possibilities. Helvetica is pretty standard so it may well be recommended. So it makes sense to start there. To get information about the
collection
and a listing of thepackages
it includes:This gives me
So now you can decide whether to install the entire collection or selected packages. Alternatively, you can of course request further information about a particular package:
which tells me: