From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Custom latex environments using properties Date: Tue, 30 Aug 2011 11:35:58 +0530 Message-ID: <81k49vtovt.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyHTZ-00079B-DL for emacs-orgmode@gnu.org; Tue, 30 Aug 2011 02:07:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QyHTY-00036p-Jg for emacs-orgmode@gnu.org; Tue, 30 Aug 2011 02:07:09 -0400 Received: from mail-pz0-f44.google.com ([209.85.210.44]:52663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyHTY-00036j-E2 for emacs-orgmode@gnu.org; Tue, 30 Aug 2011 02:07:08 -0400 Received: by pzk36 with SMTP id 36so11354054pzk.17 for ; Mon, 29 Aug 2011 23:07:07 -0700 (PDT) In-Reply-To: (suvayu ali's message of "Tue, 30 Aug 2011 00:52:05 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: suvayu ali Cc: org-mode mailing list suvayu ali writes: Suvayu > Hi everyone, > > I am trying to implement a way to wrap a custom latex environment > around a sub-tree where I specify the environment and its options as a > PROPERTY. I am expecting it to work as BEAMER_env or BEAMER_envargs > works for org-beamer export. Not strictly answering your question. But is tangentially related ... The excerpt pasted below is from org-special-blocks.el. I am not much familiar with LaTeX. I hope these special blocks could be used for achieving the desired resutls. Also there is a way to wrap a block of text in custom divs in case of HTML exporter. ,---- | ;; This package generalizes the #+begin_foo and #+end_foo tokens. | | ;; To use, put the following in your init file: | ;; | ;; (require 'org-special-blocks) | | ;; The tokens #+begin_center, #+begin_verse, etc. existed previously. | ;; This package generalizes them (at least for the LaTeX and html | ;; exporters). When a #+begin_foo token is encountered by the LaTeX | ;; exporter, it is expanded into \begin{foo}. The text inside the | ;; environment is not protected, as text inside environments generally | ;; is. When #+begin_foo is encountered by the html exporter, a div | ;; with class foo is inserted into the HTML file. It is up to the | ;; user to add this class to his or her stylesheet if this div is to | ;; mean anything. `----