From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: #+ATTR_LaTeX no longer honoured Date: Mon, 20 May 2013 10:05:33 +0800 Message-ID: <87r4h276du.fsf@ericabrahamsen.net> References: <8738tj85hx.fsf@ericabrahamsen.net> <87a9nq4spq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeFTy-00077w-CA for emacs-orgmode@gnu.org; Sun, 19 May 2013 22:05:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeFTt-0002z4-9R for emacs-orgmode@gnu.org; Sun, 19 May 2013 22:05:50 -0400 Received: from plane.gmane.org ([80.91.229.3]:60405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeFTs-0002yv-Qs for emacs-orgmode@gnu.org; Sun, 19 May 2013 22:05:45 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UeFTr-0004N6-2P for emacs-orgmode@gnu.org; Mon, 20 May 2013 04:05:43 +0200 Received: from 114.252.246.48 ([114.252.246.48]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 May 2013 04:05:43 +0200 Received: from eric by 114.252.246.48 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 May 2013 04:05:43 +0200 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 Nicolas Goaziou writes: > Hello, > > Eric Abrahamsen writes: > >> Paul Stansell writes: >> >>> Hello, >>> >>> I've noticed that #+ATTR_LaTeX seems to be no longer honoured (I'm >>> using release_8.0.3-133-ga5872) >>> >>> This is demonstrated for the attached org file. It's the exact >>> example from http://orgmode.org/manual/Images-in-LaTeX-export.html. >>> >>> I expect the exported latex file (C-c C-e l l) to contain something like >>> >>> \includegraphics[width=5cm,angle=90]{./dummy.png} >>> >>> but I instead it contains >>> >>> \includegraphics[width=.9\linewidth]{./dummy.png} >>> >>> Thanks, >>> >>> Paul >>> >>> PS. I'm using Emacs 24.2.1 and I tested with the minimal org-mode >>> set-up from http://orgmode.org/manual/Feedback.html. >> >> I won't even attempt to give an overview of how attribute syntax has >> changed/is changing, or explain why and how the manual is out of date, >> but while we're waiting for someone else to do that, here's the line >> you're looking for: >> >> #+ATTR_LaTeX: :width 5cm :options angle=90 > > The manual is up-to-date (sections about HTML and ODT export may lag > a bit behind), but the URL isn't. In particular, see: > > http://orgmode.org/org.html#LaTeX-specific-attributes > >> Very briefly, I think attributes that may be common to multiple backends >> are now given as eg :width or :height (with no equals sign before the >> value), while attributes that are rarer or likely backend-specific are >> stuffed into one :options attribute, with the keys/values written more >> literally. > > AFAIK, :options is specific to latex back-end. Common attributes are set > the usual way, i.e. with ":attribute value" syntax. Though it's > impossible to recognize them all. So :options is handy to add raw > arguments. > > Anyway, all attributes should be documented in the manual. Sure enough, I should have just stopped with the working example!