From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: superscripts, tables and latex Date: Thu, 06 Sep 2012 10:23:28 -0400 Message-ID: <6042.1346941408@alphaville> References: <20552.39597.747235.71356@raynernix2.earthsci.unimelb.edu.au> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9czb-00086e-IE for emacs-orgmode@gnu.org; Thu, 06 Sep 2012 10:23:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9cza-0002f3-Ea for emacs-orgmode@gnu.org; Thu, 06 Sep 2012 10:23:39 -0400 Received: from g6t0184.atlanta.hp.com ([15.193.32.61]:39137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9cza-0002eH-9s for emacs-orgmode@gnu.org; Thu, 06 Sep 2012 10:23:38 -0400 In-Reply-To: Message from Peter Rayner of "Thu, 06 Sep 2012 22:44:29 +1000." <20552.39597.747235.71356@raynernix2.earthsci.unimelb.edu.au> 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: prayner@unimelb.edu.au Cc: emacs-orgmode@gnu.org Peter Rayner wrote: > I'm trying to export a simple table to latex with the only catch being > it has some units I need to superscript. > Here is the org code > ---------------------------------------------------------------------- > .. > ---------------------------------------------------------------------- > It has the text of the table with the pipe characters removed then the > table itself. > Here is the latex it generates > ---------------------------------------------------------------------- > ... > ---------------------------------------------------------------------- > > In the untabulated text the ^{-2} is being replaced with math > delimiters while in the tabulated version the braces are being quoted. > > This doesn't seem to happen when I export to html where both versions > get superscripted. This could be a bug but it's more likely something > I'm misunderstanding, can someone enlighten me? > please reply directly as well as to the list, I'm behind on my mailing > list browsing. The standard latex exporter does indeed mishandle this, but unless it is a very easy fix, it's unlikely to be fixed: the exporter is on its way out. If you can, please use Nicolas Goaziou's new exporter: it handles the situation correctly. Assuming you are running a recent version of org, you can install it alongside the old one. Just add the following to your init file (with the path modified appropriately): --8<---------------cut here---------------start------------->8--- (add-to-list 'load-path "/path/to/contrib/lisp")) (require 'org-export) (require 'org-e-ascii) ; if you want (require 'org-e-html) ; if you want (require 'org-e-latex) --8<---------------cut here---------------end--------------->8--- In my case, I bind the new exporter dispatch to a key sequence, but that is strictly optional. In addition, when the switchover is complete and the old exporter is thrown overboard, C-c C-e will be the official binding. In the meantime, something like this --8<---------------cut here---------------start------------->8--- (define-key org-mode-map (kbd "C-c E") 'org-export-dispatch) --8<---------------cut here---------------end--------------->8--- will allow you to invoke it with C-c E (which is officially undefined currently). But you can always skip the define-key stuff and invoke it the long way: --8<---------------cut here---------------start------------->8--- M-x org-export-dispatch RET --8<---------------cut here---------------end--------------->8--- Nick