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}")

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,

Sebastien Vauban

Reply via email to