On Saturday 25 June 2011 08:46:33 you wrote:
> Am 24.06.2011 21:04, schrieb Steve Litt:
> > The following shellscript compiles my PDF:
> > 
> > =============================
> > #!/bin/bash
> > 
> > rm -f junk.*
> > cp -p larry.lyx junk.lyx
> > lyx --export latex junk.lyx
> > latex junk.tex
> > makeindex -c -q junk.idx
> > latex junk.tex
> > dvips  junk.dvi
> > ps2pdf13 junk.ps
> > acroread junk.pdf
> > =============================
> 
> Why so complicated and not using LyX to export directly to PDF
> using e.g. pdflatex or ps2pdf?
> 
> Besides this, depending on your file, you will need up to 2 latex
> runs, not just 2 as in your script. And I recommend not to run
> latex + dvips + ps2pdf but just directly pdflatex.

Thanks Uwe,

The reason for the complication is that I do some personalization (not 
shown) within the script, that includes pdftk. Also, as much as 
possible, I want to shelter my builds, which get done every time 
someone orders a book, from any changes to LyX or my LyX 
configuration.

As far as pdflatex, it has some bad problem, as I remember, though I 
don't remember exactly what the problem is. I think it might have had 
something to do with hyperref.

But more than anything else, I just want to understand this 
discrepancy? What is the difference between LyX view->PDF (ps2pdf) and 
an equivalent script. What is the difference between File->export-
>LaTeX and lyx --export pdf? Once I understand what LyX is doing under 
the covers, I can certainly do the job with my script, or your idea, 
or pretty much anything else. I just want to understand the 
discrepancy.

Thanks

StevET

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt

Reply via email to