Documenting the new -E command-line option (added in r39678).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39710 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Tommaso Cucinotta 2011-09-19 12:33:43 +00:00
parent 2823eed291
commit 7ca9f7059e

View File

@ -8,14 +8,26 @@ been applied because of incomplete testing.
Interface changes Interface changes
----------------- -----------------
There have been some changes to the LyX command line. There is a new option There have been some changes to the LyX command line. The following new
"--batch" that causes LyX to run the given commands without opening a GUI options have been added:
window. Thus, something like:
lyx -batch -x "buffer-print printer default dvips" myfile.lyx -batch
will cause LyX to print myfile.lyx to the default printer, using dvips and
the default print settings (which, of course, have to have been configured Causes LyX to run the given commands without opening a GUI window.
already). At present, not many commands can be used this way, but there will Thus, something like:
be more eventually. lyx -batch -x "buffer-print printer default dvips" myfile.lyx
will cause LyX to print myfile.lyx to the default printer, using
dvips and the default print settings (which, of course, have to have
been configured already). At present, not many commands can be used
this way, but there will be more eventually.
-export-to <format> <dest> (-E <format> <dest>)
Allows one to perform a batch export of the LyX file that is opened
to the specified destination file <dest> and format <format>.
For example, to create a PDF of a LyX document, you can run:
lyx -export-to pdf /path/to/dest.pdf /path/to/source.lyx
See the manual page for details.
A bash completion script was added to the tarball. A bash completion script was added to the tarball.