From mboxrd@z Thu Jan 1 00:00:00 1970 From: cberry@tajo.ucsd.edu Subject: Re: [new exporter] latex: why does {{}} become \{\{\}\} ? Date: Sun, 21 Oct 2012 12:14:01 -0700 Message-ID: <87r4oreiyu.fsf@tajo.ucsd.edu> 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 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:32803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQ0yT-0002PM-KY for emacs-orgmode@gnu.org; Sun, 21 Oct 2012 15:14:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQ0yS-0005xo-Jo for emacs-orgmode@gnu.org; Sun, 21 Oct 2012 15:14:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:59928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQ0yS-0005xg-Ck for emacs-orgmode@gnu.org; Sun, 21 Oct 2012 15:14:12 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TQ0yX-0007Li-0V for emacs-orgmode@gnu.org; Sun, 21 Oct 2012 21:14:17 +0200 Received: from tajo.ucsd.edu ([137.110.122.165]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Oct 2012 21:14:17 +0200 Received: from cberry by tajo.ucsd.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Oct 2012 21:14: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: emacs-orgmode@gnu.org Charles Berry writes: NEVER MIND. I just restarted my emacs and the export went as it should without the offending \begin{latex} \end{latex} lines. Likely someting weird in my setup caused this. Sorry for the noise. Chuck > 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