From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: [patch] bring back the "multiline" option for latex tables Date: Wed, 01 Jun 2011 10:21:59 -0600 Message-ID: <87boyhttco.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRtDh-0005H6-DG for emacs-orgmode@gnu.org; Wed, 01 Jun 2011 17:44:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRtDf-0001Bk-Qw for emacs-orgmode@gnu.org; Wed, 01 Jun 2011 17:44:53 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:38374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRoBL-0003Qa-R1 for emacs-orgmode@gnu.org; Wed, 01 Jun 2011 12:22:08 -0400 Received: by pwi12 with SMTP id 12so124545pwi.0 for ; Wed, 01 Jun 2011 09:22:06 -0700 (PDT) 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: Org Mode --=-=-= Content-Type: text/plain Hi, The following patch make the behavior of LaTeX table exporter more closely resemble the documented behavior (at least to my mind). I'm hesitant to apply this patch myself as it applies to org-latex.el which is outside of my area of expertise. Please apply this if it looks reasonable. Thanks -- Eric --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-replacing-the-multicolumn-option-for-latex-tables.patch >From fc8700f52c2fbfb1ec601e3bbb32c37e38a4cfbb Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Wed, 1 Jun 2011 10:18:34 -0600 Subject: [PATCH] replacing the "multicolumn" option for latex tables This brings the behavior inline with the documentation. * lisp/org-latex.el (org-export-latex-tables): Check for the "multiline" option and set the `floatp' option to true when multicolumn tables are requested. --- lisp/org-latex.el | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index e2c74ae..0d64f68 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1838,7 +1838,8 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER." longtblp (and attr (stringp attr) (string-match "\\" attr)) tblenv (if (and attr (stringp attr) - (string-match (regexp-quote "table*") attr)) + (or (string-match (regexp-quote "table*") attr) + (string-match "\\" attr))) "table*" "table") tabular-env (if (and attr (stringp attr) @@ -1851,7 +1852,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER." align (and attr (stringp attr) (string-match "\\