I was wondering if LyX has an option whereby the PDF output file updates as I am making changes to the master file.
2 Answers
No, there is to my knowledge no such thing.
You can use Instant preview (http://wiki.lyx.org/LyX/InstantPreview) for equations, and things you put inside a Preview box (Insert --> Preview), but I don't think there is an option for live updating the PDF.
- 206,688
No such functionality in LyX yet. But under Linux one can consider using command line tools to achieve that.
Suppose the LyX project file is called xx.lyx and we use pdflatex. The principle is to use entr to monitor the change of xx.lyx and export xx.lyx to xx.tex on any change, and use latexmk to instantly compile and update the PDF file. Two steps are involved:
Open a terminal,
cdinto the LyX project folder and runls xx.lyx | entr lyx -e pdflatex -f xx.lyxOpen another terminal,
cdinto the LyX project folder and runlatexmk -pvc -pdf xx.tex
- 21
- 3
-
This seems really nice (I haven't tested it and don't use LyX so could skip the first step). But a couple of things: (i) shouldn't the second terminal use
entrto compile the file when it changes? (ii) You should probably note that this will update the pdf when you save the file, not just when you make changes (a good thing IMO). – Chris H Oct 20 '16 at 10:36 -
I totally agree on (ii). Regarding (i): No,
entris not needed in the second terminal. Actually,latexmkdetects any changes of xx.tex and its dependent files like figures.entris used in the first terminal to monitor the change of xx.lyx. – Peng Liu Oct 20 '16 at 10:43 -
I didn't realise latexmk could monitor. I might have used it if I'd known that! – Chris H Oct 20 '16 at 11:00