On Oct 30, 2006, at 4:43 PM, Paul A. Rubin wrote:

Bob Lounsbury wrote:
This was my process:
1) Install fink
2) Install TeXmacs via fink (which automatically installs various programs needed, including tetex/ghostscript/imagemagick/etc)
3) Download and install LyX from the main LyX ftp site
Everything seemed to work after that, except for viewing dvi (but this really doesn't bother me, I use pdf).

Bob and Sue,

Thanks for the replies. Unfortunately, at least one of the problems reported by the original poster boils down (I think) to needing DVI viewing to work. The way instant preview of math insets functions is to export them to .tex files, run latex against them to generate DVIs, then convert the DVIs to images and display the images in the GUI. Being able to generate PDFs but not DVIs won't serve here (unless the Python script is rewritten to change .tex->.dvi->.png to .tex->.pdf->.png, which I suppose would be feasible).

/Paul


Hi,
latex is a symlink to pdfetex, but that's not the issue. I'm guessing that the solution for this problem is in the preamble of the LyX file. A long time ago, the standard way to test whether pdflatex is being used was to have a line like

\newif\ifpdf
...
\ifx\pdfoutput\undefined
...

and do things differently depending on that if statement (e.g., call hyperref with different options). Now this method is no longer supported and you're supposed to use the lines

\usepackage{ifpdf}
\ifpdf
...

instead. When I try the old method, pdfetex goes into an implicit pdflatex mode. With the new method, there's no problem producing dvi files on my Mac.

Regards,
Jens

Reply via email to