emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Andreas Leha <andreas.leha@med.uni-goettingen.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Exporting caption with raw results from inline source blocks
Date: Fri, 26 Apr 2013 09:44:07 -0600	[thread overview]
Message-ID: <8761z9i9fc.fsf@gmail.com> (raw)
In-Reply-To: <87a9oli9vo.fsf@gmail.com> (Eric Schulte's message of "Fri, 26 Apr 2013 09:34:19 -0600")

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

> An alternate approach which may be preferable would be to expose a
> defcustom along the lines of org-babel-inline-result-wrapper, which
> could be used by org-babel-examplize-region instead of "=%s=".

I think this is a good idea.  I've just pushed up a patch which exposes
a new defcustom named `org-babel-inline-result-wrap'.  If you set this
to say the following.

    ;; emacs-lisp
    (setq org-babel-inline-result-wrap "$%s$")

Then you original example will work as expected, exporting the following

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: no-caption.org --]
[-- Type: text/x-org, Size: 278 bytes --]

#+PROPERTY: exports results
#+PROPERTY: results raw

* Caption lost at export

#+name: theplot
#+begin_src R :results graphics :file someplot.pdf
  plot(1:(10+1), 1:(10+1))

#+caption: There are src_R{10+1} points in this plot
#+results: theplot

[-- Attachment #3: Type: text/plain, Size: 25 bytes --]

to the following latex

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: no-caption.tex --]
[-- Type: text/x-tex, Size: 801 bytes --]

% Created 2013-04-26 Fri 09:43
  pdfcreator={Emacs 24.3.1 (Org mode 8.0-pre)}}


\section[Caption lost at export]{Caption lost at export}

\caption{There are $11$ points in this plot}
% Emacs 24.3.1 (Org mode 8.0-pre)

[-- Attachment #5: Type: text/plain, Size: 46 bytes --]

Eric Schulte

  reply	other threads:[~2013-04-26 15:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-24  7:33 Exporting caption with raw results from inline source blocks Andreas Leha
2013-04-26 11:49 ` Andreas Leha
2013-04-26 12:28   ` John Hendy
2013-04-26 12:41     ` Andreas Leha
2013-04-26 12:56       ` John Hendy
2013-04-26 15:34       ` Eric Schulte
2013-04-26 15:44         ` Eric Schulte [this message]
2013-04-26 19:56         ` Nicolas Goaziou
2013-04-26 20:20           ` Eric Schulte
2013-04-27  6:30             ` Sebastien Vauban
2013-04-27 11:18               ` Andreas Leha

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:

  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=8761z9i9fc.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=andreas.leha@med.uni-goettingen.de \
    --cc=emacs-orgmode@gnu.org \


* 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


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).