Stephen P. Harris wrote:

----- Original Message ----- From: "Paul A. Rubin" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, August 05, 2005 9:16 AM
Subject: File format extension


Is the extension field in Edit->Preferences->File formats documented anywhere? I tried changing the extension for a clone of the PDF (pdflatex) format to 'pdf4' (because I was trying to open it in a non-Acrobat viewer, and the files were opening in Acrobat Reader regardless). Turns out this doesn't work, because pdflatex gives the file a .pdf extension regardless.

I'm not sure if this is a bug or just how things work, because I can't find any documentation of whether the field is intended to let me specify the extension I want or just communicate the extension the file is going to have (outside my control).

Paul


I have been able to use another viewer to read postscript files besides
gswin (although it uses ghostscript.exe) so I think you can use another viewer app instead of Reader, Acrobat or xpdf (I put it in C:\lyx\lyx\bin) to read pdf. But to read a different file format I think you need a new viewer field assigned to that file format which would mean adapting the LyX source code. I received an email once from Helge(sp?) which I
can't find now that leads me to believe this. Angus will probably give
a definitive answer.

Regards,
Stephen

Stephen,

Thanks. I actually didn't have any insurmountable :-) problems getting the new viewer to work. I created a new format (similar to PDF (pdflatex) but with a different name), created a conversion path to get from LyX to it (using pdflatex), inserted the viewer command I wanted and added the directory containing the viewer to the PATH prefix (key step). During debugging of this, I had a file opened by Acrobat Reader (presumably because the viewer I wanted wasn't set up properly and LyX reverted to the system file association for ".pdf"), so I thought I could avoid that in the future by changing the extension. Apparently, that thought was incorrect.

BTW, adding a new format, new converter, new viewer does not require tinkering with LyX source.

Paul

Reply via email to