emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: azw@fastmail.fm (Albert Z. Wang)
To: emacs-orgmode@gnu.org
Subject: Re: fill paragraph: math and latex environments
Date: Mon, 17 Sep 2012 20:37:10 -0400	[thread overview]
Message-ID: <874nmwrwsp.fsf@gmail.com> (raw)
In-Reply-To: 878vc8h33x.fsf@gmail.com

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Hello,
>
> azw@fastmail.fm (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	other threads:[~2012-09-18  0:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-17 16:14 fill paragraph: math and latex environments Albert Z. Wang
2012-09-17 19:16 ` Nicolas Goaziou
2012-09-18  0:37   ` Albert Z. Wang [this message]
2012-09-19 13:03     ` Nicolas Goaziou
2013-07-01 21:45       ` Paul Stansell
2013-07-02 17:16         ` Nicolas Goaziou
2013-07-03 14:38           ` Paul Stansell
2013-07-03 19:50             ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874nmwrwsp.fsf@gmail.com \
    --to=azw@fastmail.fm \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).