>>>>> "Paul" == Paul L Lussier <[EMAIL PROTECTED]> writes:

Paul> What I really wanted to do though, was actually export the TOC
Paul> to an ascii text file.

Paul> Anyone have any ideas?

Here is the funny way: run latex on your file, and then use the
following latex file. The output will be in txttoc.txt. This version
drops page numbers, but it is easy to add back (well, without the
dots probably).

Remember to change the name of the toc file which is read.

Hope this helps
JMarc

-------------------------------------------------------------------
\documentclass{article}

% you will probably not needed that, it is just to give you ideas on
% how to replace some macros
\usepackage{amsmath}
\renewcommand{\bf}{}
\renewcommand\ref[1]{REF??}
\renewcommand\mbox[1]{#1}

% Defining this will suppress \paragraph from the text toc.
\def\noparagraph{}

% The black magic is there
\makeatletter
\newwrite\txttoc \immediate\openout \txttoc=txttoc.txt
\renewcommand{\numberline}[1]{#1. }
\renewcommand{\contentsline}[3]{
  \@ifundefined{no#1}{\immediate\write\txttoc{#2}}{}}

\begin{document}

% This should be the name of your toc file, of course.
\input{livre.toc}

\immediate\closeout\txttoc

\end{document}
--------------------------------------------------------------

-- 
                +++ the lyx project user mailing list +++
                To unsubscribe from this list send mail to 
                         [EMAIL PROTECTED]
                    with the **Subject** unsubscribe.
  • TOC? Paul L. Lussier
    • Jean-Marc Lasgouttes

Reply via email to