RE: command line text export different than GUI?

2014-06-25 Thread Denniston, Todd A CIV NAVSURFWARCENDIV Crane
> -Original Message-
> From: Richard Heck [mailto:rgh...@lyx.org]
> Sent: Tuesday, June 03, 2014 10:03 PM
> To: Denniston, Todd A CIV NAVSURFWARCENDIV Crane
> Cc: lyx-users@lists.lyx.org
> Subject: Re: command line text export different than GUI?
> 
> On 06/03/2014 05:16 PM, Denniston, Todd A CIV NAVSURFWARCENDIV Crane wrote:
> > 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.
> 
> This looks like a bug. From my quick test, it appears that certain
> preparatory operations, involving the calculation of counters, are not
> performed in this case. I'd suggest you file a bug report.
> 
> > 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.
> 
> Sometimes we use the intermediate panel category, and sometimes not.
> It's a bit inconsistent.
> 
> Richard

Richard,
Thanks for the feedback.
I went to the LyX bug trac and found I would need to create yet another tracker 
login to enter the ticket.
As I am not interested in keeping track of YetAnotherTracLogin currently, I 
give you&|the LyX user&|dev lists permission to use any and all of the text of 
my report of  this issue to enter any needed LyX Trac ticket(s) on this set of 
issues.

Thanks again for all the help you have rendered.

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.




Re: command line text export different than GUI?

2014-06-03 Thread Richard Heck

On 06/03/2014 05:16 PM, Denniston, Todd A CIV NAVSURFWARCENDIV Crane wrote:

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.


This looks like a bug. From my quick test, it appears that certain 
preparatory operations, involving the calculation of counters, are not 
performed in this case. I'd suggest you file a bug report.



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.


Sometimes we use the intermediate panel category, and sometimes not. 
It's a bit inconsistent.


Richard



command line text export different than GUI?

2014-06-03 Thread Denniston, Todd A CIV NAVSURFWARCENDIV Crane
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