So maybe you can use
LyX: export to dvi and then
dvi2tty to get an ascii output.
Hope it helps.
jan
> It is the way LyX works.
>
> LyX doesn't parse the latex preamable it passes it as it is when using
> latex output. When doing ascii output all latex code is ignored since LyX
> doesn't parse it and doesn't know what can be used in an ascii output and
> what cant.
>
> This is something not so trivial, so I don't believe it will appear
> anytime soon in a LyX version close to you. Though you might want to try
> to code it up yourself :-)
>
> Baruch
>
> On Mon, 16 Oct 2000, Adrian Ball wrote:
>
> >
> > Dear all,
> >
> > I have set up a template document for report writing in which I define
> > some variables in the Latex preamble eg:-
> >
> > \newcommand{\us}{Barron McCann Ltd }
> > \newcommand{\reportdate}{12th October 2000 }
> > \newcommand{\testdate}{9th - 11th October 2000 }
> >
> > etc (there are several more)...
> >
> > This works perfectly for DVI/PS/Latex(hence PDF) output, but when I use
> > the ASCII export option, the variables used in the text disappear. Is
> > this a bug, or am I missing something?
> >
> > Thanks,
> > Adrian.
> >
> > --
> > Adrian Ball - Technical Consultant || Barron McCann Ltd
> > Major Data Services Ltd || Business Recovery Services
> > Tel: 07050 688565 - Fax: 07020 965488 || http://www.bemac.com/
> > mailto:[EMAIL PROTECTED] || Tel: 01283 535311
> >
--
-----------------------------------
Jan Goebel (mailto:[EMAIL PROTECTED])
DIW German Institute for Economic Research
SOEP
Königin-Luise-Str. 5
D-14195 Berlin
Germany
phone: 49 30 89789-377
-----------------------------------