Hi List,

I've a work around for a lyx2latex batch program. I can't believe I'm the
only person who wants to do this, so here it is.

First, thanks to Andre Poenitz for the command line option to do
the export:

    $ lyx --export latex FILENAME.lyx

Now the trick is to stop the gui poping up. On linux running XFree86 there
is a virtual frame buffer X server, that acts a bit like /dev/null. It is
available for other platforms also.

Start the virtual frame buffer X server with a suitable display number:

    $ Xvfb :1 & 

This will sit there forever handling x protocol commands sent to that display.

Now run lyx with the display set to this x server:

   $ /bin/rm -f FILENAME.tex && lyx -display :1 --export latex FILENAME.lyx

We must remember to get rid of the tex file before we start, otherwise
lyx will hang in a dialog asking us if we want to delete it!

Bye,
Geoff Russell

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
6 Fifth Ave           +618-8332-5069 (Home)          |
St Morris SA 5068     +618-8207-2029 (Work)          | [EMAIL PROTECTED]
Adelaide, AUSTRALIA   +618-8364-1543 (Fax-Home)      |

Reply via email to