JeeBee wrote:
Dear LyX-users,
I downloaded the font AnnSton from here
http://ftp.nluug.nl/textproc/tex-archive/fonts/initials/
Then I put all these files in the same directory as my .lyx file.
This in the preamble:
\input AnnSton.fd
[...]
Seems like it doesn't find the AnnSton.tfm, which is also in the current
directory?
Then, when I export this file to LaTeX, and run LaTeX on it, it does work!
When you use Lyx, everything is copied to a
temporary directory - that's where all the action
happens. When you export something (latex or other)
it is eventually copied back from this tempdir.
One reason is that latex creates so much extra
files during its runs, so it is nice not having
those cluttering up the working directory.
The obvious problem is that lyx doesn't always
know what to copy over. It can't take
the whole directory - there might be gigabytes of
unrelated stuff there. So Lyx copies what it
thinks is necessary, which work well except when
you reference files from ERT or the preamble. For
lyx doesn't understand every aspect of latex.
In this case, it seemingly understood the need to
copy the file referenced by your \input,
but not the implied .tfm file that wasn't
actually mentioned by name anywhere.
It all works when you export latex, for then
latex actually run in your working directory.
Can anybody perhaps explain how I can make the LyX version run?
Install your font on the system, in a place
where latex will find it anyway. I use
/usr/local/share/texmf/fonts
Helge Hafting