From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: LaTeX math mode and export Date: Fri, 11 Oct 2013 17:43:41 +0200 Message-ID: <87d2nb95jm.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUesW-0001kU-5w for emacs-orgmode@gnu.org; Fri, 11 Oct 2013 11:43:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUesR-00009a-At for emacs-orgmode@gnu.org; Fri, 11 Oct 2013 11:43:48 -0400 Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:64813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUesR-00009P-33 for emacs-orgmode@gnu.org; Fri, 11 Oct 2013 11:43:43 -0400 Received: by mail-we0-f172.google.com with SMTP id q58so4358090wes.17 for ; Fri, 11 Oct 2013 08:43:41 -0700 (PDT) In-Reply-To: (Fabrice Popineau's message of "Fri, 11 Oct 2013 11:13:17 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Fabrice Popineau Cc: "emacs-orgmode@gnu.org" Hello, Fabrice Popineau 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