Hello, Rick Frankel <r...@rickster.com> writes:
> Has the syntax for latex attributes changed in the new exporter, or is > is the following a bug? Neither. Though, at some point, I'd like to change syntax for LaTeX attributes for a plist-based one. > Given this source file: > > * Test width attribute > #+ATTR_LATEX: width=3in > #+begin_src dot :file t.png > digraph g { a -> b } > #+end_src > > #+results: [[file:t.png]] > > The old exporter generats: > #+begin_src latex > \includegraphics[width=3in]{t.png} > #+end_src > > And the new exporter > #+begin_src latex > \includegraphics[width=.9\linewidth]{t.png} > #+end_src > > which ignores the width override. "width" is an attribute for the file, but it means nothing for the source code. Use something like the following. * Test width attribute #+NAME: graph #+begin_src dot :file t.png digraph g { a -> b } #+end_src #+ATTR_LATEX: width=3in #+RESULTS: graph [[file:t.png]] Regards, -- Nicolas Goaziou