I am wondering why a get a different result from the GUI than from the command line when attempting to export to a text file. I am also wondering what incantation I would need to use to get results as I get from the GUI by going to latex and then to text+++.
test process: Open testexport.lyx File->Export->Plain text #back on command line mv testexport.txt testexportGUI.txt lyx --export text testexport.lyx diff -u testexportGUI.txt testexport.txt And in case it is not apparent, I do prefer the GUI's version of the export. BTW Pavel's patch in this post needs updated, at least in 1.6.10** and probably later versions http://lyx.475766.n2.nabble.com/Command-line-export-tp482733p482740.html from "Tools->Preferences->File formats->Format" to "Tools->Preferences->File Handling->File formats->Format" and perhaps a further note that it is the "Short Name" which should be used on the command line. ** I know 1.6 will not get an update, but as it is the one I run, that points out how early there was already a disconnect. +++ exporting to latex and running `latex -output-format=text testexport.tex` several times, and THEN opening the file in xdvi to save as text is less than satisfying. And `lyx --export text3 testexport.lyx` is NOT pretty. Even when this disclaimer is not here: I am not a contracting officer. I do not have authority to make or modify the terms of any contract.
testexport.lyx
Description: testexport.lyx
Table of Contents 1 sec1 1.1 subsec1.1 1.1.1 subsec1.1.1 2 another sec 1 sec1 sec1 text 1.1 subsec1.1 subsec1.1 text 1.1.1 subsec1.1.1 subsec1.1.1 text 2 another sec
Table of Contents sec1 sec1 text subsec1.1 subsec1.1 text subsec1.1.1 subsec1.1.1 text another sec