From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Latex export of longtable with multiline heading Date: Sat, 6 Apr 2013 13:07:03 -0500 Message-ID: References: <86y5cw755y.wl%simon.guest@tesujimath.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOXWB-0006Jm-82 for emacs-orgmode@gnu.org; Sat, 06 Apr 2013 14:07:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOXW4-00053T-MH for emacs-orgmode@gnu.org; Sat, 06 Apr 2013 14:07:11 -0400 Received: from mail-lb0-f171.google.com ([209.85.217.171]:58193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOXW4-00053G-Eb for emacs-orgmode@gnu.org; Sat, 06 Apr 2013 14:07:04 -0400 Received: by mail-lb0-f171.google.com with SMTP id v10so4652740lbd.30 for ; Sat, 06 Apr 2013 11:07:03 -0700 (PDT) In-Reply-To: <86y5cw755y.wl%simon.guest@tesujimath.org> 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: Simon Guest Cc: emacs-org list On Fri, Apr 5, 2013 at 9:40 PM, Simon Guest wrote: > Dear Org-mode people, > > I have an Org mode document containing a longtable, which has its > heading row split over two lines. Exporting this to Latex doesn't work. What's the output of =M-x org-version= ? If it's > 7.9.4f, you're on the new exporter, and syntax has changed. > > Here's a really small example (for which I wouldn't need longtable, > but you get the point): > > #+ATTR_LaTeX: longtable align=|r|r| > |-------+---------| > | First | Age | > | Name | (years) | > |-------+---------| > | Bob | 6 | > | Dave | 7 | > | Wendy | 9 | > |-------+---------| > Try this: #+ATTR_LaTeX: :environment longtable :align |r|r| > The PDF document is missing the first line of the header. Looking at > the Latex file which is generated, there appear to be too many > (i.e. 2) instances of \endhead (but I'm no expert on longtables in > Latex). Your example with the #+attr_latex line above gives this: #+begin_src latex \begin{longtable}{|r|r|} \toprule First & Age\\ Name & (years)\\ \midrule \endhead ... ... #+end_src Keep in mind I'm using booktabs, so instead of \[top/mid]rule, you'd get \hline with a default setup. Things look decent to me in the output. If you're on the "old exporter," see here for upgrading: - http://orgmode.org/worg/org-8.0.html Good luck! John > > It's important that I get this working, or find a work-around. > > Any suggestions? > > cheers, > Simon >