From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Rayner Subject: superscripts, tables and latex Date: Thu, 6 Sep 2012 22:44:29 +1000 Message-ID: <20552.39597.747235.71356@raynernix2.earthsci.unimelb.edu.au> Reply-To: prayner@unimelb.edu.au Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9bRx-0004k6-F3 for emacs-orgmode@gnu.org; Thu, 06 Sep 2012 08:45:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9bRr-0002pa-3O for emacs-orgmode@gnu.org; Thu, 06 Sep 2012 08:44:49 -0400 Received: from mail-gw2.its.unimelb.edu.au ([128.250.5.151]:53455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9bRq-0002pD-Fn for emacs-orgmode@gnu.org; Thu, 06 Sep 2012 08:44:43 -0400 Received: from raynernix2.earthsci.unimelb.edu.au (morbo.earthsci.unimelb.edu.au [128.250.120.155]) by mail-gw2.its.unimelb.edu.au (Postfix) with ESMTPS id 58E0715F0 for ; Thu, 6 Sep 2012 22:44:31 +1000 (EST) 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: emacs-orgmode@gnu.org 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 ---------------------------------------------------------------------- #+Options: num:nil toc:nil * section heading Objective Temporal scale Spatial Scale (km) Requirement= =20 ------------+-----------------+--------------------------+------------= -+---=20 Vegetation Weekly (target) 200=E2=80=931000 0.3gC m^{-2} d^{-1} Land surface Annual 2000 5/25 g C m^{-2} yr^{-1} Ocean fluxes Annual 2500 3 g C m^{-2} yr^{-1} Anthropogenic Annual 300 4 g C m^{-2} yr^{-1} | Objective | Temporal scale | Spatial Scale (km) | Requirement= | =20 |------------+-----------------+--------------------------+------------= -+---| | Vegetation | Weekly (target) | 200=E2=80=931000 |0.3gC m^{-2} d^{-1} |Land surface |Annual |2000 |5/25 g C m^{-2} yr^{-1} |Ocean fluxes |Annual |2500 |3 g C m^{-2} yr^{-1} |Anthropogenic |Annual |300 |4 g C m^{-2} yr^{-1} ---------------------------------------------------------------------- It has the text of the table with the pipe characters removed then the table itself. Here is the latex it generates ---------------------------------------------------------------------- % Created 2012-09-06 Thu 22:27 \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{soul} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{latexsym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=3D1000 \providecommand{\alert}[1]{\textbf{#1}} \title{test} \author{Peter Rayner} \date{\today} \hypersetup{ pdfkeywords=3D{}, pdfsubject=3D{}, pdfcreator=3D{Emacs Org-mode version N/A}} \begin{document} \maketitle \section*{section heading} \label{sec-1} CO$=5F2$ CO$^{\mathrm{-2}}$ 0.3gC m$^{\mathrm{-2}}$ y$^{\mathrm{-1}}$ Objective Temporal scale Spatial Scale (km) Requirement= =20 ------------+-----------------+--------------------------+------------= -+---=20 Vegetation Weekly (target) 200=E2=80=931000 0.3gC m$^{\mathrm{-2= }}$ d$^{\mathrm{-1}}$ Land surface Annual 2000 5/25 g C m$^{\mathrm{-2}}$ yr$^{\mathrm{-1= }}$ Ocean fluxes Annual 2500 3 g C m$^{\mathrm{-2}}$ yr$^{\mathrm{-1}}$= Anthropogenic Annual 300 4 g C m$^{\mathrm{-2}}$ yr$^{\mathrm{-1}}$= \begin{center} \begin{tabular}{llrl} Objective & Temporal scale & Spatial Scale (km) & Requireme= nt \\ \hline Vegetation & Weekly (target) & 200=E2=80=931000 & 0= .3gC m^\{-2\} d^\{-1\} \\ Land surface & Annual & 2000 & 5/25 g C = m^\{-2\} yr^\{-1\} \\ Ocean fluxes & Annual & 2500 & 3 g C m^\= {-2\} yr^\{-1\} \\ Anthropogenic & Annual & 300 & 4 g C m^\= {-2\} yr^\{-1\} \\ \end{tabular} \end{center} \end{document} ----------------------------------------------------------------------= In the untabulated text the ^{-2} is being replaced with math delimiters while in the tabulated version the braces are being quoted.=20= 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=3F please reply directly as well as to the list, I'm behind on my mailing list browsing. thanks in advance Peter =20 =20 --=20 Peter Rayner room 343=20 School of Earth Sciences, University of Melbourne, 3010, Vic, Australia= tel: work: +61 (0)3 8344 9708; fax: +61 (0)3 8344 7761=20 mobile +61 402 752 379, skype: petermorag=20 mail-to: prayner@unimelb.edu.au and CLIMMOD ENGINEERING http://www.climmod.com mail-to: Peter.Rayner@climmod.com