----- Original Message -----
From: "Helge Hafting" <[EMAIL PROTECTED]>
To: "Huaiyu Duan" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, February 17, 2004 4:07 AM
Subject: Re: ugly latex code


> Huaiyu Duan wrote:
> > Hi,
> >
> > I use LyX a lot to document what I have done or write short technical
> > notes. It really saves time for me  againts checking the grammar of
> > latex code. However, there is a problem when it comes to submiting
> > papers to journals. The equation part of the latex code exported by LyX
> > is really ugly and hard to read. I don't dare to send the file to any
> > journal directly but have to beautify it manually. I wonder if there is
> > a way to do the work automatically?  Thanks!.
>
> The journal actually cares what the latex code itself looks like, as
> opposed to what the document looks like? Sounds a bit odd . . .

They have to care about the code, because they may need to manually edit the
code before the publishing.

>
> Note that you don't have to use the math editor - you can write
> your equations in ERT.  That might be faster if you
> feel a need to rewrite them anyway.
>

The whole reason I am using lyx is that it saves me time when it comes to
equations. If I have to use ERT box, I would rather use emacs.

> * If you're good at latex, you just write the formula as latex in an ERT
box.
> * You may write the formula in the math editor, cut it and
>   paste into an ERT box. Then "beautify" it.
>
> You may want to try a web search for "latex pretty-printer",
> but it seems to mostly turn up programs that pretty-prints
> other programming languages in latex.

I did and got the same result. It is a little bit wierd. Latex is more or
less
like a programming language, but no one writes a beautifying script for it.
Is is possible to include the feature into LyX in the future?

>
> Helge Hafting
>
>

Reply via email to