From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [Babel] R, multiple lines #+results, LaTeX-export Date: Fri, 03 Dec 2010 07:14:47 -0700 Message-ID: <87aakn2adk.fsf@gmail.com> References: <4CF83829.5020302@uni-koeln.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=49415 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POWid-0000e7-19 for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 09:34:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POWib-0001ix-MM for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 09:34:38 -0500 Received: from mail-gx0-f169.google.com ([209.85.161.169]:52187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POWib-0001fV-K2 for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 09:34:37 -0500 Received: by mail-gx0-f169.google.com with SMTP id 5so5449142gxk.0 for ; Fri, 03 Dec 2010 06:34:37 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernd Weiss Cc: emacs-orgmode@gnu.org Hi Bernd, Bernd Weiss writes: > Dear all, > > While working on my presentation I came across the following two issues: > > (1) If I execute the following code block (see "Before codeblock > execution") which is followed by a headline or another codeblock, the > results-block (see "After codeblock execution") interferes with the > headline/codeblock/whatever. > I've just pushed up a fix for this issue. > > (2) The results-block is complex insofar as it has multiple lines. If I > choose "export as LaTeX and process to PDF" (I corrected the wrong > #+end_example line manually), the resulting PDF file only shows the code > but not the results. However, this behaviour is only related to my > meta-analysis example. If I use, for example, summary(lm(rnorm(100)~1)), > the resulting PDF file shows code + results. > > I am using Org-mode version 7.3 (release_7.01h.1081.gcfd7.dirty) > > Thanks for your help, > This is odd, could you send a self-contained org-mode file which reproduces this error? Thanks -- Eric > > Bernd > > > ------- Before codeblock execution --------- > > #+BEGIN_SRC R :results output :exports both > library(meta) > data(Fleiss93) > meta1 <- metabin(event.e, n.e, event.c, n.c, data=Fleiss93, sm="RR", > meth="I") > summary(meta1) > #+END_SRC > > > > > * new headline > > ------- Before codeblock execution --------- > > > > ------- After codeblock execution --------- > > #+BEGIN_SRC R :results output :exports both > library(meta) > data(Fleiss93) > meta1 <- metabin(event.e, n.e, event.c, n.c, data=Fleiss93, sm="RR", > meth="I") > summary(meta1) > #+END_SRC > > > #+results: > #+begin_example > load meta: d:/programme/R/library ... > Number of trials combined: 7 > > RR 95%-CI z p.value > Fixed effect model 0.9137 [0.8658; 0.9643] -3.2822 0.001 > Random effects model 0.8929 [0.8006; 0.9959] -2.0347 0.0419 > > Quantifying heterogeneity: > tau^2 = 0.0074; H = 1.29 [1; 1.98]; I^2 = 39.6% [0%; 74.6%] > > Test of heterogeneity: > Q d.f. p.value > 9.93 6 0.1277 > > Method: Inverse variance method > > > > * new headlin#+end_example > e > > ------- After codeblock execution --------- > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode