emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Fabrice Popineau <fabrice.popineau@supelec.fr>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: LaTeX math mode and export
Date: Fri, 11 Oct 2013 17:43:41 +0200	[thread overview]
Message-ID: <87d2nb95jm.fsf@gmail.com> (raw)
In-Reply-To: <CAFgFV9P3uipQ-+2q3XF3iGDPDhMnu6mj7a0+c915OMSkuRghwQ@mail.gmail.com> (Fabrice Popineau's message of "Fri, 11 Oct 2013 11:13:17 +0200")

Hello,

Fabrice Popineau <fabrice.popineau@supelec.fr> writes:

> \[\begin{array}{c}
>   \begin{array}{|c|c|c|}
>     \hline
>     \delta_{1} & 0 &  1 \\
>     \hline
>     p & \{p, q\} & \{q\} \\
>     \hline
>     q & \{r\} & \{q, r\} \\
>     \hline
>     r & \{s\} & \{p\} \\
>     \hline
>     s & \{s\} & \{p\} \\
>     \hline
>   \end{array}
> \]

This isn't correct syntax: "\begin{array}{|c|c|c|}...\end{array}" is
parsed as a latex environment, so it breaks the paragraph you started
the line before. You can use "\begin{equation}" instead of "\[".

> - \(\min(x,y)\) , \(\max(x,y)\)
> - \(\operatorname{Prime}(x) = \left\{ \begin{array}{cl} 1 & \text{ if }
>   x \text{ is prime } \\ 0 & \text{ if } x \text{ is not prime }
> \end{array} \right. \)

The last line is not correctly indented: it doesn't belong to the last
item and therefore, the math snippets is not recognized.

> 2 - Quoting of {} may also happen in unwanted places. If I write a complex
> author line like :
>
> #+AUTHOR: \IEEEauthorblockN{Foo, Bar} \IEEEauthorblockA{ Somewhere\\ Over
> the Rainbow \\ Email: \{foo,bar\}@baz.fr } \and \IEEEauthorblockN{foobar}
> \IEEEauthorblockA{somewhere else \\ Email: foobar@baz.fr}

You cannot write raw non-math LaTeX in an Org buffer (unless it is also
an entity). You ought to use export snippets, i.e., @@latex:...@@.

> Another related question also : did anybody managed to hilghlight LaTeX
> equations inside org-mode ?

See `org-highlight-latex-and-related'.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2013-10-11 15:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-11  9:13 LaTeX math mode and export Fabrice Popineau
2013-10-11 15:43 ` Nicolas Goaziou [this message]
2013-10-11 22:03   ` Fabrice Popineau
2013-10-12  7:58     ` Nicolas Goaziou
2013-10-12  8:31       ` Nicolas Goaziou
2013-10-12 10:56       ` Suvayu Ali

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=87d2nb95jm.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fabrice.popineau@supelec.fr \
    /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).