I'm using LyX for technical documentation and want to automate the process of creating PDF files.
Within LyX, I can simply click the button "View PDF (XeTeX)", and LyX performs the whole build process for me: it creates a .tex file, does some bibliography magic, and uses XeTeX to create the final PDF file.
What I'm looking for is a way to call LyX from the command line and get the same result. So far, I've only managed to generate a plain .tex file (using --export-to xetex
). However, when I run xelatex on the generated file, it keeps showing errors that don't occur when building using LyX. Is there a way to get LyX to do the work?
My system: Windows 7 64bit, LyX 2.1.0
pdf4
thing :) – user11232 May 5 '14 at 9:45Tools > Preferences > Editing > Shortcuts
and create new key-bindings forbuffer-export xetex
andbuffer-export pdf4
. You can refer toHelp > Lyx Functions
for the command syntax including specifying a destination. – user21820 Mar 15 '15 at 5:18