On 11/04/2014 09:35 PM, pcr wrote:
Thousands of students and researchers us latex and fonts from the
American Mathematical Society. There are some instructions on line
that I suppose are adequate for MS windows users, but I could not find
detailed instructions for Linux. I pieced together the steps followed
below that ultimately did not work:
Okay, I'm trying to make lyx work with fonts from the American
Mathematical Society, amsfonts. I installed them on my Debian Linux
laptop with su, apt-get update, apt-get upgrade, and apt-get install
texlive-all. Here is where they went:
root@Alpha:/home/pcr1# find / -name amsfonts
/usr/share/doc/texlive-base/fonts/amsfonts
/usr/share/doc/texlive-doc/fonts/amsfonts
/usr/share/texlive/texmf-dist/fonts/tfm/public/amsfonts
/usr/share/texlive/texmf-dist/fonts/source/public/amsfonts
/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts
/usr/share/texlive/texmf-dist/fonts/afm/public/amsfonts
/usr/share/texlive/texmf-dist/fonts/map/dvips/amsfonts
/usr/share/texlive/texmf-dist/tex/plain/amsfonts
/usr/share/texlive/texmf-dist/tex/latex/amsfonts
root@Alpha:/home/pcr1#
Then I went into Lyx and opened a new document. Next I opened
Document,Settings,Latex Preamble, and typed \usepackage{amsfonts} on
the blank screen that opened, and clicked on Save as Document
Defaults, before closing the Settings dialog.
Did you try compiling this document? Did it work? If you do not get an
error, then amsfonts.sty is being loaded.
Then I went to Tools, Reconfigure. When it finished I looked in the
~/.lyx directory and edited packages.lst and searched for amsfonts,
sadly without success.
LyX queries your TeX engine to find out what packages are installed. Try
opening a terminal and doing:
# kpsewhich amsfonts.sty
You will get a path to that file if it's there and nothing if it is not.
If not, you probably need to:
# sudo apt-get install texlive-amsfonts
You might also try:
# sudo texhash
to regenerate the TeX database.
If it is already there, then the question is why LyX does not see it,
and we can try to figure that out.
Richard