From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Help with beamer environments + org-special-blocks! Date: Thu, 27 Jun 2013 12:03:52 +0200 Message-ID: <864ncj50qf.fsf@somewhere.org> References: <20130620080922.GA12128@panahar> <861u7pc723.fsf@somewhere.org> <87obatt068.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello Nicolas, Nicolas Goaziou wrote: > "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? I'm not sure to understand. Where would he put his options? Directly on the heading line, with no "text", then? Something like this: --8<---------------cut here---------------start------------->8--- ** {10}(3,3) :textpos1: Contents to position at some (x,y) coordinates... --8<---------------cut here---------------end--------------->8--- >> #+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. What do you call a recent Org? I'm blocked on commit 26a9b02, from May 27th, as long as the #+SETUPFILE: bug is not fixed (fontification is broken). So, is that one (4 weeks old) a recent Org? > There is also: > > #+attr_latex: :options {3} > #+begin_myenvironment > Test of a new > environment > #+end_myenvironment Aahh! I wasn't aware (enough) of that way to pass my arguments to my own environments. Thanks a lot, that works like a charm! Best regards, Seb -- Sebastien Vauban