From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [new exporter] latex: why does {{}} become \{\{\}\} ? Date: Wed, 17 Oct 2012 14:03:57 +0200 Message-ID: <87bog1nw42.fsf@gmail.com> References: <87lif6h1uk.fsf@ed.ac.uk> <87sj9edxyu.fsf@gmail.com> <80hapu85ib.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOSQS-0007js-PI for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 08:08:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOSQH-0000n8-OF for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 08:08:40 -0400 Received: from plane.gmane.org ([80.91.229.3]:54230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOSQH-0000mx-HU for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 08:08:29 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TOSQF-0002ss-Ja for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 14:08:27 +0200 In-Reply-To: <80hapu85ib.fsf@somewhere.org> (Sebastien Vauban's message of "Tue, 16 Oct 2012 23:35:24 +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: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hello, "Sebastien Vauban" writes: > Hello Nicolas, > > Nicolas Goaziou wrote: >> "Myles English" writes: >> >>> Can anyone tell me please why (in the examples below) {} exports fine >>> but {{}} exports as \{\{\}\} ? Am I meant to wrap these in >>> #+begin_latex blocks? >> >> You're writing LaTeX code in an Org buffer. This is only possible to >> a limited extent. In particular, these lines should indeed go within >> a LaTeX block. > > Within a LaTeX block (#+begin_latex) or within a Babel block for LaTeX > language (#+begin_src latex)? Do you make a difference? There's a big difference. #+begin_latex means "paste this code unmodified in the latex back-end, and only in the latex back-end". Nothing is evaluated. With a #+begin_src latex block, depending on :exports parameter, you can produce something (in this case, probably an image file) and create a link valid in any back-end, as long as it supports the file format. Both are possible. Regards, -- Nicolas Goaziou