There are also dvipdf and ps2pdf tools but they all seem to come in the
same package with pdflatex anyway.

On 23 Nov 1999, Lars Gullik Bjønnes wrote:
[...]
> I only need to think a bit about how to do this best.
> 
> I think it should be done by a lyxrc switch.

Does pdflatex provide the same error message and other log file output as
latex?

> \latex_mode  {standard|pdf}
> \prog_pfdlatex <string> (default pdflatex)
> \pdf_viewer <string> (default xpdf or acroread)

or gv/ghostview if ghostscript >= 5.50 (maybe earlier also)

> Some in the File menus need to change and File->Export.

Hmmm... So you are suggesting we either have DVI+PS or PDF options
available at any time for viewing or updating from File menu and that we
might support File->Export->PDF if in 'standard' mode or vice versa.

I suppose that makes sense.  Then we just need a lyx action to switch
between modes.  Changing modes then effectively allows us to turn
UpdateDVI into UpdatePDF by substituting "pdflatex" for "latex" which
should only take a line or three of code:

        command += lyxrc->latex_mode ? lyxrc->pdflatex : lyxrc->latex;

Then all the rest of the code for the patch is the additions to lyxrc and
lyxaction.  Including testing if it's viable to switch modes: no pdflatex
found no switching modes.

> We also must check for pdflatex in configure and check for
> fontencoding LY1 which is preferred with PDF and also check for some
> of the packages that is  advised to be used together with PDF, url.sty
> and hyperref.sty and some fontpackages.

LY1, what's that?  AFAIK, the recommendation seems to be just use the
psfonts by either \usepackage{mathptm} which sets the math fonts as well
as roman and so forth or just set Layout->Document->Font == times.

Allan. (ARRae)

Reply via email to