When I had to do something similar, I wrote a macro :-) If you do not know much about macros, you probably need to record one, and I expect that the macro recorder is poor enough that the only real solution would be to do the first one by hand, copy the correct result to the clipboard, then record a macro that pastes the value and then searches for the next occurrence. If you are left with a regular m2 selection, run the macro again. if not, well, you are finished.
On 10/02/2013 04:50 AM, Thomas Blasejewicz wrote: > Good evening > Thisis probably a rather stupid question and has been answered on this > list (somewhere) a million times ... > > (The job is already done - manually - so there is no hurry; I would like > to know the trick.) > > 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. > (after I while of trying I gave up and replaced those number manually) > > 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. > > Thank you in advance. > Thomas > -- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.odt Info: http://www.pitonyak.org/oo.php -- 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