emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Gary Oberbrunner <garyo@oberbrunner.com>
To: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: LaTeX export figure width, when figure comes from python?
Date: Fri, 29 Mar 2013 16:16:27 -0400	[thread overview]
Message-ID: <CAFChFygjD_KbS8KdtiNtTSxoTGr5XPJUsv+CwbHt7OtxE6k6vA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1100 bytes --]

             reply	other threads:[~2013-03-29 20:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-29 20:16 Gary Oberbrunner [this message]
2013-03-29 20:53 ` LaTeX export figure width, when figure comes from python? John Hendy
     [not found]   ` <CAFChFyiFSPrqT2UEKsbh3FxaFOMb165k4M4dpE7vTjZ-OqeGYg@mail.gmail.com>
     [not found]     ` <CA+M2ft8efLRoFAm29w1e7A6=_gRS_kgVmOOJmikj_vckSSx=wA@mail.gmail.com>
2013-03-31 23:57       ` Gary Oberbrunner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFChFygjD_KbS8KdtiNtTSxoTGr5XPJUsv+CwbHt7OtxE6k6vA@mail.gmail.com \
    --to=garyo@oberbrunner.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).