You are not logged in.

#1 2009-10-26 15:47:31

otti
Member
Registered: 2006-12-18
Posts: 64

[Solved] Lyx: pdf preview and pdf generation doesn't work

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

#2 2009-10-29 18:28:54

otti
Member
Registered: 2006-12-18
Posts: 64

Re: [Solved] Lyx: pdf preview and pdf generation doesn't work

anyone?

Offline

#3 2009-10-30 15:36:41

barto
Member
From: Budapest, Hungary
Registered: 2009-10-22
Posts: 88

Re: [Solved] Lyx: pdf preview and pdf generation doesn't work

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

#4 2009-10-30 19:18:20

bender02
Member
From: Germany
Registered: 2007-02-04
Posts: 1,328

Re: [Solved] Lyx: pdf preview and pdf generation doesn't work

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

#5 2009-10-30 23:53:45

otti
Member
Registered: 2006-12-18
Posts: 64

Re: [Solved] Lyx: pdf preview and pdf generation doesn't work

'texhash' didn't work, 'sudo updmap-sys --syncwithtrees' neither.

But 'updmap --enable Map=txfonts.map' as user did it smile.

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

#6 2009-10-31 09:06:07

bender02
Member
From: Germany
Registered: 2007-02-04
Posts: 1,328

Re: [Solved] Lyx: pdf preview and pdf generation doesn't work

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

#7 2009-10-31 23:39:55

otti
Member
Registered: 2006-12-18
Posts: 64

Re: [Solved] Lyx: pdf preview and pdf generation doesn't work

Thanks for the explanation.

Offline

Board footer

Powered by FluxBB