From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Orgtbl-mode in latex: escaped braces and dollars, and other arbitrary transformations Date: Thu, 26 Jun 2014 21:07:05 +0200 Message-ID: <87tx7732xy.fsf@nicolasgoaziou.fr> References: <878uoknegl.fsf@nicolasgoaziou.fr> <871tuboln9.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0F0J-0003pP-AR for emacs-orgmode@gnu.org; Thu, 26 Jun 2014 15:06:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0F08-0001oB-MK for emacs-orgmode@gnu.org; Thu, 26 Jun 2014 15:06:39 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:35439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0F08-0001nh-Gh for emacs-orgmode@gnu.org; Thu, 26 Jun 2014 15:06:28 -0400 In-Reply-To: (Thibaut Verron's message of "Thu, 26 Jun 2014 15:53:55 +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: thibaut.verron@gmail.com Cc: emacs-orgmode Thibaut Verron writes: > Would changing the last lines of `orgtbl-to-latex` to something like this > work as a long-term solution? > > (require 'ox-latex) > (let* ((*orgtbl-verbatim* (plist-get params :verbatim)) > (backend (if *orgtbl-verbatim* nil 'latex))) > (orgtbl-to-generic table (org-combine-plists params2 params) > backend)))) The check should happen in `orgtbl-to-generic', which is responsible for translating cell contents. Or, better, backend could become a parameter, e.g., :contents, and not an optional argument anymore. Then one could override it with specific params. Also, docstrings and documentation should be updated accordingly. Regards, -- Nicolas Goaziou