From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Confusion about attr_latex and new exporter Date: Wed, 20 Mar 2013 12:17:30 -0500 Message-ID: References: <87k3p4vvo9.fsf@gmail.com> <87ehfcvuyq.fsf@gmail.com> <87zjxzp6dk.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIMdp-0007Mj-Ip for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 13:17:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIMdn-0003WQ-M0 for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 13:17:33 -0400 Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:46744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIMdn-0003WK-AA for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 13:17:31 -0400 Received: by mail-la0-f45.google.com with SMTP id er20so3369630lab.4 for ; Wed, 20 Mar 2013 10:17:30 -0700 (PDT) In-Reply-To: <87zjxzp6dk.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode , "Thomas S. Dye" On Tue, Mar 19, 2013 at 1:49 PM, Bastien wrote: > Hi John, > > John Hendy writes: > >> Thanks for the clarification, though regardless of the current >> state... what is the consensus on what it *should* be? The old lingo >> was: >> - #+attr_latex: width=Xcm >> - #+attr_html: width="Xpx" > > ... and the new lingo is > > #+attr_latex: :width Xcm > #+attr_html: :width Xpx > > for images. Images allow :width :height :alt attributes, while other > elements like links and tables allow only the :options attribute. Upon fresh pull to Org-mode version 8.0-pre (release_8.0-pre-146-g73fe0a), I confirm that =#+attr_html: :width value= works as described above. Thanks! John > > I updated ox-html.el so that it respects this syntax. > > Nicolas, would it be okay to make > > (org-export-read-attribute :attr_html element) > > return "title=\"Title\"" instead of nil when the element's attributes > are like this > > #+attr_html: title="Title" > > ? > > Thanks, > > -- > Bastien