On Sun, Jun 26, 2016 at 10:57:22PM -0400, Steve Litt wrote: > Hi all, > > The following is a script to repeatedly compile a LyX document that's > under construction or debugging: > > ============================================================== > #!/bin/sh > > mainname=ch20 > > flagg=a > > while [ "$flagg" != "q" ]; do > rm $mainname.tex > rm $mainname.aux > rm $mainname.pdf > rm $mainname.log > rm $mainname.dvi > lyx --export xetex $mainname.lyx
Why not use use the following? lyx --export pdf4 $mainname.lyx It creates a PDF directly so you don't have to manually run xelatex. There are reasons to compile yourself (e.g. to make a substitution) but unless you have a reason, LyX is better to use because it knows how many times you must run xelatex (if you only run it once, you might not have the table of contents, or citations). > Notice that this script uses --export xetex and xelatex. This is so you > can compile documents that use non-TeX fonts. There's also a way to do > it with LuaTeX, but I don't know it. If you want a LuaTeX PDF, just use pdf5 for the format. > This script uses mupdf to view the finished PDF. Since discovering > mupdf, I've configured LyX to use it as LyX's exclusive PDF reader. > It's lightning fast Agreed, very fast. Nice script, Steve. Thanks for sharing it with the list! Scott
signature.asc
Description: PGP signature
