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.

lyxhtml2html(infile, outfile = NULL)

Arguments

infile

path to xhtml file

outfile

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

See also

Examples

if (FALSE) { lyxfile=system.file('tests/testthat/testdata/lyx/test.lyx', package='paperutils') lyxhtml=tempfile(pattern = basename(lyxfile), fileext = '.xhtml') lyxexport(lyxfile, outfile=lyxhtml) lyxhtml2html(lyxhtml) }