At 17:50 02/10/2013 +0900, Thomas Blasejewicz wrote:
This is probably a rather stupid question ...

In the absence of good evidence, I tend to assume there are no stupid questions - only perhaps stupid answers.

I had a piece of text (txt file), which contained a lot of things like "m2" (square meter). Working in Writer I tried to do a "find and replace" and turn the "2" into superscript. But I could not figure out how that works. I ALWAYS got "m2" as superscript, even I selected only "2" and then format -> superscript.

What is the trick required to turn "2" into superscript? But ONLY in "m2" and not all "2", since there were lots of other numbers too.

Here are two workarounds:

o Search for "m2" and replace with "m2" but superscripted - exactly as you have been able to do. o Now search for just "m" and replace with "m", but use Format... in the "Search for" box to set Superscript and the same in the "Replace with" box to set Normal position. The temporarily superscripted "m"s will be restored to normal.
This relies on there being no existing superscripted "m"s, of course.

Or:

o Search for "m2" but click Find All.  All the occurrences will be selected.
o Now search for "2" and replace with superscripted "2" but - here's the trick - click More Options and tick "Current selection only".

I trust this helps.

Brian Barker


--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to