[O] latex export of words starting with a superscript

2013-05-06 Thread Brian

Dear list,
this is my first time posting here so: thanks for all the work on 
org-mode! I like the new changes (although the new variable names were a 
pain).
This is either a feature request, a complaint or a demonstration of my 
lack of knowledge of org-mode.


When export latex of words starting with a superscript or subscript, the 
caret or underscore is escaped unless preceded with something other than 
a space, such that I have to use \space^{14}C for a carbon radioisotope. 
I do not need this when when exporting to html.


Org-mode version 8.0.1 (8.0.1-6-ge6776c-elpa @ 
/home/onb134/.emacs.d/elpa/org-20130422/)


GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 
2013-04-14 on chindi10, modified by Debian


I like things to be controlled and set:
(setq org-use-sub-superscripts {})

but it doesn't make a difference whether this is set or not.

It would be nice if this could be implemented, but I am aware of the 
difficulties/conflicts given that underlining needs a word to start with 
_. Maybe some nice regexp work.


Thanks!
Brian



Re: [O] latex export of words starting with a superscript

2013-05-06 Thread Marcin Borkowski
Dnia 2013-05-06, o godz. 15:22:47
Brian zenli...@gmail.com napisaƂ(a):

 Dear list,
 this is my first time posting here so: thanks for all the work on 
 org-mode! I like the new changes (although the new variable names
 were a pain).
 This is either a feature request, a complaint or a demonstration of
 my lack of knowledge of org-mode.

Hi,

I'd rather say that it's a demonstration of the slope of LaTeX learning
curve;).  TeX really is not supposed to handle formulae *starting* with
^ or _ (well, it works, since TeX - AFAIR - puts an implicit {} before
them, but this is not very usual in maths).  What  and _ are meant for
is *maths*, not *chemistry*. Try putting chemistry into the search
form at http://www.ctan.org/search - there are quite a few packages for
typesetting chemical formulae. (In fact, your problem is not the only
one with typesetting chemistry in TeX; positioning of
\(super\|sub\)scripts is also by default suitable for mathematics and
not chemistry!)

Then, you would (I guess) include some simple TeX markup in your Org
file and \usepackage something in the preamble.

In a pinch, try \null instead of a \space as a prefix.

hth

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University