From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Federico Beffa <beffa@ieee.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: wrong interpretation of LaTeX [8.2.6 (8.2.6-47-ge3d2c1-elpa @ c:/Users/beffa/.emacs.d/elpa/org-20140526/)]
Date: Fri, 25 Jul 2014 20:32:08 +0200 [thread overview]
Message-ID: <87fvhpjnmf.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAKrPhPO_yCOSE3uQcGAMscHXqa1qtBro=R-mcfSTtGvwTxaf3A@mail.gmail.com> (Federico Beffa's message of "Fri, 25 Jul 2014 15:04:08 +0200")
Hello,
Federico Beffa <beffa@ieee.org> writes:
> According to the LaTeX manual and reference "LaTeX: A Document
> Preparation System", L. Lamport, \[ ... \] is a short form for a
> displaymath environment. Citing the reference:
> "... Because displayed equations are used so frequently in
> mathematics, LaTeX allows you to type \[ ... \] instead of
> \begin{displaymath} ... \end{displaymath}. ..."
>
> However, org-mode classify \[ ... \] as a latex-fragment, the same as
> \(...\). The two are however very different in LaTeX because, while
> the latter displays some mathematical expression *inline*, the former
> makes its content stand out by putting it on *its own line*.
AFAIK, LaTeX allows to inline "\[...\]" constructs, so something like
Some \[1+1\] text
is perfectly valid. Thus, I think we need to support them.
The other thing to consider is that having the same syntax for an inline
and a non-inline element could introduce some bugs (e.g. when filling
a paragraph).
OTOH, allowing inline \[...\] is pretty harmless.
> What I do not like about this is that "org-fill-paragraph" considers
> the \[ ...\] environment part of a paragraph and therefore the
> environment gets "lost" in the middle of a line.
This is a minor annoyance, indeed. However, you can use the verbose form
in this case (i.e., "\begin{displaymath}").
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2014-07-25 18:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-25 13:04 Bug: wrong interpretation of LaTeX [8.2.6 (8.2.6-47-ge3d2c1-elpa @ c:/Users/beffa/.emacs.d/elpa/org-20140526/)] Federico Beffa
2014-07-25 18:32 ` Nicolas Goaziou [this message]
2014-07-25 20:39 ` Federico Beffa
2014-07-26 8:26 ` Nicolas Goaziou
2014-07-26 9:20 ` Federico Beffa
2014-07-27 9:27 ` Federico Beffa
2014-07-27 16:46 ` Nicolas Goaziou
2014-07-28 11:16 ` Federico Beffa
2014-07-28 12:03 ` Nicolas Goaziou
2014-07-27 11:36 ` Bastien
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fvhpjnmf.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=beffa@ieee.org \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.