Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Wouldn't a character style handle this? That would mean using
character styles, of course, but that is the first thing I thought of.

Regards,

On Wed, Oct 2, 2013 at 10:04 AM, Andrew Douglas Pitonyak
<andrew@pitonyak.org> wrote:
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+unsubscribe@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




-- 
Kevin B. O'Brien
zwilnik2@gmail.com
http://google.me/+kevinobrien
Facebook is Evil. Cancel your account.

-- 
To unsubscribe e-mail to: users+unsubscribe@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

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.