* superscripts, tables and latex @ 2012-09-06 12:44 Peter Rayner [not found] ` <peter.julien.rayner@gmail.com> 0 siblings, 1 reply; 8+ messages in thread From: Peter Rayner @ 2012-09-06 12:44 UTC (permalink / raw) To: emacs-orgmode 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 ------------+-----------------+--------------------------+-------------+--- Vegetation Weekly (target) 200–1000 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 | |------------+-----------------+--------------------------+-------------+---| | Vegetation | Weekly (target) | 200–1000 |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=1000 \providecommand{\alert}[1]{\textbf{#1}} \title{test} \author{Peter Rayner} \date{\today} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs Org-mode version N/A}} \begin{document} \maketitle \section*{section heading} \label{sec-1} CO$_2$ CO$^{\mathrm{-2}}$ 0.3gC m$^{\mathrm{-2}}$ y$^{\mathrm{-1}}$ Objective Temporal scale Spatial Scale (km) Requirement ------------+-----------------+--------------------------+-------------+--- Vegetation Weekly (target) 200–1000 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) & Requirement \\ \hline Vegetation & Weekly (target) & 200–1000 & 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. 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. thanks in advance Peter -- Peter Rayner room 343 School of Earth Sciences, University of Melbourne, 3010, Vic, Australia tel: work: +61 (0)3 8344 9708; fax: +61 (0)3 8344 7761 mobile +61 402 752 379, skype: petermorag mail-to: prayner@unimelb.edu.au and CLIMMOD ENGINEERING http://www.climmod.com mail-to: Peter.Rayner@climmod.com ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <peter.julien.rayner@gmail.com>]
* Re: superscripts, tables and latex [not found] ` <peter.julien.rayner@gmail.com> @ 2012-09-06 14:23 ` Nick Dokos 2012-09-06 15:27 ` Jambunathan K ` (3 more replies) 2012-09-07 16:03 ` Nick Dokos 1 sibling, 4 replies; 8+ messages in thread From: Nick Dokos @ 2012-09-06 14:23 UTC (permalink / raw) To: prayner; +Cc: emacs-orgmode Peter Rayner <peter.julien.rayner@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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: superscripts, tables and latex 2012-09-06 14:23 ` Nick Dokos @ 2012-09-06 15:27 ` Jambunathan K 2012-09-06 18:39 ` Nick Dokos ` (2 subsequent siblings) 3 siblings, 0 replies; 8+ messages in thread From: Jambunathan K @ 2012-09-06 15:27 UTC (permalink / raw) To: nicholas.dokos; +Cc: prayner, emacs-orgmode Nick Dokos <nicholas.dokos@hp.com> writes: > (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) I do this: C-x C-f ~/src/org-mode/contrib/lisp/ M-x update-directory-autoloads RET RET org-contrib-install.el ;; Note the two RETs above (require 'org-contrib-install) ;; in .emacs ps: one more install.el file to knock our heads over :-). -- ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: superscripts, tables and latex 2012-09-06 14:23 ` Nick Dokos 2012-09-06 15:27 ` Jambunathan K @ 2012-09-06 18:39 ` Nick Dokos 2012-09-07 4:33 ` Peter Rayner 2012-09-07 12:54 ` Peter Rayner 3 siblings, 0 replies; 8+ messages in thread From: Nick Dokos @ 2012-09-06 18:39 UTC (permalink / raw) Cc: prayner, emacs-orgmode Nick Dokos <nicholas.dokos@hp.com> wrote: > 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): > I should have said "you can use it ...", instead of "you can install it ...". What I described is not an installation method. Nick ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: superscripts, tables and latex 2012-09-06 14:23 ` Nick Dokos 2012-09-06 15:27 ` Jambunathan K 2012-09-06 18:39 ` Nick Dokos @ 2012-09-07 4:33 ` Peter Rayner 2012-09-07 4:58 ` Nick Dokos 2012-09-07 12:54 ` Peter Rayner 3 siblings, 1 reply; 8+ messages in thread From: Peter Rayner @ 2012-09-07 4:33 UTC (permalink / raw) To: nicholas.dokos; +Cc: prayner, emacs-orgmode Nick Dokos writes: ... description of using new exporter This doesn't *appear* to help. I say "appear" because I can never be absolutely sure I'm using the new exporter. I accessed it with m-x org-export-dispatch l which generates ---------------------------------------------------------------------- % Created 2012-09-07 Fri 14:30 \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=1000 \providecommand{\alert}[1]{\textbf{#1}} \author{Peter Rayner} \date{\today} \title{test} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Generated by Org mode N/A in Emacs 24.1.1.}} \begin{document} \maketitle \section*{section heading} \label{sec-1} Objective Temporal scale Spatial Scale (km) Requirement ------------+-----------------+--------------------------+-------------+--- Vegetation Weekly (target) 200–1000 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) & Requirement\\ \hline Vegetation & Weekly (target) & 200–1000 & 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} % Generated by Org mode N/A in Emacs 24.1.1. \end{document} ---------------------------------------------------------------------- It looks sufficiently different from the previous version to convince me it is the new exporter being used here but with the same problem. thanks again Peter > -- Peter Rayner room 343 School of Earth Sciences, University of Melbourne, 3010, Vic, Australia tel: work: +61 (0)3 8344 9708; fax: +61 (0)3 8344 7761 mobile +61 402 752 379, skype: petermorag mail-to: prayner@unimelb.edu.au and CLIMMOD ENGINEERING http://www.climmod.com mail-to: Peter.Rayner@climmod.com ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: superscripts, tables and latex 2012-09-07 4:33 ` Peter Rayner @ 2012-09-07 4:58 ` Nick Dokos 0 siblings, 0 replies; 8+ messages in thread From: Nick Dokos @ 2012-09-07 4:58 UTC (permalink / raw) To: prayner; +Cc: emacs-orgmode Peter Rayner <prayner@unimelb.edu.au> wrote: > Nick Dokos writes: > ... description of using new exporter=20 > This doesn't *appear* to help. I say "appear" because I can never be > absolutely sure I'm using the new exporter. I accessed it with > m-x org-export-dispatch > l > which generates=20 > ---------------------------------------------------------------------- > % Created 2012-09-07 Fri 14:30 > \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}} > \author{Peter Rayner} > \date{\today} > \title{test} > \hypersetup{ > pdfkeywords=3D{}, > pdfsubject=3D{}, > pdfcreator=3D{Generated by Org mode N/A in Emacs 24.1.1.}} > \begin{document} > > \maketitle > > > \section*{section heading} > \label{sec-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) & Requirement\\ > \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} > % Generated by Org mode N/A in Emacs 24.1.1. > \end{document} > ---------------------------------------------------------------------- > It looks sufficiently different from the previous version to convince > me it is the new exporter being used here but with the same problem. > thanks again > Peter > I get: --8<---------------cut here---------------start------------->8--- % Created 2012-09-07 Fri 00:54 \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[pdfborder={0,0,0},colorlinks=true]{hyperref} \tolerance=1000 \usepackage{minted} \author{Nick Dokos} \date{\today} \title{superscripts-in-table} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Generated by Org mode 7.9.1 in Emacs 24.1.50.1.}} \begin{document} \maketitle \section*{section heading} \label{sec-1} Objective Temporal scale Spatial Scale (km) Requirement ------------+-----------------+--------------------------+-------------+--- 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) & Requirement\\ & & & \\ \hline 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}$\\ \end{tabular} \end{center} % Generated by Org mode 7.9.1 in Emacs 24.1.50.1. \end{document} --8<---------------cut here---------------end--------------->8--- with the versions indicated above. Apart from the mangled Vegatation Spatial Scale entry (something that some mailer did along the way), everything else looks good to me. Nick ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: superscripts, tables and latex 2012-09-06 14:23 ` Nick Dokos ` (2 preceding siblings ...) 2012-09-07 4:33 ` Peter Rayner @ 2012-09-07 12:54 ` Peter Rayner 3 siblings, 0 replies; 8+ messages in thread From: Peter Rayner @ 2012-09-07 12:54 UTC (permalink / raw) To: Nick Dokos; +Cc: prayner, emacs-orgmode Hmm, at the moment this still isn't working. The following compile log is possibly relevant: Leaving directory `/home/prayner/' \f Compiling file /home/prayner/packages/org-mode/contrib/lisp/org-e-latex.el at Fri Sep 7 22:28:37 2012 Entering directory `/home/prayner/packages/org-mode/contrib/lisp/' org-e-latex.el:49:1:Error: Wrong type argument: listp, org-e-latex-center-block the problem still occurs when I call org-e-latex-export-to-latex this is from the latest pull from the repository. It must be something wrong in my setup but I'm afraid I'm at my wit's end. Any pointers for debugging much appreciated. regards Peter -- Peter Rayner room 343 School of Earth Sciences, University of Melbourne, 3010, Vic, Australia tel: work: +61 (0)3 8344 9708; fax: +61 (0)3 8344 7761 mobile +61 402 752 379, skype: petermorag mail-to: prayner@unimelb.edu.au and CLIMMOD ENGINEERING http://www.climmod.com mail-to: Peter.Rayner@climmod.com ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: superscripts, tables and latex [not found] ` <peter.julien.rayner@gmail.com> 2012-09-06 14:23 ` Nick Dokos @ 2012-09-07 16:03 ` Nick Dokos 1 sibling, 0 replies; 8+ messages in thread From: Nick Dokos @ 2012-09-07 16:03 UTC (permalink / raw) To: prayner; +Cc: emacs-orgmode Peter Rayner <peter.julien.rayner@gmail.com> wrote: > Hmm, at the moment this still isn't working. The following compile log > is possibly relevant: > Leaving directory `/home/prayner/' > \f > Compiling file /home/prayner/packages/org-mode/contrib/lisp/org-e-latex.el at Fri Sep 7 22:28:37 2012 > Entering directory `/home/prayner/packages/org-mode/contrib/lisp/' > org-e-latex.el:49:1:Error: Wrong type argument: listp, org-e-latex-center-block > I just pulled, added the ORG_ADD_CONTRIB line (see http://orgmode.org/worg/dev/org-build-system.html#sec-4 for more info) and did a make: I get no errors. Here is my version info Org-mode version 7.9.1 (release_7.9.1-152-g0ad009 @ /home/nick/elisp/org-mode/lisp/) GNU Emacs 24.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.4) of 2012-07-28 on alphaville > the problem still occurs when I call org-e-latex-export-to-latex > this is from the latest pull from the repository. It must be something > wrong in my setup but I'm afraid I'm at my wit's end. I'm sorry my suggestion is causing you so much pain: all I can say is I don't see these problems. Maybe you can tell us a bit more about your install (machine, OS, emacs version, org version)? Also what package you downloaded and from where and how you are building it. Nick ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-09-07 16:03 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-09-06 12:44 superscripts, tables and latex Peter Rayner [not found] ` <peter.julien.rayner@gmail.com> 2012-09-06 14:23 ` Nick Dokos 2012-09-06 15:27 ` Jambunathan K 2012-09-06 18:39 ` Nick Dokos 2012-09-07 4:33 ` Peter Rayner 2012-09-07 4:58 ` Nick Dokos 2012-09-07 12:54 ` Peter Rayner 2012-09-07 16:03 ` Nick Dokos
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).