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 16:46:13 +0200 Message-ID: <4BAF43C3-C370-4134-A3BE-B3F0D4EF98BB@gmail.com> References: <4BF439F0.3030307@comcast.net> <5859BB7B-CDBB-4E2E-BB4E-5308AB734C5D@gmail.com> <86y6eyyhwo.fsf@portan.ibr.cs.tu-bs.de> 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=40803 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJUIi-0001n3-Ot for emacs-orgmode@gnu.org; Tue, 01 Jun 2010 12:26:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJUIh-0004Ii-6a for emacs-orgmode@gnu.org; Tue, 01 Jun 2010 12:26:48 -0400 Received: from mail-ew0-f216.google.com ([209.85.219.216]:42137) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJUIh-0004IT-1Y for emacs-orgmode@gnu.org; Tue, 01 Jun 2010 12:26:47 -0400 Received: by ewy8 with SMTP id 8so1263659ewy.8 for ; Tue, 01 Jun 2010 09:26:46 -0700 (PDT) In-Reply-To: <86y6eyyhwo.fsf@portan.ibr.cs.tu-bs.de> 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: Chris Gray Cc: emacs-orgmode@gnu.org On Jun 1, 2010, at 3:57 PM, Chris Gray wrote: > Carsten Dominik wrote: > >> 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. > > Hi Carsten, > > I actually needed this yesterday, so I'll make a patch and try to send > it in the next couple of days. > > Should anything be done for the HTML exporter if there are arguments? Hi Chris I can't think of anything useful - unless we do something like #+begin_xxx -largs "{aa}[bb]{cc}" -hargs "aa=\"xxx\" bb=\"uuu\"" and then use the largs for LaTeX and the hargs as additional attributes in the HTML div. But right now I don't see many applications for this in HTML, so I am not sure it is worth the trouble. Maybe just ignore these additional arguments, or put them as a string into some special attribute like
so that some javascript hacker can do something with these arguments. I am not sure what the right cause of action is, and I would be happy already with a patch that attaches the rest of the line in LaTeX and throws it away in HTML. I am starting to think we should have this package in the core - can I get you to sign the papers with the FSF for your contributions to Org-mode? Instructions are here: http://orgmode.org/worg/org-contribute.php Cheers - Carsten