* #+ATTR_LaTeX no longer honoured @ 2013-05-19 11:18 Paul Stansell 2013-05-19 13:27 ` Eric Abrahamsen 0 siblings, 1 reply; 7+ messages in thread From: Paul Stansell @ 2013-05-19 11:18 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 582 bytes --] 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. [-- Attachment #2: attr_latex.org --] [-- Type: application/octet-stream, Size: 230 bytes --] #+CAPTION: The black-body emission of the disk around HR 4049 #+LABEL: fig:SED-HR4049 #+ATTR_LaTeX: width=5cm,angle=90 [[./dummy.png]] #+ATTR_LaTeX: width=0.38\textwidth wrap placement={r}{0.4\textwidth} [[./dummy.png]] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: #+ATTR_LaTeX no longer honoured 2013-05-19 11:18 #+ATTR_LaTeX no longer honoured Paul Stansell @ 2013-05-19 13:27 ` Eric Abrahamsen 2013-05-19 20:31 ` Nicolas Goaziou 2013-05-23 19:42 ` Paul Stansell 0 siblings, 2 replies; 7+ messages in thread From: Eric Abrahamsen @ 2013-05-19 13:27 UTC (permalink / raw) To: emacs-orgmode Paul Stansell <paulstansell@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. 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 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. More than that I can't venture... Eric ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: #+ATTR_LaTeX no longer honoured 2013-05-19 13:27 ` Eric Abrahamsen @ 2013-05-19 20:31 ` Nicolas Goaziou 2013-05-20 2:05 ` Eric Abrahamsen 2013-05-20 18:05 ` Daniel F 2013-05-23 19:42 ` Paul Stansell 1 sibling, 2 replies; 7+ messages in thread From: Nicolas Goaziou @ 2013-05-19 20:31 UTC (permalink / raw) To: Eric Abrahamsen; +Cc: emacs-orgmode Hello, Eric Abrahamsen <eric@ericabrahamsen.net> writes: > Paul Stansell <paulstansell@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. 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: #+ATTR_LaTeX no longer honoured 2013-05-19 20:31 ` Nicolas Goaziou @ 2013-05-20 2:05 ` Eric Abrahamsen 2013-05-20 18:05 ` Daniel F 1 sibling, 0 replies; 7+ messages in thread From: Eric Abrahamsen @ 2013-05-20 2:05 UTC (permalink / raw) To: emacs-orgmode Nicolas Goaziou <n.goaziou@gmail.com> writes: > Hello, > > Eric Abrahamsen <eric@ericabrahamsen.net> writes: > >> Paul Stansell <paulstansell@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. 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! ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: #+ATTR_LaTeX no longer honoured 2013-05-19 20:31 ` Nicolas Goaziou 2013-05-20 2:05 ` Eric Abrahamsen @ 2013-05-20 18:05 ` Daniel F 1 sibling, 0 replies; 7+ messages in thread From: Daniel F @ 2013-05-20 18:05 UTC (permalink / raw) Cc: emacs-orgmode@gnu.org Mode [-- Attachment #1: Type: text/plain, Size: 2410 bytes --] 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 <n.goaziou@gmail.com>wrote: > Hello, > > Eric Abrahamsen <eric@ericabrahamsen.net> writes: > > > Paul Stansell <paulstansell@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. 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 [-- Attachment #2: Type: text/html, Size: 3738 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: #+ATTR_LaTeX no longer honoured 2013-05-19 13:27 ` Eric Abrahamsen 2013-05-19 20:31 ` Nicolas Goaziou @ 2013-05-23 19:42 ` Paul Stansell 2013-05-24 0:15 ` Rasmus 1 sibling, 1 reply; 7+ messages in thread From: Paul Stansell @ 2013-05-23 19:42 UTC (permalink / raw) To: emacs-orgmode > here's the line you're looking for: > > #+ATTR_LaTeX: :width 5cm :options angle=90 Thanks very much, that does what I want. Also, regarding the manual being up-to-date or not, I took my instructions from the page at http://orgmode.org/manual/Images-in-LaTeX-export.html which does seem out of date as it says one should use #+ATTR_LaTeX: width=5cm,angle=90 Regards, Paul ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: #+ATTR_LaTeX no longer honoured 2013-05-23 19:42 ` Paul Stansell @ 2013-05-24 0:15 ` Rasmus 0 siblings, 0 replies; 7+ messages in thread From: Rasmus @ 2013-05-24 0:15 UTC (permalink / raw) To: emacs-orgmode Paul Stansell <paulstansell@gmail.com> writes: >> here's the line you're looking for: >> >> #+ATTR_LaTeX: :width 5cm :options angle=90 > > Thanks very much, that does what I want. > > Also, regarding the manual being up-to-date or not, I took my instructions > from the page at http://orgmode.org/manual/Images-in-LaTeX-export.html which > does seem out of date as it says one should use I don't know what that page is and I can't find it in the manual. It seems like it somehow an outdated pages which is part of an older version of the manual. Check out section 12.7 in the manual: http://orgmode.org/manual/index.html –Rasmus -- May contains speling mistake ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-05-24 0:15 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-05-19 11:18 #+ATTR_LaTeX no longer honoured Paul Stansell 2013-05-19 13:27 ` Eric Abrahamsen 2013-05-19 20:31 ` Nicolas Goaziou 2013-05-20 2:05 ` Eric Abrahamsen 2013-05-20 18:05 ` Daniel F 2013-05-23 19:42 ` Paul Stansell 2013-05-24 0:15 ` Rasmus
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).