[texhax] Plain TeX: a question about \par before and after displayed equations

Toby Cubitt tsc25 at cantab.net
Mon Oct 13 00:09:40 CEST 2008


Rodolfo Medina wrote:
[snip]
> Toby Cubitt <tsc25 at cantab.net> writes:
> 
>> I use AUCTeX 11.85, and M-q fills paragraphs correctly for me even
>> *without* the surrounding %'s. I.e.
>>
>> bla bla bla
>> $$x = y$$
>> bla bla <hit M-q>
> 
> 
> Also when the displayed equation is longer than only one line, say two or more
> lines?

Ah, interesting. It works for the text preceding the equation, but not
for the succeeding text. So:

bla bla
bla <M-q>
$$ long equation
= over two lines$$
bla bla
bla

becomes:

bla bla bla
$$ long equation
= over two lines$$
bla bla
bla

but:

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

If I use a blank commented line between the equation and text, it works
again:

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

In my opinion, this is a minor bug in AUCTeX's paragraph fill settings,
so maybe you should report it to them.

Toby


More information about the texhax mailing list