From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Confusion about attr_latex and new exporter Date: Tue, 19 Mar 2013 19:49:43 +0100 Message-ID: <87zjxzp6dk.fsf@bzg.ath.cx> References: <87k3p4vvo9.fsf@gmail.com> <87ehfcvuyq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI1gY-0002p6-SG for emacs-orgmode@gnu.org; Tue, 19 Mar 2013 14:55:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UI1gS-0002Kf-4I for emacs-orgmode@gnu.org; Tue, 19 Mar 2013 14:54:58 -0400 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:65116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI1gR-0002K5-TA for emacs-orgmode@gnu.org; Tue, 19 Mar 2013 14:54:52 -0400 Received: by mail-wi0-f181.google.com with SMTP id hm6so907407wib.8 for ; Tue, 19 Mar 2013 11:54:51 -0700 (PDT) In-Reply-To: (John Hendy's message of "Tue, 19 Mar 2013 09:49:17 -0500") 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: John Hendy Cc: emacs-orgmode , "Thomas S. Dye" 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. 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