From mboxrd@z Thu Jan 1 00:00:00 1970 From: zwz Subject: Re: [beamer] source code in two column Date: Thu, 22 Sep 2011 19:15:08 +0800 Message-ID: <87ipok7rr7.fsf@gmail.com> References: <87mxdx6js8.fsf@gmail.com> <87y5xhaq8s.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6h9v-0008Cz-Mh for emacs-orgmode@gnu.org; Thu, 22 Sep 2011 07:09:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6h9u-0003pT-6Y for emacs-orgmode@gnu.org; Thu, 22 Sep 2011 07:09:39 -0400 Received: from lo.gmane.org ([80.91.229.12]:59173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6h9t-0003pF-UU for emacs-orgmode@gnu.org; Thu, 22 Sep 2011 07:09:38 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R6h9p-0002oJ-Dp for emacs-orgmode@gnu.org; Thu, 22 Sep 2011 13:09:33 +0200 Received: from 60.191.28.52 ([60.191.28.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Sep 2011 13:09:33 +0200 Received: from zhangweize by 60.191.28.52 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Sep 2011 13:09:33 +0200 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: emacs-orgmode@gnu.org Eric S Fraga writes: > zwz writes: > >> I use org to make presentations for C class. >> Sometimes the code is quite long. And I want to arrange it in two > column >> so that it will be presented in one slide. >> >> I wonder how to do it easily using org-export. >> My current setting just hides the code that beyond the page in one >> column. >> >> Best regards, >> zwz > > I cannot help you directly in that I don't know how to /flow/ text (or > code) from one column to the next. I don't think it is actually > possible in beamer. > > However, it *is* straightforward to flow text from one slide to the next > by simply adding =allowframebreaks= to the beamer environment > arguments. For instance, > > #+begin_src org > *** Code example > :PROPERTIES: > :BEAMER_envargs: [allowframebreaks] > :END: > #+LATEX: {\scriptsize > #+begin_example > > #+end_example > #+LATEX: } > #+end_src > > The slides will automatically be numbered using roman numerals should > more than one slide (aka frame in beamer speak) be required. > > I use latex directives to make the font a little smaller to ensure that > lines with within the slide width-wise. > > HTH, > eric It is a nice workaround. But here in my org file, I have to put the "allowframebreaks" in level two headlines (probably because of my setting #+BEAMER_FRAME_LEVEL: 2), otherwise it does not take effect.