From mboxrd@z Thu Jan 1 00:00:00 1970 From: AW Subject: Re: Bug in export orgtbl / LaTeX Date: Mon, 17 Jun 2013 14:34:34 +0200 Message-ID: <1739590.NZpg6Crt5q@linux-ik7b.site> References: <1725976.zQozjb3gTU@linux-ik7b.site> <1913229.cKOtJ2ymYU@linux-ik7b.site> <87fvwk1vfl.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoYYT-0007gr-Il for emacs-orgmode@gnu.org; Mon, 17 Jun 2013 08:29:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoYYJ-0003as-Pk for emacs-orgmode@gnu.org; Mon, 17 Jun 2013 08:29:05 -0400 Received: from mailout03.t-online.de ([194.25.134.81]:36278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoYYJ-0003aP-Fs for emacs-orgmode@gnu.org; Mon, 17 Jun 2013 08:28:55 -0400 In-Reply-To: <87fvwk1vfl.fsf@gmail.com> 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: Nicolas Goaziou Cc: Nick Dokos , emacs-orgmode@gnu.org Am Freitag, 14. Juni 2013, 18:58:06 schrieb Nicolas Nicolas Goaziou: > Hello, > ... > >> >> 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. > >> ... > `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, Dear Nicolas, isn't that quite a contradiction: according to org-syntax tables can not contain lists, but orgtbl-to-latex treats "1." inside a table as if it were a beginning of a list? Besides that, thank you for your code, but as my MEW showed, I use things like :splice t . In fact, I do splice nearly every orgtbl into a frame on the LaTeX-side. I have no idea, what to do, only thing I can say is that I use org-tables to draft contracts including paing by instalments, e.g. in dependence to progress of contstruction works. So things like "1. Instalment" happen. Kind regards, Alexander