Table of Contents in Text output?

2001-01-09 Thread Brian Lavender

How do I get the table of contents generated with ascii text
output?

I was playing with the 

example_lyxified.lyx

and I exported the output to text.

I used the File|Export|Ascii Text.. option. 

When I edit the text output, I see

   THIS IS THE TITLE OF THE DOCUMENT
   
   by Fee LyX
   
   June 12, 1972
   
   \tableofcontents{}
   
   1 Basic Philosophy
   
   The basic philosophy of LyX is that you should worry about the content
   of what you're writing and not the form.

As you can see, it generates 

\tableofcontents{}

instead of an actual table of contents. How do I get it
do generate an actual table of contents. I would like
the output similar to this text linux doc.

http://www.ibiblio.org/pub/Linux/docs/HOWTO/Alpha-HOWTO

brian
-- 
Brian Lavender
http://www.brie.com/brian/



Re: Table of Contents in Text output?

2001-01-09 Thread Herbert Voss

Brian Lavender wrote:
> 
> How do I get the table of contents generated with ascii text
> output?
> I was playing with the
> example_lyxified.lyx
> and I exported the output to text.
> I used the File|Export|Ascii Text.. option.
> When I edit the text output, I see
>THIS IS THE TITLE OF THE DOCUMENT
>by Fee LyX
>June 12, 1972
>\tableofcontents{}
>1 Basic Philosophy
>The basic philosophy of LyX is that you should worry about the content
>of what you're writing and not the form.
> http://www.ibiblio.org/pub/Linux/docs/HOWTO/Alpha-HOWTO

you can export to pdf or ps and than with
pdftotext  or  ps2ascii

especially the first one gives a good result and you have
the pdf-file too.

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/lyx/



Re: Table of Contents in Text output?

2001-01-09 Thread Ronald Florence

Brian Lavender wrote:

  > How do I get the table of contents generated with ascii text

and quoted part of the output of an attempted conversion to ascii, the
familiar LyX credo:

  >The basic philosophy of LyX is that you should worry about the content
  >of what you're writing and not the form.

Herbert Voss then suggested
  
  you can export to pdf or ps and than with
  pdftotext  or  ps2ascii
  
Herbert's suggestion is, as usual, timely and correct.  But I wonder:
if the philosopy of LyX is that the user should worry about content
and not the form of what is being written, shouldn't the user be able
to export to commonly used formats, like ascii without the gyrations
of converting to pdf or ps and then to ascii?  I've seen comparably
complicated recommendations for getting a word-count and other
operations that shouldn't require the user to look up the procedure
and revert to an xterm and a shell to run off scripts and pipelines.

I'm a staunch advocate of LyX.  I admire and appreciate the
hard-working individuals who have been refining LyX and adding new
features.  I just hope that as LyX evolves, and more features are
added, we don't lose sight of the original philosophy, and that the
KISS principle (Keep It Simple Stupid) continues to apply to the user
interface as well as the WYSIWYM concept.

-- 

Ronald Florence http://members.home.net/18james



Re: Table of Contents in Text output?

2001-01-09 Thread Angus Leeming

What these internal export functions do is export VERBATIM. They don't and 
aren't meant to run the stuff through LaTeX first.

If, however, you want to do this, then you can use the new, customisable 
export facility of LyX 1.1.6pre3.

If you're not familiar with the process, here's how:

Open the Edit->Preferences dialog and bring up the Converters->Format tabbed 
folder

It should have formats defined like ASCII, PDF etc

Define a new format, textprocessed

Format: textprocessed
GUI name: ASCII(processed)
Extension: txt

Press the Add button on the tabbed folder and then the Apply button on the 
main form.

Now open the Converters->Converters tabbed folder. Create a new converter
From: PDF (pdflatex)
To: ASCII(processed)
Converter: pdflatex $$i $$o

Again press Add and then Apply. (The comments should help you through the 
process). If you want to save this new stuff permanently, press Save, 
otherwise Cancel.

Now you should be able to export the processed ASCII text from 
File->Export->ASCII(processed).

See! Simple! A great reason to upgrade! (Note of course that this is a pre- 
version so ALWAYS back up before using it.)

Angus

On Tuesday 09 January 2001 18:56, Ronald Florence wrote:
> Brian Lavender wrote:
>   > How do I get the table of contents generated with ascii text
>
> and quoted part of the output of an attempted conversion to ascii, the
>
> familiar LyX credo:
>   >The basic philosophy of LyX is that you should worry about the
>   > content of what you're writing and not the form.
>
> Herbert Voss then suggested
>
>   you can export to pdf or ps and than with
>   pdftotext  or  ps2ascii
>
> Herbert's suggestion is, as usual, timely and correct.  But I wonder:
> if the philosopy of LyX is that the user should worry about content
> and not the form of what is being written, shouldn't the user be able
> to export to commonly used formats, like ascii without the gyrations
> of converting to pdf or ps and then to ascii?  I've seen comparably
> complicated recommendations for getting a word-count and other
> operations that shouldn't require the user to look up the procedure
> and revert to an xterm and a shell to run off scripts and pipelines.
>
> I'm a staunch advocate of LyX.  I admire and appreciate the
> hard-working individuals who have been refining LyX and adding new
> features.  I just hope that as LyX evolves, and more features are
> added, we don't lose sight of the original philosophy, and that the
> KISS principle (Keep It Simple Stupid) continues to apply to the user
> interface as well as the WYSIWYM concept.



Re: Table of Contents in Text output?

2001-01-11 Thread Dekel Tsur

On Tue, Jan 09, 2001 at 01:56:50PM -0500, Ronald Florence wrote:
> Brian Lavender wrote:
> 
>   > How do I get the table of contents generated with ascii text
> 
> Herbert's suggestion is, as usual, timely and correct.  But I wonder:
> if the philosopy of LyX is that the user should worry about content
> and not the form of what is being written, shouldn't the user be able
> to export to commonly used formats, like ascii without the gyrations
> of converting to pdf or ps and then to ascii?  I've seen comparably
> complicated recommendations for getting a word-count and other
> operations that shouldn't require the user to look up the procedure
> and revert to an xterm and a shell to run off scripts and pipelines.

The CVS version now creates a table of contents when doing ascii export,
so this feature will be in 1.1.6 which will be released soon.