lyxhtml2html: Convert a LyXHTML file to an html file that can be opened by...

Description Usage Arguments See Also Examples

View source: R/lyxutils.r

Description

LyXHTML is currently (LyX 2.1 series) the highest quality html export available by default. However, it cannot be opened by word immediately because it interposes a small xml type header before the html content. This function removes that header and renames the file with a .html extension by default.

Usage

1
lyxhtml2html(infile, outfile = NULL)

Arguments

infile

path to xhtml file

outfile

path to output html file (defaults to <infilestem>.<html>)

See Also

Other LyX: current_lyx_tempfile, lyx_citekeys, lyxexport

Examples

1
2
3
4
5
6
7
## Not run: 
lyxfile=system.file('tests/testthat/testdata/lyx/test.lyx', package='paperutils')
lyxhtml=tempfile(pattern = basename(lyxfile), fileext = '.xhtml')
lyxexport(lyxfile, outfile=lyxhtml)
lyxhtml2html(lyxhtml)

## End(Not run)

jefferis/paperutils documentation built on Sept. 20, 2019, 10:20 a.m.