From mboxrd@z Thu Jan 1 00:00:00 1970 From: Omid Subject: Re: How to tell Org mode radio table translator not to wrap, Greeks in dollars ($$) Date: Sat, 04 Apr 2015 14:30:56 -0400 Message-ID: <55202DE0.4040706@gmail.com> References: <551F51EC.8010405@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeSqU-0007uE-8Y for emacs-orgmode@gnu.org; Sat, 04 Apr 2015 14:31:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YeSqQ-0002AP-VN for emacs-orgmode@gnu.org; Sat, 04 Apr 2015 14:31:02 -0400 Received: from mail-ob0-x22e.google.com ([2607:f8b0:4003:c01::22e]:34413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeSqQ-0002AL-RH for emacs-orgmode@gnu.org; Sat, 04 Apr 2015 14:30:58 -0400 Received: by obbgh1 with SMTP id gh1so198459041obb.1 for ; Sat, 04 Apr 2015 11:30:58 -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: William Henney Cc: emacs-org Thank you, Will. Your workaround solves the problem. And when 8.3 goes to MELPA stable, we can use ":raw t" that was suggested by Nicolas Goaziou.) Omid On 04/04/2015 01:42 AM, William Henney wrote: > Hi Omid > > It looks like orgtbl-to-latex is calling org-export-string-as on each > table cell, which is presumably what is wrapping each \mu inside $$. > This seems wrong-headed to me, but I can't say I really understand what > the code is trying to achieve. > > A workaround would be to directly use orgtbl-to-generic instead. Just > replace your ORGTBL line with > > #+ORGTBL: SEND Ah-advection orgtbl-to-generic :splice t :skip 0 :lend " > \\\\" :sep " & " > > Will > > > On Fri, Apr 3, 2015 at 8:52 PM, Omid > wrote: > > Hello, > > I'm trying to use an Org mode Radio Table in LaTeX according to: > > http://orgmode.org/manual/Radio-tables.html > http://orgmode.org/manual/A-LaTeX-example.html#A-LaTeX-example > > My Org mode table is representing a matrix containing Greek letters > denoted by LaTeX commands (e.g., \mu). The "radioing" process wraps > these commands in dollars (\mu changes to $\mu$). I'm using `:splice > t' to return only table body lines (without wrapping them in a tabular > environment) to insert the table in my equation and matrix > environments. I tried `:fmt "%s"' hoping that the table fields would > be left untouched, but, no the translator still wraps my \mu's in $$. > > Here is an example: > > \begin{comment} > #+ORGTBL: SEND Ah-advection orgtbl-to-latex :splice t :skip 0 :fmt "%s" > | 1-\mu | | | | | > | \mu | 1-\mu | | | | > | | \ddots | \ddots | | | > | | | \mu | 1-\mu | | > | | | | \mu | 1-\mu | > \end{comment} > > with the translated result > > \begin{equation} > \label{eq:Ah-advection} > A_{h}= > \begin{bmatrix} > % BEGIN RECEIVE ORGTBL Ah-advection > 1-$\mu$ & & & & \\ > $\mu$ & 1-$\mu$ & & & \\ > & \ddots & \ddots & & \\ > & & $\mu$ & 1-$\mu$ & \\ > & & & $\mu$ & 1-$\mu$ \\ > % END RECEIVE ORGTBL Ah-advection > \end{bmatrix} > \end{equation} > > How can I tell the table translator not to wrap Greeks in $$? > > Thanks, > > -- > Omid > > > > > -- > > Dr William Henney, Centro de Radioastronomía y Astrofísica, > Universidad Nacional Autónoma de México, Campus Morelia