From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thibaut Verron Subject: Re: Orgtbl-mode in latex: escaped braces and dollars, and other arbitrary transformations Date: Thu, 26 Jun 2014 14:22:13 +0200 Message-ID: References: <878uoknegl.fsf@nicolasgoaziou.fr> Reply-To: thibaut.verron@gmail.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c238e45d1d1604fcbc3f21 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X08hI-00049G-BS for emacs-orgmode@gnu.org; Thu, 26 Jun 2014 08:22:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X08hH-0006FA-Fb for emacs-orgmode@gnu.org; Thu, 26 Jun 2014 08:22:36 -0400 Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:38950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X08hH-0006Ez-7L for emacs-orgmode@gnu.org; Thu, 26 Jun 2014 08:22:35 -0400 Received: by mail-la0-f47.google.com with SMTP id s18so1774237lam.6 for ; Thu, 26 Jun 2014 05:22:34 -0700 (PDT) In-Reply-To: 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 , emacs-orgmode --001a11c238e45d1d1604fcbc3f21 Content-Type: text/plain; charset=UTF-8 > > Now, are these "limitations of Org" really preventing it from exporting a > string verbatim? That would seem like the most logical default in this > situation, wouldn't it? (Disclaimer: I don't "understand the limitations of > Org", so these last questions may be ridiculous to someone who does) > > > Apparently not, the following quick attempt seems to be doing the job fine enough: (defun tv/orgtbl-to-latex-verbatim (table params) (flet ((org-export-string-as (string backend &optional b e) string)) (orgtbl-to-latex table params))) However, it is extra dirty, and ignoring so many parameters in a function is probably not safe. :-) Is there really no similar mechanism built-in org? Should I polish this function and submit a patch? Or am I running into a wall? Thanks, Thibaut Verron --001a11c238e45d1d1604fcbc3f21 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Now, are these "limitation= s of Org" really preventing it from exporting a string verbatim? That = would seem like the most logical default in this situation, wouldn't it= ? (Disclaimer: I don't "understand the limitations of Org", s= o these last questions may be ridiculous to someone who does)



Apparently not, the= following quick attempt seems to be doing the job fine enough:

=C2=A0 (defun tv/orgtbl-to-latex-verbatim (table param= s)
=C2=A0 =C2= =A0 (flet ((org-export-string-as=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 (string backend &optional b e)=C2=A0
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 string))
=C2=A0 =C2=A0 =C2=A0(orgtbl-to-l= atex table params)))

However, it is extra dirty, and ignori= ng so many parameters in a function is probably not safe. :-)
Is there really no similar mechanism built-in org? Shoul= d I polish this function and submit a patch? Or am I running into a wall?

Thanks,

Thibaut V= erron
--001a11c238e45d1d1604fcbc3f21--