From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Bug: LaTeX export and LaTeX environment Date: Tue, 1 Jun 2010 15:42:58 +0200 Message-ID: <5859BB7B-CDBB-4E2E-BB4E-5308AB734C5D@gmail.com> References: <4BF439F0.3030307@comcast.net> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=43289 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJRkH-0002zv-Dv for emacs-orgmode@gnu.org; Tue, 01 Jun 2010 09:43:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJRkF-0003Gm-Ss for emacs-orgmode@gnu.org; Tue, 01 Jun 2010 09:43:05 -0400 Received: from mail-ew0-f216.google.com ([209.85.219.216]:58906) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJRkF-0003Gb-Lz for emacs-orgmode@gnu.org; Tue, 01 Jun 2010 09:43:03 -0400 Received: by ewy8 with SMTP id 8so1215040ewy.8 for ; Tue, 01 Jun 2010 06:43:02 -0700 (PDT) In-Reply-To: <4BF439F0.3030307@comcast.net> 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: Mark Elston Cc: emacs-orgmode@gnu.org On May 19, 2010, at 9:20 PM, Mark Elston wrote: > Ulf, Carsten, > > > On 5/19/2010 12:27 AM, Ulf Stegemann wrote: >> Hi Carsten, >> >> Carsten Dominik wrote: >> >>> On May 19, 2010, at 8:34 AM, Ulf Stegemann wrote: >>> >>>> ... >>>> the LaTeX exporter seems to cease to work when encountering a LaTeX >>>> environment. >>> >>> 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 >> >> I must have been blind, thanks for the pointer! It works like a charm >> with org-special-blocks. >> >> Ulf > > I have not looked into the contrib directory lately (for quite a > while, > actually) so was not aware of the org-special-blocks stuff. This is > pretty cool and *almost* what I was about to ask for as well. > > The only problem I have with it is I need (for specific > environments) to > pass a parameter to the \begin{xxx} call on latex export. I think > what > is there is a more than adequate basis for what I am looking to do > and I > will add my stuff to it and try it out. > > My question is: Is there a preferred way of doing this? I can do a > local enhancement that hard-codes what I am trying to do but would > prefer to do this is a more open-ended (even elegant) way. At the > end of the day it simply has to work. But I would prefer doing it > "right." :) Hi Mark, several environments already to accept parameters, and in all cases it is done by just listing the arguments after the begin statement, separated by spaces. So what you could implement is that if a user writes #+begin_xxx {aa}[bb]{cc} that org-special-blocks will then create \begin{xxx}{aa}[bb]{cc} I think we must ask for the space, to make sure that all old code will work. A patch to org-special-blocks for this goal would be very useful, I think. - Carsten > > Mark > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten