emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] new exporter and latex attributes


From: Nicolas Goaziou
Subject: Re: [O] new exporter and latex attributes
Date: Tue, 21 Aug 2012 00:54:25 +0200

Hello,

Rick Frankel <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]