OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

text over rightarrow like in chemical equations

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Math
View previous topic :: View next topic  
Author Message
zed888
General User
General User


Joined: 22 Jan 2006
Posts: 5

PostPosted: Fri Feb 03, 2006 10:07 am    Post subject: text over rightarrow like in chemical equations Reply with quote

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
Back to top
View user's profile Send private message
zed888
General User
General User


Joined: 22 Jan 2006
Posts: 5

PostPosted: Fri Feb 03, 2006 10:11 am    Post subject: Reply with quote

Oh, and how can I ad a bi-dirertional arrow (two arows with opposite directions one above the other)?
Back to top
View user's profile Send private message
zed888
General User
General User


Joined: 22 Jan 2006
Posts: 5

PostPosted: Fri Feb 03, 2006 1:19 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
acknak
Moderator
Moderator


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

PostPosted: Fri Feb 03, 2006 2:19 pm    Post subject: Re: text over rightarrow like in chemical equations Reply with quote

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).
Back to top
View user's profile Send private message
zed888
General User
General User


Joined: 22 Jan 2006
Posts: 5

PostPosted: Fri Feb 03, 2006 3:00 pm    Post subject: Re: text over rightarrow like in chemical equations Reply with quote

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... Confused
Back to top
View user's profile Send private message
yuki
OOo Advocate
OOo Advocate


Joined: 20 Oct 2005
Posts: 264

PostPosted: Sat Feb 04, 2006 4:04 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
RGB
Super User
Super User


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

PostPosted: Mon Feb 06, 2006 9:35 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
sdaau
General User
General User


Joined: 05 Jan 2010
Posts: 12

PostPosted: Sun Mar 20, 2011 10:19 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Math All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group