From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: LaTeX export and LaTeX environment Date: Wed, 19 May 2010 08:57:40 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=45928 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEdDu-0007iu-Lc for emacs-orgmode@gnu.org; Wed, 19 May 2010 02:57:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEdDs-0004A8-Tg for emacs-orgmode@gnu.org; Wed, 19 May 2010 02:57:46 -0400 Received: from mail-ew0-f216.google.com ([209.85.219.216]:58422) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEdDs-00049w-Ox for emacs-orgmode@gnu.org; Wed, 19 May 2010 02:57:44 -0400 Received: by ewy8 with SMTP id 8so1941550ewy.8 for ; Tue, 18 May 2010 23:57:43 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ulf Stegemann Cc: emacs-orgmode@gnu.org On May 19, 2010, at 8:34 AM, Ulf Stegemann wrote: > With > > Org-mode version 6.36trans (release_6.36.80.gbdfd) > GNU Emacs 24.0.50.3 (i686-pc-linux-gnu, GTK+ Version 2.18.6) > > the LaTeX exporter seems to cease to work when encountering a LaTeX > environment. Suppose this minimal org file: > > --8<--------------------------snip-------------------------->8--- > > #+TITLE: Wrapping in Env > > /foo/ > > #+BEGIN_LaTeX > \begin{center} > #+END_LaTeX > > /bar/ > > #+BEGIN_LaTeX > \end{center} > #+END_LaTeX > > /baz/ > > --8<--------------------------snap-------------------------->8--- > > When exported to LaTeX the relevant part looks like this: > > --8<--------------------------snip-------------------------->8--- > > \emph{foo} > > \begin{center} > > /bar/ > > \end{center} > > \emph{baz} > > --8<--------------------------snap-------------------------->8--- > > As far as I can see, this happens only if an environment is defined in > the BEGIN/END_LaTeX blocks. Everything between such blocks is exported > literally. I'm pretty sure this once had worked but I'm not sure when > org stopped to export correctly. > > Ulf Hi Ulf, it has always been like this, check out this entire thread for work-arounds and other solutions http://thread.gmane.org/gmane.emacs.orgmode/12977 HTH - Carsten