From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: How to paginate Babel Lisp output? Date: Sun, 09 Jul 2017 09:24:11 -0700 Message-ID: <87mv8d1sus.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> References: <20170709145737.GA20503@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUEyn-00079l-JK for emacs-orgmode@gnu.org; Sun, 09 Jul 2017 12:22:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUEyj-0008PD-Kk for emacs-orgmode@gnu.org; Sun, 09 Jul 2017 12:22:41 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:35457) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUEyj-00087Z-Ej for emacs-orgmode@gnu.org; Sun, 09 Jul 2017 12:22:37 -0400 Received: by mail-pf0-f182.google.com with SMTP id c73so38339114pfk.2 for ; Sun, 09 Jul 2017 09:22:14 -0700 (PDT) In-Reply-To: <20170709145737.GA20503@protected.rcdrun.com> 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" To: Jean Louis , Org list Hi Jean, Jean Louis writes: > I have a very simple lisp output within Org Mode file, and it > delivers list of lists with 4-5 elements, and it displays nicely > as a text. (Do you mean: as a table?) > #+BEGIN_SRC lisp :exports results (load > #P"/home/data1/protected//lisp/load-some-files.lisp" :verbose > nil :print nil) (sku-list-values-by-location :location 1369) > #+END_SRC > > But when exporting LaTeX I get the result that the table is > basically too long, even being printed over the page number and > below, and does not even continue on the next page. > > Is there a way or customization to make it break pages > automatically when there is long output from source blocks? If you are already getting your results as an Org table, try adding #+ATTR_LATEX: :environment longtable to that table. This will use the LaTeX longtable package and environment to format the table, which should take care of breaking it across pages. Best, Richard