emacs-orgmode
[Top][All Lists]

## Re: [O] fill paragraph: math and latex environments

 From: Albert Z. Wang Subject: Re: [O] fill paragraph: math and latex environments Date: Mon, 17 Sep 2012 20:37:10 -0400 User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2 (gnu/linux)

Nicolas Goaziou <address@hidden> writes:

> Hello,
>
> address@hidden (Albert Z. Wang) writes:
>
>> I've just recently been having an issue I was wondering if anybody
>> could help with, namely, that fill-paragraph does not seem to work as
>> expected.
>>
>> For display math equations delimited as
>> $>> a^2 + b^2 = c^2 >>$
>> the equation gets folded inline -- seems to work fine with explicit
>> environments though ( \begin{equation*}...\end{equation*} ).  Has
>> anybody else experienced this?  Tweaking paragraph-start and
>> paragraph-separate do not seem to be doing the trick...
>
> Yes, $...$ constructs are considered as inline objects (they belong to
> a paragraph, so they will be filled along with the paragraph). On the
> other hand, \begin{equation*} environments are full-fledged elements:
> they do not belong to a paragraph and are not filled.

Thanks for the clarification!  Is there an easy way to have them be
treated as full-fledged environments?  I usually prefer to use the above
for unnumbered display equations since it reduces visual clutter and
looks closer to the intent.

I've noticed that adding "\\\\\$" and "\\\\\$" to
org-element-paragraph-separate will prevent complete inlining, but that
the newline after the mark will be removed, which makes the formatting a
little less clear.  Is it possible to treat $...$ as full-fledged
unnumbered equation environments?  My own understanding of how the
parser works is insufficient to the task of changing its behavior
here...

It's not a very big deal, but if there's an easy way to accomplish this
I'd appreciate any help.

Thanks,

--Albert



reply via email to