Re: [preview-latex-devel] rel-0-7-3; New lines in $...$ are lost
Jan-Ake Larsson <jalar <at> mai.liu.se>
2002-10-21 07:45:00 GMT
Alexander Klimov wrote:
> Almost, but them are separators, that is $x \aprox y$ could not be changed
> to $x\aproxy$, but to ugly $x\aprox{}y$. Nevermind, the real trouble is
> that I am not the only working on the document and other authors have no
> reason to write math in less readable way.
Ah. Of course, you can convince _them_ to use preview-latex also
Under the "Options" menu, there is a checkbox "Truncate long lines in
this buffer". I presume this is turned off? (truncate-lines is the
variable, type M-x customize-variable RET truncate-lines RET, turn it
off.)
I have made some trials, and it works beautifully here. (Actually,
there is a difference between xemacs (21.1.13) and emacs (21.2.1)
because xemacs displays images twice if the line is broken in the
middle of the image, whereas in emacs the images are displayed only
once.)
> The idea is to substitute `$..\n..$' with `<image>\n'
Yes. Unfortunately, it will take some work to do this (if it even is
possible). preview-latex only "hides" text behind images as it is
implemented today. David will get back soon, he has more info on this,
but to me it sounds as if a new implementation of latex-fill-paragraph
is needed, so you can get textmath filled to your liking. (The old one
is buggy anyway, opening previews when it is not needed.) But a) a lot
of work is needed and b) it is really a part of AUC TeX.
If your substitution is possible, a number of questions remain:
(Continue reading)