| View previous topic :: View next topic |
| Author |
Message |
ernestotapia General User

Joined: 25 Oct 2004 Posts: 7
|
Posted: Mon Oct 25, 2004 7:04 am Post subject: Custom operators similar to \oplus in LaTeX |
|
|
| Is it possible to define new (binary) operators? I would like to use a custom operator similar to \oplus used in LaTeX. |
|
| Back to top |
|
 |
RGB Super User


Joined: 25 Nov 2003 Posts: 1743 Location: In Lombardy, near a glass of red Tuscany wine
|
Posted: Mon Oct 25, 2004 7:15 am Post subject: |
|
|
Use boper
| Code: | | a boper %yoursymbol b |
|
|
| Back to top |
|
 |
RGB Super User


Joined: 25 Nov 2003 Posts: 1743 Location: In Lombardy, near a glass of red Tuscany wine
|
|
| Back to top |
|
 |
ernestotapia General User

Joined: 25 Oct 2004 Posts: 7
|
Posted: Tue Oct 26, 2004 3:00 am Post subject: |
|
|
I found a message in other forum:
http://www.oooforum.org/forum/viewtopic.php?t=1209&highlight=latex+formula
Someone coded a program which generates a *.png image from LaTeX code. the user only has to drag the generated image in order to be inserted in the document. The original image looks very good, but the new problem is that the image seems to be smoothed when pasted (or inserted) into the document. Is this the default behavior of openoffice? How can I void this "side effect"? |
|
| Back to top |
|
 |
Ed Super User

Joined: 28 May 2003 Posts: 1040
|
Posted: Tue Oct 26, 2004 5:25 am Post subject: |
|
|
| Why do you specifically demand that it has to be a custom operator? Why can't you just use the command "oplus" in OOo Math, which is exactly the same as "\oplus" in LaTeX? |
|
| Back to top |
|
 |
ernestotapia General User

Joined: 25 Oct 2004 Posts: 7
|
Posted: Tue Oct 26, 2004 7:31 am Post subject: |
|
|
Thanks, I could use oplus in OO.
I tried it similarly with other symbols, \bullet -> bullet and \diamond -> diamond, but it didn't work. Which LaTeX symbols are also "available" in OO? Is there a reference somewhere in internet? |
|
| Back to top |
|
 |
RGB Super User


Joined: 25 Nov 2003 Posts: 1743 Location: In Lombardy, near a glass of red Tuscany wine
|
Posted: Tue Oct 26, 2004 7:42 am Post subject: |
|
|
In the Math help, see Formula Reference Tables. As I say before, you can add new symbols to Math (if you have the font, of course ), and use these symbols as operators, if you like. |
|
| Back to top |
|
 |
ernestotapia General User

Joined: 25 Oct 2004 Posts: 7
|
Posted: Wed Oct 27, 2004 2:49 am Post subject: |
|
|
Thanks, I could use symbols of LaTeX in OO. Fortunately some of the LaTeX fonts are available to the X.org under my Linux distribution.
But there is a problem with "big" symbols (bigoplus, bigcap, etc). It seems that baselines are calculated incorrectly. This symbols are shifted such that they look as the horizontal neighboring symbols were located in the superindex zone:
| Code: | | %bigoplus X ----> %bigoplus^X |
Is such a problem unavoidable? |
|
| Back to top |
|
 |
dkeith Power User

Joined: 01 Nov 2003 Posts: 93 Location: UK
|
Posted: Wed Oct 27, 2004 3:42 am Post subject: |
|
|
Is
any better? |
|
| Back to top |
|
 |
ernestotapia General User

Joined: 25 Oct 2004 Posts: 7
|
Posted: Thu Oct 28, 2004 8:37 am Post subject: |
|
|
Perfect!!!  |
|
| Back to top |
|
 |
|