From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [beamer] source code in two column Date: Thu, 22 Sep 2011 10:19:31 +0100 Message-ID: <87y5xhaq8s.fsf@ucl.ac.uk> References: <87mxdx6js8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6fRU-0001pF-Ck for emacs-orgmode@gnu.org; Thu, 22 Sep 2011 05:19:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6fRT-0005Ph-1d for emacs-orgmode@gnu.org; Thu, 22 Sep 2011 05:19:40 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:60264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6fRS-0005PR-P9 for emacs-orgmode@gnu.org; Thu, 22 Sep 2011 05:19:38 -0400 In-Reply-To: <87mxdx6js8.fsf@gmail.com> (zwz's message of "Thu, 22 Sep 2011 16:52:39 +0800") 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: zwz Cc: emacs-orgmode@gnu.org 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 -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.7 (release_7.7.315.g20e6)