From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: Re: [new exporter] latex: why does {{}} become \{\{\}\} ? Date: Sun, 21 Oct 2012 18:47:04 +0000 (UTC) Message-ID: References: <87lif6h1uk.fsf@ed.ac.uk> <87sj9edxyu.fsf@gmail.com> <80hapu85ib.fsf@somewhere.org> <87bog1nw42.fsf@gmail.com> <80ipa6vcgw.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQ0YU-0006bV-ES for emacs-orgmode@gnu.org; Sun, 21 Oct 2012 14:47:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQ0YT-0008F3-FF for emacs-orgmode@gnu.org; Sun, 21 Oct 2012 14:47:22 -0400 Received: from plane.gmane.org ([80.91.229.3]:53107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQ0YT-0008Ez-8Y for emacs-orgmode@gnu.org; Sun, 21 Oct 2012 14:47:21 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TQ0YU-0003l0-4I for emacs-orgmode@gnu.org; Sun, 21 Oct 2012 20:47:22 +0200 Received: from adsl-69-224-123-188.dsl.sndg02.pacbell.net ([69.224.123.188]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Oct 2012 20:47:22 +0200 Received: from ccberry by adsl-69-224-123-188.dsl.sndg02.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Oct 2012 20:47:22 +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: emacs-orgmode@gnu.org Sebastien Vauban writes: > > 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. I guess I do not understand. Using git pull today, (org-export-to-buffer 'e-latex "scratch.tex") exports this #+begin_latex \begin{displaymath} \mbox{a}=\frac{b}{1 + c} \end{displaymath} #+end_latex as this \begin{latex} \begin{displaymath} \mbox{a}=\frac{b}{1 + c} \end{displaymath} \end{latex} So how do I get rid of the enclosing lines: \begin{latex} \end{latex} ?? Chuck > > > > 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 >