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
Org-mode,
[-- 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))
#+end_src
#+caption: There are src_R{10+1} points in this plot
#+results: theplot
[[file:someplot.pdf]]
[-- 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
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\date{\today}
\title{}
\hypersetup{
pdfkeywords={},
pdfsubject={},
pdfcreator={Emacs 24.3.1 (Org mode 8.0-pre)}}
\begin{document}
\tableofcontents
\section[Caption lost at export]{Caption lost at export}
\label{sec-1}
\begin{figure}[htb]
\centering
\includegraphics[width=.9\linewidth]{someplot.pdf}
\caption{There are $11$ points in this plot}
\end{figure}
% Emacs 24.3.1 (Org mode 8.0-pre)
\end{document}
[-- Attachment #5: Type: text/plain, Size: 46 bytes --]
--
Eric Schulte
http://cs.unm.edu/~eschulte
next prev parent 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:
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=8761z9i9fc.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=andreas.leha@med.uni-goettingen.de \
--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).