From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Gray Subject: Re: markup in environments in latex export Date: Thu, 16 Apr 2009 15:09:26 +0200 Message-ID: <8663h47njt.fsf@portan.ibr.cs.tu-bs.de> References: <86iql57zkh.fsf@portan.ibr.cs.tu-bs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LuRLg-0002Zk-IV for emacs-orgmode@gnu.org; Thu, 16 Apr 2009 09:09:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LuRLb-0002Z3-QD for emacs-orgmode@gnu.org; Thu, 16 Apr 2009 09:09:48 -0400 Received: from [199.232.76.173] (port=57353 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LuRLb-0002Z0-Mu for emacs-orgmode@gnu.org; Thu, 16 Apr 2009 09:09:43 -0400 Received: from main.gmane.org ([80.91.229.2]:49885 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LuRLb-0008ET-4x for emacs-orgmode@gnu.org; Thu, 16 Apr 2009 09:09:43 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LuRLX-0008Hk-Ku for emacs-orgmode@gnu.org; Thu, 16 Apr 2009 13:09:39 +0000 Received: from portan.ibr.cs.tu-bs.de ([134.169.34.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Apr 2009 13:09:39 +0000 Received: from chrismgray by portan.ibr.cs.tu-bs.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Apr 2009 13:09:39 +0000 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: emacs-orgmode@gnu.org Carsten Dominik wrote: > Hi Chris, > you can't have the cake and eat it. > if you insert a LaTeX environment, the entire environment > will be protected. After all, you rely on this quoting with your > itemize environment! Hi Carsten, I don't really understand this. I can see it for things like the verbatim environment, but that might be a special case. > However, you can do this: > #+begin_center I should have chosen a different example I suppose. What I am really using, rather than center, are the theorem, lemma, and proof environments. I thought it would be safer for my example to use an environment that is included by default in LaTeX. Unfortunately, center is already a special case in org. But I tried #+begin_proof and that did not work. > This works by the protection being done first, and only > then #+begin_center is turned into \begin{center} Perhaps that could be generalized so that #+begin_foo means "do the regular org parsing and then turn on \begin{foo}"? Other exporters would be free to ignore these commands. I really like doing my work in org mode, and I can certainly convert my markup commands to regular LaTeX, but doing that really seems like a second-best solution. Cheers, Chris