emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Paul Stansell <paulstansell@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: fill paragraph: math and latex environments
Date: Tue, 02 Jul 2013 19:16:37 +0200	[thread overview]
Message-ID: <87zju4opai.fsf@gmail.com> (raw)
In-Reply-To: <loom.20130701T234359-945@post.gmane.org> (Paul Stansell's message of "Mon, 1 Jul 2013 21:45:32 +0000 (UTC)")

Hello,

Paul Stansell <paulstansell@gmail.com> writes:

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

>> Making \[...\] an element would mean that \[...\] cannot exist anymore
>> within a paragraph. I'm not sure it's worth it.
>> 
>> Also, I think it's good, in this case, to have both an inlined and
>> a non-inlined version for the same thing.
>
> In Lamport's book on Latex he explains that \[...\] is for display style
> maths, that is, for maths that is not inside a paragraph but presented on
> it's own line.  Inside a paragraph one should use $...$ or \(...\) as they
> are for inline equations (and Latex treats them the same).  For display
> style maths Latex uses
>
> \begin{displaymath}
>   ...
> \end{displaymath}
>
> and, for less typing,
>
> \[
>   ...
> \] 
>
> and both are treated the same, ie., both produce the exact same output in
> the processed latex document.
>
> This being the case, my wish would be to see org mode treat
>
> \[
>   ...
> \] 
>
> the same as
>
> \begin{displaymath}
>   ...
> \end{displaymath}
>
> and not fill past it's boundaries.

If we allow \[...\] constructs to be an element, they cannot be
recognized as such within paragraphs. So

  Some text \[1+1\] and some other text

will not be recognized anymore, even though any latex editing mode
supports it. Again, I think it's not worth loosing it.

Also, using \begin{...}...\end{...} environments is not really an issue
with editing facilities in Emacs (e.g., yasnippets).


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2013-07-02 17:16 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
2012-09-19 13:03     ` Nicolas Goaziou
2013-07-01 21:45       ` Paul Stansell
2013-07-02 17:16         ` Nicolas Goaziou [this message]
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=87zju4opai.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=paulstansell@gmail.com \
    /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).