From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel F Subject: Re: #+ATTR_LaTeX no longer honoured Date: Mon, 20 May 2013 22:05:09 +0400 Message-ID: References: <8738tj85hx.fsf@ericabrahamsen.net> <87a9nq4spq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae947303b60203904dd2a2cdf Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeUSX-0006aS-7m for emacs-orgmode@gnu.org; Mon, 20 May 2013 14:05:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeUSQ-0000hV-DU for emacs-orgmode@gnu.org; Mon, 20 May 2013 14:05:21 -0400 Received: from mail-la0-x22b.google.com ([2a00:1450:4010:c03::22b]:52094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeUSP-0000fo-VO for emacs-orgmode@gnu.org; Mon, 20 May 2013 14:05:14 -0400 Received: by mail-la0-f43.google.com with SMTP id ez20so5452687lab.2 for ; Mon, 20 May 2013 11:05:09 -0700 (PDT) In-Reply-To: <87a9nq4spq.fsf@gmail.com> 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 Cc: "emacs-orgmode@gnu.org Mode" --14dae947303b60203904dd2a2cdf Content-Type: text/plain; charset=ISO-8859-1 It's strange that you say that link is not up-to date (altho I can see that the version you've linked to is also linked from the main page), because it says here: http://orgmode.org/manual/index.html#Top > This manual is for Org version 8.0.3 (release_8.0.3). Is it possible to maybe put some sort of message that would say that the manual is outdated? On Mon, May 20, 2013 at 12:31 AM, Nicolas Goaziou wrote: > 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. > > > Regards, > > -- > Nicolas Goaziou > > -- Sincerely yours, -- Daniil --14dae947303b60203904dd2a2cdf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
It's strange that you say that link is not up-to = date (altho I can see that the version you've linked to is also linked = from the main page),
because it says here: http://orgmode.org/manual/index.html#Top

> This manual is for Org version 8.0.3 (release_8.0.3).

Is it possible to maybe put some sort of message that would say that the m= anual is outdated?


On Mon, May 20, 2013 at 12:31 AM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
Hello,

Eric Abrahamsen <
eric@ericabr= ahamsen.net> writes:

> Paul Stansell <paulstanse= ll@gmail.com> 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. =A0It's the ex= act
>> example from http://orgmode.org/manual/Images-in-LaTeX-ex= port.html.
>>
>> I expect the exported latex file (C-c C-e l l) to contain somethin= g like
>>
>> =A0 \includegraphics[width=3D5cm,angle=3D90]{./dummy.png}
>>
>> but I instead it contains
>>
>> =A0 \includegraphics[width=3D.9\linewidth]{./dummy.png}
>>
>> Thanks,
>>
>> Paul
>>
>> PS. I'm using Emacs 24.2.1 and I tested with the minimal org-m= ode
>> set-up from http://orgmode.org/manual/Feedback.html.
>
> I won't even attempt to give an overview of how attribute syntax h= as
> 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 th= e line
> you're looking for:
>
> #+ATTR_LaTeX: :width 5cm :options angle=3D90

The manual is up-to-date (sections about HTML and ODT export may lag<= br> a bit behind), but the URL isn't. In particular, see:

=A0 http://orgmode.org/org.html#LaTeX-specific-attributes

> Very briefly, I think attributes that may be common to multiple backen= ds
> are now given as eg :width or :height (with no equals sign before the<= br> > 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.


Regards,

--
Nicolas Goaziou




--
Sincerely= yours,
-- Daniil
--14dae947303b60203904dd2a2cdf--