[Solved] Symbols in superscripts

Discuss the formula editor
Post Reply
lechat
Posts: 6
Joined: Fri Jul 08, 2016 4:58 pm
Location: Zürich, Switzerland

[Solved] Symbols in superscripts

Post by lechat »

Hi,

I am currently writing on my bachelors thesis in applied physics and need to write down a simple chemical reaction in a formula. to that end i need to have a + sign in a superscript to denote positively charged hydrogen atoms: something like H^{+}. with numbers and letters this command works just fine, however, if i try to do it with symbols like + or -, it doesnt. is there another way to do superscripts with symbols?

thx for your support
OpenOffice4.1.1 64bit
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: symbols in superscripts

Post by acknak »

Greetings and welcome to the community forum!

OO Math follows a rudimentary grammar and plus and minus are operators that expect two operands, one on either side.

So you can either provide empty operands: H^{{}+{}}

Or, put quotes around it to mark it as plain text: H^"+"

You'll see that the two give slightly different results.

For something as simple as H+, you can also use text with a superscript, rather than a formula.
 Edit: PS: 
You can also define a new symbol (Tools > Catalog ...) and write it as H^%plus
AOO4/LO5 • Linux • Fedora 23
lechat
Posts: 6
Joined: Fri Jul 08, 2016 4:58 pm
Location: Zürich, Switzerland

Re: symbols in superscripts

Post by lechat »

thank you very much! your answer was very helpful!
OpenOffice4.1.1 64bit
Post Reply