Re: [O] \nbsp trick to get prefixed superscript to work?

2015-05-18 Thread Nick Dokos
Lawrence Bottorff borg...@gmail.com writes:

 I saw an earlier discussion about Emacs/org-mode superscript and
 subscript behavior. My issue is I want to do a chem isotope of an
 element. In standard Latex format I would do this:

 $^{147}$Pm  or leaving off the $ and turning on Emacs' display of
 UTF-8 ( C-c C-x \ ) just ^{147}Pm

 but it doesn't work in either Emacs or org-mode, however

 Pm^{147} does, i.e., putting the super-/subscript /after/ Pm. Also,

 $^{147}Pm$ does work, although it converts the Pm into italicized text
 upon export. Also

 \nbsp^{147}Pm works in both Emacs and org-mode, but upon standard
 export to HTML, it works in the TOC and down in the actual text, but
 not in the Contents section (not used in Latex export).

 Apparently, chemists cannot do Emacs and/or org-mode when they want to
 prefix the super- bzw. sub-script without a kudge?


This seems to work fine for me both for latex and html (with MathJax)
export:

--8---cut here---start-8---
* Dating with \(^{14}\)C.

Dating with \(^{14}\)C.
--8---cut here---end---8---

Nick




Re: [O] \nbsp trick to get prefixed superscript to work?

2015-05-18 Thread Eric S Fraga
On Monday, 18 May 2015 at 11:43, Lawrence Bottorff wrote:
 Apparently, chemists cannot do Emacs and/or org-mode when they want to
 prefix the super- bzw. sub-script without a kudge?

I've recently have had to start writing papers with significant amounts
of chemistry in them.  I simply use the mhchem package which supports
all types of chemical notation...  org is quite happy with it for simple
entries although you may need to @@...@@ escape more complex entries.

However, if you wanted something portable, i.e. that could export to
other targets, then this won't help you.  Sorry!
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-1136-g0e7062



Re: [O] \nbsp trick to get prefixed superscript to work?

2015-05-18 Thread John Kitchin
I think what Eric is referring to is:

#+latex_header: \usepackage[version=3]{mhchem}

@@latex:\ce{^{147}Pm}@@

that exports for me.

\nbsp{}^{147}Pm also seems to work, but might put an extra space in.

you might prefer \phantom{}^{147}Pm

John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


On Mon, May 18, 2015 at 12:09 PM, Eric S Fraga e.fr...@ucl.ac.uk wrote:

 On Monday, 18 May 2015 at 11:43, Lawrence Bottorff wrote:
  Apparently, chemists cannot do Emacs and/or org-mode when they want to
  prefix the super- bzw. sub-script without a kudge?

 I've recently have had to start writing papers with significant amounts
 of chemistry in them.  I simply use the mhchem package which supports
 all types of chemical notation...  org is quite happy with it for simple
 entries although you may need to @@...@@ escape more complex entries.

 However, if you wanted something portable, i.e. that could export to
 other targets, then this won't help you.  Sorry!
 --
 : Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-1136-g0e7062




Re: [O] \nbsp trick to get prefixed superscript to work?

2015-05-18 Thread Sebastien Vauban
John Kitchin wrote:
 I think what Eric is referring to is:

 #+latex_header: \usepackage[version=3]{mhchem}

 @@latex:\ce{^{147}Pm}@@

 that exports for me.

 \nbsp{}^{147}Pm also seems to work, but might put an extra space in.

 you might prefer \phantom{}^{147}Pm

Or using the zero-width char (via the predefined entity \zwnj in Org)?

Best regards,
  Seb

-- 
Sebastien Vauban