From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Exporting caption with raw results from inline source blocks Date: Fri, 26 Apr 2013 09:44:07 -0600 Message-ID: <8761z9i9fc.fsf@gmail.com> References: <87ehe0xu10.fsf@med.uni-goettingen.de> <87k3npwlym.fsf@med.uni-goettingen.de> <87fvydwjkc.fsf@med.uni-goettingen.de> <87a9oli9vo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVkog-0005gg-3s for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 11:44:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVkoe-0000O2-HV for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 11:44:06 -0400 Received: from mail-pd0-f173.google.com ([209.85.192.173]:65036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVkoe-0000NN-CA for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 11:44:04 -0400 Received: by mail-pd0-f173.google.com with SMTP id v14so1176395pde.18 for ; Fri, 26 Apr 2013 08:44:03 -0700 (PDT) In-Reply-To: <87a9oli9vo.fsf@gmail.com> (Eric Schulte's message of "Fri, 26 Apr 2013 09:34:19 -0600") 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: Andreas Leha Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain > 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, --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=no-caption.org #+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]] --=-=-= Content-Type: text/plain to the following latex --=-=-= Content-Type: text/x-tex Content-Disposition: inline; filename=no-caption.tex % 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} --=-=-= Content-Type: text/plain -- Eric Schulte http://cs.unm.edu/~eschulte --=-=-=--