From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Oberbrunner Subject: LaTeX export figure width, when figure comes from python? Date: Fri, 29 Mar 2013 16:16:27 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8ff1c9082f1ef704d915f2bc Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULfiw-000837-FW for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 16:16:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULfiu-0000mu-FL for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 16:16:30 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:63377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULfiu-0000mo-9b for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 16:16:28 -0400 Received: by mail-pd0-f172.google.com with SMTP id w10so385537pde.31 for ; Fri, 29 Mar 2013 13:16:27 -0700 (PDT) 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: Orgmode Mailing List --e89a8ff1c9082f1ef704d915f2bc Content-Type: text/plain; charset=ISO-8859-1 Now that python mode is working nicely, I'm generating lots of graphics. #+BEGIN_SRC python :session MYpython :exports results :results file #... bunch of matplotlib stuff that produces /tmp/myfig.pdf '/tmp/myfig.pdf' #+END_SRC This works, and the LaTeX exporter includes /tmp/mfig.pdf: \includegraphics[width=.9\linewidth]{c:/tmp/myfig.pdf} My question is, is there any way to remove the width specifier? If the figure were coming straight from org-mode source text, I could use #+ATTR_LaTeX (well actually maybe not, because there's no way to *remove* the width, but at least I could set it as desired.) But in the situation above, where the filename is coming from the exporter running the code block, there's no place for me to put the ATTR_LaTeX that works. Any ideas, exporter gurus? -- Gary --e89a8ff1c9082f1ef704d915f2bc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Now that python mode is working nicely, I'm generating= lots of graphics.

#+BEGIN_SRC python :session MYpy= thon :exports results :results file
=A0 #... bunch of m= atplotlib stuff that produces /tmp/myfig.pdf
=A0 '/tmp/myfig.pdf'
#+END_SRC

<= /div>
This works, and the LaTeX exporter includes /tmp/mfig.pdf:<= /div>

\includegraphics[width=3D.9\linewidth]= {c:/tmp/myfig.pdf}

My question is, is there any way to remove = the width specifier? =A0If the figure were coming straight from org-mode so= urce text, I could use #+ATTR_LaTeX (well actually maybe not, because there= 's no way to *remove* the width, but at least I could set it as desired= .) =A0But in the situation above, where the filename is coming from the exp= orter running the code block, there's no place for me to put the ATTR_L= aTeX that works.

Any ideas, exporter gurus?
=
--
Gary
--e89a8ff1c9082f1ef704d915f2bc--