You are not logged in.
Pages: 1
Topic closed
Hi,
when I try to view the pdf for a document in lyx I get an error message:
File does not exist: /tmp/lyx_tmpdir.TJ4468/lyx_tmpbuf0/ausarbeitung_v2.pdf
The same error message occurs when exporting to pdf.
I already did an
fmtutil --all
as user and as root. I also let lyx reconfigure itself (in lyx: Tools->Reconfigure).
I looked in the log-file /tmp/lyx_tmpdir.TJ4468/lyx_tmpbuf0/ausarbeitung_v2.log, where following error is shown:
!pdfTeX error: pdflatex (file rtxi): Font rtxi at 657 not found
==> Fatal error occurred, no output PDF file produced!
It looks like lyx can't find a required font, although the files for the font are installed:
locate rtxi
/usr/share/texmf-dist/fonts/afm/public/txfonts/rtxi.afm
/usr/share/texmf-dist/fonts/tfm/public/txfonts/rtxi.tfm
/usr/share/texmf-dist/fonts/type1/public/txfonts/rtxi.pfb
So, why I am getting this error message?
Thanks for any help.
Last edited by otti (2009-10-31 23:40:15)
Offline
anyone?
Offline
Have you tried
texhash
as root? (And then maybe reconfiguring lyx again.)
Last edited by barto (2009-10-30 15:37:37)
“First principle, Clarice. Simplicity” – Dr. Hannibal Lecter
Offline
It seems like tex doesn't know about those fonts. Try 'sudo updmap-sys --syncwithtrees' (this regenerates the list of fonts that tex knows about).
Optionally delete (or move away) your ~/.texlive folder (that deletes all your user set texlive settings though!).
If none of these helps, do manually 'sudo updmap-sys --enable Map=txfonts.map' or 'updmap --enable Map=txfonts.map' as user, depending on whether you want to modify the system-wide settings or just for the user.
Offline
'texhash' didn't work, 'sudo updmap-sys --syncwithtrees' neither.
But 'updmap --enable Map=txfonts.map' as user did it .
Why do I actually have to execute the command myself? Shouldn't this be done autmatically when something for tex is updated?
In any case: thanks! Finally I can create pdf-files from lyx again.
Offline
Well... probably some explanation about how does tex system find out about available fonts:
Let me explain for pdftex:
- pdftex looks into the file called pdftex.map, which contains a list of instructions of how do the tex names translate to the concrete fonts on the disk
- this file is automatically generated by running 'updmap', which reads a file named 'updmap.cfg'
- the trouble comes from the fact that any of these files can live in 2 or 3 locations, and any user config (resides in ~/.texlive) takes precedence over the system config (somewhere like /usr/share/texmf-{config,var}). Sooo, although pacman upgrade takes care of the system config, if you (or lyx) ever before did something like updmap, the user config was generated, and then it's always used and is not taken care of by pacman. Then an upgrade can make some changes in the system .map files that are not automatically propagated to user config. (And there has been numerous changes recently in texlive's .map files)
Offline
Thanks for the explanation.
Offline
Hi, sorry for bringing this old topic back up but maybe it could help someone in the future and it's literally the only answer I found for linux systems. I created an account on the arch linux forum just for this answer.
I'm on debian 10, and using the command :
su -c "updmap-sys --enable Map=txfonts.map" root
(although one could replace the su -c "" root by a sudo, but i dont have sudo set up)
Worked just fine for me to solve the issue where you can't export as a PDF or anything else your LyX document.
Hope it helped someone, cheers, stayhome
Last edited by churros_from_sanofi (2020-04-07 14:47:01)
Offline
Closing this old solved topic.
Offline
Pages: 1
Topic closed