From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Gray Subject: Re: markup in environments in latex export Date: Wed, 06 May 2009 16:01:56 +0200 Message-ID: <86hbzyfhyj.fsf@portan.ibr.cs.tu-bs.de> References: <86iql57zkh.fsf@portan.ibr.cs.tu-bs.de> <8663h47njt.fsf@portan.ibr.cs.tu-bs.de> <550FAA9A-10B7-4DED-A712-77D381F68748@gmail.com> <87r5zoo1uf.fsf@gmail.com> <9FAD8E9F-E4CD-4B9D-B4D3-8777EE965B0D@gmail.com> <867i0xs3s4.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 1M1hhW-00084j-Mc for emacs-orgmode@gnu.org; Wed, 06 May 2009 10:02:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1hhS-00081b-2k for emacs-orgmode@gnu.org; Wed, 06 May 2009 10:02:22 -0400 Received: from [199.232.76.173] (port=39396 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1hhR-00081W-T9 for emacs-orgmode@gnu.org; Wed, 06 May 2009 10:02:17 -0400 Received: from main.gmane.org ([80.91.229.2]:50713 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 1M1hhR-0002IO-4K for emacs-orgmode@gnu.org; Wed, 06 May 2009 10:02:17 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M1hhK-000769-0F for emacs-orgmode@gnu.org; Wed, 06 May 2009 14:02:10 +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 ; Wed, 06 May 2009 14:02:09 +0000 Received: from chrismgray by portan.ibr.cs.tu-bs.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 May 2009 14:02:09 +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 Hi Carsten, You can find the commit in the special-blocks branch of my github repository. I've tested exporting both LaTeX and HTML. Cheers, Chris Carsten Dominik wrote: > On May 4, 2009, at 9:52 AM, Chris Gray wrote: >> Hi Carsten, >> That seems like a good solution. I will work on it and test it over >> the >> next couple of days and let you know when it is ready. Do you have >> any >> preference for the name of the file? > Hard to find a good name > org-block2env.el > org-anyblock.el > I don't know, your call. >> BTW, I also have signed and sent the copyright papers. I don't know >> if >> that's necessary for a contrib package, but now it's done... > It is not necessary for a contrib package, but it will be good to have > anyway. Maybe this add-on will move into the core distro eventually > (turned off by default), or maybe you will contribute other patches. > Thanks. > - Carsten >> Cheers, >> Chris >> Carsten Dominik wrote: >>> Hi Chris, >>> I have been pondering about this idea, and I prefer to not integrate >>> it into the Org core because I think it may lead to undesired >>> behavior, >>> in particular in the other backends like docbook or ASCII. >>> However, I have just created three new hooks >>> * org-exp.el (org-export-preprocess-after-blockquote-hook): >>> New hook. >>> (org-export-preprocess-string): Run the new hook. >>> * org-latex.el (org-export-latex-after-blockquotes-hook): New >>> hook. >>> (org-export-latex-preprocess): Run the new hook. >>> * org-html.el (org-export-html-after-blockquotes-hook): New hook. >>> (org-export-as-html): Run the new hook. >>> which would allow to easily implement your idea as an add-on package >>> that we could include in the contrib directory. Would you like to >>> reformulate your patch into a small add-on? The only thing I would >>> like to ask is to keep it LaTeX/HTML-specific, and this means that >>> the action to turn #+begin_..... into the cookies should be wrapped >>> into >>> (when (or latexp htmlp) >>> ....... >>> ) >>> latexp and htmlp are a local variables available when the >>> first of the three hooks is run. >>> - Carsten >> _______________________________________________ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --