From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug in export orgtbl / LaTeX Date: Fri, 14 Jun 2013 18:58:06 +0200 Message-ID: <87fvwk1vfl.fsf@gmail.com> References: <1725976.zQozjb3gTU@linux-ik7b.site> <2315765.6buYZaIrCr@linux-ik7b.site> <87k3lxzzqa.fsf@pierrot.dokosmarshall.org> <1913229.cKOtJ2ymYU@linux-ik7b.site> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnXK4-000558-Ht for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 12:58:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnXK3-0008UX-J6 for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 12:58:00 -0400 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:33867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnXK3-0008UR-Cv for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 12:57:59 -0400 Received: by mail-wi0-f174.google.com with SMTP id k10so555298wiv.7 for ; Fri, 14 Jun 2013 09:57:58 -0700 (PDT) In-Reply-To: <1913229.cKOtJ2ymYU@linux-ik7b.site> (AW's message of "Thu, 13 Jun 2013 21:04:34 +0200") 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: AW Cc: Nick Dokos , emacs-orgmode@gnu.org Hello, AW writes: > Am Donnerstag, 13. Juni 2013, 13:29:01 schrieb Nick Nick Dokos: >> AW writes: >> > Puuuuuuuuush?! >> >> With infinite force? But you are probably pushing against an immovable >> wall :-) >> >> >> Hi! >> >> >> >> If I try to use orgtbl-mode in this file and export the orgtbl block >> >> inside >> >> the comment environment to the RECEIVE ORGTBL area, the LaTeX-file will >> >> not >> >> compile, because the numbering in the org-table is exported as >> >> >> >> \begin{enumerate} >> >> \item installment >> >> \end{enumerate} >> >> >> >> I'd say that inside tabulars numbers like "1." should not be considered >> >> as a part of a numbered list. >> >> Things like this would make the syntax complicated and unpredictable >> (there is an old romantic comedy about tourists going on a bus tour of >> Europe, entitled "If this is Tuesday, this must be Belgium" - that's >> what popped into my head when I read your suggestion :-) >> >> Nicolas has the last word of course, but if I were a betting man, I'd >> bet that you won't get your wish. Tssk, tssk. Don't be so pessimistic :) `orgtbl-to-latex' doesn't use export framework at all, unlike to `orgtbl-to-html'. One solution would be to change that: (defun orgtbl-to-latex (table params) "Convert the orgtbl-mode TABLE to LaTeX. TABLE is a list, each entry either the symbol `hline' for a horizontal separator line, or a list of fields for that line. PARAMS is ignored." (require 'ox-latex) (org-export-string-as (orgtbl-to-orgtbl table nil) 'latex t '(:with-tables t))) However, we lose all PARAMS configuration (:splice t in particular). Note that, according to Org syntax, "1." doesn't start a list, since tables cannot contain lists. Regards, -- Nicolas Goaziou