From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Louis Subject: Re: How to paginate Babel Lisp output? Date: Sun, 9 Jul 2017 21:13:08 +0300 Message-ID: <20170709181308.GB30655@protected.rcdrun.com> References: <20170709145737.GA20503@protected.rcdrun.com> <87mv8d1sus.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUGhx-0004Ug-A1 for emacs-orgmode@gnu.org; Sun, 09 Jul 2017 14:13:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUGhu-00082h-0W for emacs-orgmode@gnu.org; Sun, 09 Jul 2017 14:13:25 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:53862) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dUGht-00082O-P5 for emacs-orgmode@gnu.org; Sun, 09 Jul 2017 14:13:21 -0400 Content-Disposition: inline In-Reply-To: <87mv8d1sus.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> 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: Richard Lawrence Cc: Org list , Jean Louis On Sun, Jul 09, 2017 at 09:24:11AM -0700, Richard Lawrence wrote: > 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 That worked well, thank you!