From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [new exporter] latex: why does {{}} become \{\{\}\} ? Date: Fri, 19 Oct 2012 15:05:35 +0200 Message-ID: <80ipa6vcgw.fsf@somewhere.org> References: <87lif6h1uk.fsf@ed.ac.uk> <87sj9edxyu.fsf@gmail.com> <80hapu85ib.fsf@somewhere.org> <87bog1nw42.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Nicolas, Nicolas Goaziou wrote: > "Sebastien Vauban" >> 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. I realize having taken the bad habit of only using #+begin_src latex blocks even for code that only matters for the LaTeX back-end (such as TikZ decorations). By carefully using the Babel options, it comes down to the same effect/behavior, but, OK, that's NOT the Right Way To Do! Best regards, Seb -- Sebastien Vauban