| View previous topic :: View next topic |
| 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 |
|
| Back to top |
|
 |
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)? |
|
| Back to top |
|
 |
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 |
|
| Back to top |
|
 |
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). |
|
| Back to top |
|
 |
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...  |
|
| Back to top |
|
 |
yuki OOo Advocate


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. |
|
| Back to top |
|
 |
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 |
|
| Back to top |
|
 |
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! |
|
| Back to top |
|
 |
|