From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: How to have a sideways longtable? Date: Fri, 20 Jan 2017 16:29:54 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUhh2-0005SL-6r for emacs-orgmode@gnu.org; Fri, 20 Jan 2017 17:30:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUhgz-0006QM-29 for emacs-orgmode@gnu.org; Fri, 20 Jan 2017 17:30:00 -0500 Received: from mail-it0-x22b.google.com ([2607:f8b0:4001:c0b::22b]:36663) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cUhgy-0006PM-UE for emacs-orgmode@gnu.org; Fri, 20 Jan 2017 17:29:56 -0500 Received: by mail-it0-x22b.google.com with SMTP id c7so29669576itd.1 for ; Fri, 20 Jan 2017 14:29:55 -0800 (PST) In-Reply-To: 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: William Denton Cc: emacs-orgmode On Fri, Jan 20, 2017 at 3:56 PM, William Denton wrote: > I have a long and wide table of text I'd like to have sideways (landscape > orientation) and stretch over multiple pages. I can do either one but not > both together. > > Here's a gist with a long, wide table: > > https://gist.github.com/wdenton/f11acf2e5257b29789f806b854d0709e > > If you take that and export it to LaTeX it will be long (on two pages) but > not sideways, with some columns are cut off on the right---the float is > being ignored, it seems. > > Using the float on its own does work, and this appears in the output: > > \begin{sidewaystable}[htbp] > > But when the longtable is there, it's just this without any sidewaystable: > > \begin{longtable}{rrllllll} > > Is this a bug? I assumed they'd work together out of the box, but maybe I > need to do something special. I'm not sure what version of org I was using at the time (2014), but knew I'd done this. This might not be exactly what you wanted, but I just used landscape instead of sideways table and know it worked: #+LATEX_HEADER: \usepackage{lscape} #+latex: \begin{landscape} #+latex: \tiny #+attr_latex: :align llll|llllll|lllllll|lll :env longtable | table | goes | here | #+latex: \end{landscape} Like I said, that was old, so some of the syntax would be different (like #+begin_export latex / #+end_export) but it's what I had on hand to send quick! John > > Bill > -- > William Denton :: Toronto, Canada :: https://www.miskatonic.org/ > Caveat lector. >