I'm getting an error in LyX when I attempt to use certain features that require access to font resources, even though these same features work fine in TexShop.
For example, if I attempt to enable "expert" options for mathdesign, so that I can access small caps, the minimal code that does this works as expected in TexShop, but when I use the same code in LyX, I get an error
!pdfTeX error: pdflatex (file bchrc8a.pfb): cannot open Type 1 font file for reading
unless I remove the "expert" option (in which case I can't get small caps in the running headers in the example).
\documentclass[nohyper,sfsidenotes]{tufte-handout}
\usepackage{fancyhdr}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[bitstream-charter,expert]{mathdesign}
\title{This is the title and running head}
%As an example, use sans small caps in the running header
\fancyhead[RE,RO]{\sffamily\smallcaps{\newlinetospace{\plaintitle}}\quad\thepage}
\begin{document}
Body text.
\newpage{}
More body text.
\end{document}
All the files are where they should be, and are up to date, in my MacTeX 2011 installation (and clearly TeXShop is finding them).
TeXLive logs the following just before succeeding:
{/usr/local/texlive/2011/texmf-dist/fonts/enc/dvips/ly1/texnansi.enc}
{/usr/local/texlive/2011/texmf-dist/fonts/enc/dvips/base/8r.enc}
</usr/local/texlive/2011/texmf-dist/fonts/type1/bitstrea/charter/bchr8a.pfb>
</usr/local/texlive/2011/texmf-dist/fonts/type1/urw/helvetic/uhvr8a.pfb>
LyX logs the following just before failing:
{/usr/local/texlive/2011/texmf-dist/fonts/enc/dvips/base/8r.enc}
{/usr/local/texlive/2011/texmf-dist/fonts/enc/dvips/ly1/texnansi.enc}
</usr/local/texlive/2011/texmf-dist/fonts/type1/bitstrea/charter/bchb8a.pfb>
</usr/local/texlive/2011/texmf-dist/fonts/type1/bitstrea/charter/bchr8a.pfb>
expertoption tries to access the "Expert" fonts that are usually sold by font vendors and not available in free form. – egreg Mar 9 '12 at 22:02/usr/local/texlive/2011/t exmf-dist/fonts/type1/bitstrea/charter/bchr8a.pfb, so LyX knows where it is). – raxacoricofallapatorius Mar 9 '12 at 22:21ls -l $(kpsewhich bchr8a.pfb)? You have to use the Terminal for this. – egreg Mar 9 '12 at 22:25