From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: RFC: inheritance of export attributes Date: Thu, 21 Mar 2013 22:51:55 +0100 Message-ID: <87sj3o5slg.fsf@gmail.com> References: <87a9q0vtr7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UInP7-0004fv-Ud for emacs-orgmode@gnu.org; Thu, 21 Mar 2013 17:52:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UInP3-0005jN-42 for emacs-orgmode@gnu.org; Thu, 21 Mar 2013 17:52:09 -0400 Received: from mail-we0-x22b.google.com ([2a00:1450:400c:c03::22b]:46201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UInP2-0005jF-U1 for emacs-orgmode@gnu.org; Thu, 21 Mar 2013 17:52:05 -0400 Received: by mail-we0-f171.google.com with SMTP id d46so819709wer.2 for ; Thu, 21 Mar 2013 14:52:04 -0700 (PDT) In-Reply-To: <87a9q0vtr7.fsf@gmail.com> (Aaron Ecay's message of "Tue, 19 Mar 2013 01:33:16 -0400") 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: emacs-orgmode@gnu.org Hello, Aaron Ecay writes: > I have noticed a difficulty with :results table drawer babel blocks. It > isn=E2=80=99t possible to put ATTR_LATEX keywords on the table in that ca= se. If > they are placed outside of the drawer, they apply to the drawer and not > the table. If they are placed inside it, they will be deleted when the > block is reevaluated. What about evaluating it, inserting the attr_latex keyword, and then disabling evaluation for that block? > Would it be possible for ATTR_FOO attributes to be inherited by child > elements, so that this case would work? It would solve this problem, > and also allow things like: > > #+ATTR_LATEX: :width 200px > :DRAWER: > # several images, all of which should be 200 px wide > :END: > > I thought I would ask for comments, since this might break other things > in ways I=E2=80=99m not thinking of. I understand the interest for the problem at hand, but, generally speaking, I tend to think it could lead to confusion. Attributes inheritance is but a hack used to parametrize inline images, until we agree on a proper link syntax including its own attributes. Another way to solve the problem would be to let Babel generate attributes from source code with a specific keyword, e.g.: #+begin_src :results table :attr-latex ":align lll" ... #+end_src Regards, --=20 Nicolas Goaziou