From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [babel] [bug] inline src_R breaks downstream src block Date: Sat, 20 Aug 2011 00:50:38 +0200 Message-ID: <87ty9d3tj5.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuXt8-00015C-Vc for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 18:50:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuXt4-00051e-Qy for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 18:50:06 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:64134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuXt4-00051W-IG for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 18:50:02 -0400 Received: by wwf10 with SMTP id 10so2835442wwf.30 for ; Fri, 19 Aug 2011 15:50:01 -0700 (PDT) In-Reply-To: (Charles C. Berry's message of "Mon, 8 Aug 2011 21:00:07 -0700") 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: "Charles C. Berry" Cc: emacs-orgmode Hi Charles, yes, there are some problems with parsing inline source blocks. Stephen also reported that these colon lines : were $\beta_2$ = src_R{round(out3$coef[3], 4)} : and $\beta_3$ = src_R{round(out3$coef[4], 4)} where not exporting correctly... Eric, can you have a look at these problems? Thanks! "Charles C. Berry" writes: > ,---- > | | * inline code block example > | | | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA > | blah blah src_R[:results output]{cat(rnorm(2))} > | CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC > | #+begin_src R :eval never :exports none > | 1+2 > | a <- b + c > | xyz > | #+end_src > | DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD > `---- > > > When I run C-c C-e A y, I get a buffer that misses the 'DDD...' line. > > When I run C-c C-e L y, I get a buffer that ends like this: > > ---- > | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA > | blah blah \texttt{-1.172165 -0.5324113} > | CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC > | \begin{src}R DDDDDDDDDDDDDDDDDDDDDDDDDDD > | | \end{document} > `---- > > More complicated examples exhibit other problems, I speculate that > parsing the inline src_R and setting up to find the next > #+begin_src...#+end_src instance is what has gone wrong. > > FWIW, changing the :exports header to 'code' seems to give correct > results > > Also, placing a dummy example like this: > > ,---- > | #+begin_example > | #+end_example > `---- > > after the src_R line produces correct results. > > Chuck > > > Charles C. Berry Dept of Family/Preventive Medicine > cberry@tajo.ucsd.edu UC San Diego > http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901 > > > > -- Bastien