From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: Special blocks with options in LaTeX export Date: Thu, 30 Jul 2015 10:50:26 +0200 Message-ID: <868u9yhvvx.fsf@example.com> References: <20150628112350.GC24926@chitra.no-ip.org> <87pp4gnk86.fsf@gmx.us> 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 Rasmus writes: > Suvayu Ali writes: >> I am trying to export special blocks with options. But it seems the >> options part is being ignored completely. I expect the following: >> >> #+begin_aside :options {Combinatorial background} >> It is all random! >> #+end_aside >> >> to be exported as: >> >> \begin{aside}{Combinatorial background} >> It is all random! >> \end{aside} >> >> However what I get is without the extra argument to the environment. >> >> Am I missing something, or is this a bug? > > #+attr_latex: :options test > > #+begin_aside > random > #+end_aside I think Suvayu uncovers something interesting: how do we give a "title" to such an admonition (note, warning, tip, sidebar, etc.)? If we want to export our document to multiple backends, we would be forced to have: --8<---------------cut here---------------start------------->8--- #+attr_html: :options {By the way...} #+attr_latex: :options {By the way...} #+attr_odt: :options {By the way...} #+begin_note This is a useful note (with a title). #+end_note --8<---------------cut here---------------end--------------->8--- Wouldn't it make more sense to get the title as part of the admonition, as Suvayu tried it in his OP? --8<---------------cut here---------------start------------->8--- #+begin_note :options {By the way...} This is a useful note (with a title). #+end_note --8<---------------cut here---------------end--------------->8--- Best regards, Seb -- Sebastien Vauban