From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Help with beamer environments + org-special-blocks! Date: Wed, 26 Jun 2013 16:29:51 +0200 Message-ID: <87obatt068.fsf@gmail.com> References: <20130620080922.GA12128@panahar> <861u7pc723.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrqjT-0004ly-MZ for emacs-orgmode@gnu.org; Wed, 26 Jun 2013 10:30:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrqjR-0004Az-CX for emacs-orgmode@gnu.org; Wed, 26 Jun 2013 10:30:03 -0400 Received: from plane.gmane.org ([80.91.229.3]:53047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrqjR-0004AJ-6A for emacs-orgmode@gnu.org; Wed, 26 Jun 2013 10:30:01 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UrqjP-0000kv-N7 for emacs-orgmode@gnu.org; Wed, 26 Jun 2013 16:29:59 +0200 In-Reply-To: <861u7pc723.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 26 Jun 2013 15:53:08 +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: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hello, "Sebastien Vauban" writes: > Vikas Rawal wrote: >> For example, if I use the following: >> >> (add-to-list 'org-beamer-environments-extra >> '("textpos1" "w" "\\begin{textblock}%h \\visible %a {" "} \\end{textblock}")) >> >> and write the headline as {10}(3,3), I get \{10\}(3,3) in beamer >> export rather than {10}(3,3). I think we should changes some environment placeholders: + Introduce %r which would stand for the raw headline (without any processing) + %H and %U would use the raw headline text instead. The previous definition would become: '("textpos1" "w" "\\begin{textblock}%r \\visible %a {" "} \\end{textblock}") WDYT? > #+begin_myenvironment{3} \#+begin\_myenvironment\{3\} > Test of a new Test of a new > environment. environment. > #+end_myenvironment \#+end\_myenvironment This should work with a recent Org. There is also: #+attr_latex: :options {3} #+begin_myenvironment Test of a new environment #+end_myenvironment Regards, -- Nicolas Goaziou