Peter Rayner <peter.julien.ray...@gmail.com> 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