From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Exporting caption with raw results from inline source blocks Date: Fri, 26 Apr 2013 07:56:05 -0500 Message-ID: References: <87ehe0xu10.fsf@med.uni-goettingen.de> <87k3npwlym.fsf@med.uni-goettingen.de> <87fvydwjkc.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UViC8-0003cT-Kk for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 08:56:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UViC6-0000dv-TJ for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 08:56:08 -0400 Received: from mail-lb0-f172.google.com ([209.85.217.172]:37346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UViC6-0000dn-Lc for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 08:56:06 -0400 Received: by mail-lb0-f172.google.com with SMTP id d10so885756lbj.17 for ; Fri, 26 Apr 2013 05:56:05 -0700 (PDT) In-Reply-To: <87fvydwjkc.fsf@med.uni-goettingen.de> 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 On Fri, Apr 26, 2013 at 7:41 AM, Andreas Leha wrote: > John Hendy writes: > >> On Fri, Apr 26, 2013 at 6:49 AM, Andreas Leha >> wrote: >>> Andreas Leha writes: >>> >>>> Hi all, >>>> >>>> I am experiencing problems when exporting a document with inline source >>>> blocks in captions, when I want to export raw results. >>>> >>>> I guess the culprit are the 'raw' results. What should I do instead? >>>> >>>> Here is a MWE that does not export properly to LaTeX: >>>> >>>> >>>> #+PROPERTY: exports results >>>> #+PROPERTY: results raw >>>> >>>> * Caption with inline source >>>> >>>> #+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]] >>>> >> >> Do you need raw results? It works for me if I just remove the >> =#+PROPERTY: results raw= line. I'm wondering if that property and the >> =:results graphics= in your code block conflict? >> >> My file: >> >> >> #+PROPERTY: exports results >> >> >> * Caption with inline source >> >> >> #+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]] >> >> PDF output attached. With the results raw property line, I got goofy >> caption alignment and it just said "points in this plot" instead of >> the full line. >> >> > > Hi John, > > thanks for testing. You see the same behaviour that I see. This is a > bug, IMO. > > Do I need the raw results? Well, it only differs in the typeface, so I > can hardly say, I 'need' them. But in longer and more elaborate > captions as for scientific publications, the results should appear as > ordinary text, I think. > I don't get anything with =:results output raw= even from a normal block... #+begin_src R :results output raw :exports results 10+1 #+end_src #+RESULTS: [1] 11 That exports a blank LaTeX document for me: \section*{Caption with inline source} \label{sec-1} % Emacs 24.3.1 (Org mode 8.0.1) \end{document} Perhaps that's the problem? There was some discussion recently about the point of raw results; This makes me wonder if it was removed? If I change to =:results value= and add =:wrap latex= above, I get regular text exported (not inside =\texttt=). It doesn't seem that =:wrap latex= works for inline blocks, though? John > Thanks again for the confirmation. > > Best, > Andreas > >