[Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register]

Author Message
zed888
General User

Joined: 22 Jan 2006
Posts: 5

 Posted: Fri Feb 03, 2006 10:07 am    Post subject: text over rightarrow like in chemical equations Hi, How can I add text above a rightarrow like in a chemical equations? I tried to use matrix and binom but then the arrow is short and the text can get quite long. Thanks
zed888
General User

Joined: 22 Jan 2006
Posts: 5

 Posted: Fri Feb 03, 2006 10:11 am    Post subject: Oh, and how can I ad a bi-dirertional arrow (two arows with opposite directions one above the other)?
zed888
General User

Joined: 22 Jan 2006
Posts: 5

 Posted: Fri Feb 03, 2006 1:19 pm    Post subject: yet another question if on the subject... How can I add a bi-directional arrow as I described in the message above but with one arrow bigger than the other? Thanks! Gil
acknak
Moderator

Joined: 13 Aug 2004
Posts: 4295
Location: ~ 40°N,75°W

 Posted: Fri Feb 03, 2006 2:19 pm    Post subject: Re: text over rightarrow like in chemical equations Do you have to use it within a Formula? What you want is quite easy to do using the drawing tools. Unfortunately, you can't incorporate a drawing object within a Formula, except by manual placement (AFAIK).
zed888
General User

Joined: 22 Jan 2006
Posts: 5

Posted: Fri Feb 03, 2006 3:00 pm    Post subject: Re: text over rightarrow like in chemical equations

 acknak wrote: Do you have to use it within a Formula? What you want is quite easy to do using the drawing tools. Unfortunately, you can't incorporate a drawing object within a Formula, except by manual placement (AFAIK).

Yes I do. I need it within a formula...
yuki

Joined: 20 Oct 2005
Posts: 264

Posted: Sat Feb 04, 2006 4:04 pm    Post subject:

I don't think really understand.

Does something like this do the trick?:

 Code: C_2 size -3 stack{ a # toward # "" } size +0 C_3 O

Alternatively, use any string from the unicode set (there are arrows in some fonts which you can copy & paste into a formula) instead of the toward-arrow.
RGB
Super User

Joined: 25 Nov 2003
Posts: 1743
Location: In Lombardy, near a glass of red Tuscany wine

 Posted: Mon Feb 06, 2006 9:35 am    Post subject: yuki, I think zed888 needs a really long arrow under a really long word, and with at list the same length. Only workarounds (using a stack and the size command) can be done, but none of them are satisfactory for your problem. I'm afraid you need to build your expression with a combination of Math and Draw objects
sdaau
General User

Joined: 05 Jan 2010
Posts: 12

Posted: Sun Mar 20, 2011 10:19 am    Post subject:

Hi all,

Sorry to bump an old thread, but:

 RGB wrote: yuki, I think zed888 needs a really long arrow under a really long word, and with at list the same length.

I think I got to something close to the demanded, in only OOO math syntax:
 Code: size 10{stack{ do this here # widevec{~~~~~~~~~~~~~~~~~~~~~} # "" }}

The widevec has an ugly arrow when stretched, and you have to manually add spaces (~) as argument to widevec to make it the size you need for the text - however, at least it is centered properly with the rest of the equation, even if it is with a different font size (as above).

Hope this helps,
Cheers!
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 8 Hours Page 1 of 1

 Jump to: Select a forum OpenOffice.org Forums----------------Setup and TroubleshootingOpenOffice.org WriterOpenOffice.org CalcOpenOffice.org ImpressOpenOffice.org DrawOpenOffice.org MathOpenOffice.org BaseOpenOffice.org Macros and APIOpenOffice.org Code Snippets Community Forums----------------General DiscussionSite Feedback
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum