bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-AUCTeX] Re: Filling paragraphs with double dollar displayed math


From: Rodolfo Medina
Subject: [Bug-AUCTeX] Re: Filling paragraphs with double dollar displayed math
Date: Sat, 15 Nov 2008 02:34:09 +0000
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.0.50 (gnu/linux)

Rodolfo Medina (2008-11-13) writes:

>>>> The problem only occurs when the displayed equation is two or more lines
>>>> long, and only for the text succeding the equation, not for the preceding
>>>> text.  So:
>>
>>>> bla bla bla
>>>> $$ long equation
>>>> = over two lines$$
>>>> bla bla <M-q>
>>>> bla
>>>>
>>>> becomes:
>>>>
>>>> bla bla bla
>>>> $$ long equation
>>>> = over two lines$$ bla bla bla


Ralf Angeli <address@hidden> writes:

>>> This is not easy to fix.  How about writing it like this?
>>>
>>> bla bla bla
>>> $$
>>> long equation
>>> = over two lines
>>> $$
>>> bla bla
>>> bla



Rodolfo:

>> Thanks for the suggestion.  But why is it so hard?  After all, the problem
>> does not exist for the text preceding the equation.



Ralf:

> In case of the preceding text it is easy to find the paragraph boundary
> because there is a line starting with $$.  Determination of paragraph
> starts or separators usually works by looking at the start of a line.
> In AUCTeX there is also code that looks at the end of a line, but this
> is only used in LaTeX mode.  Plain TeX mode relies on Emacs facilities
> for filling.


Do you mean that in LaTeX mode the problem would be solved?  Then I can switch
to LaTeX mode even if the file is written in plain TeX.  But I did: `M-x
LaTeX-mode RET' but the problem persists.

Rodolfo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]