Export a LyX file to another format (by default xhtml)

lyxexport(x, outfile = NULL, format = "xhtml")

Arguments

x

The input file

outfile

Path to output file (defaults to <infilestem>.<format>)

format

The LyX shortname for the format (see details)

Details

Look in Tools->Preferences->File Handling->File Formats->Short Name to see which parameter (which differs from the format name in the File->Export menu) should be passed as format.

See also