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

Custom operators similar to \oplus in LaTeX

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


Joined: 25 Oct 2004
Posts: 7

PostPosted: Mon Oct 25, 2004 7:04 am    Post subject: Custom operators similar to \oplus in LaTeX Reply with quote

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
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 Oct 25, 2004 7:15 am    Post subject: Reply with quote

Use boper
Code:
a boper %yoursymbol b
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 Oct 25, 2004 7:22 am    Post subject: Reply with quote

In order to see how to add new symbols in math, look here:
http://www.oooforum.org/forum/viewtopic.php?t=9216&highlight=symbol
Back to top
View user's profile Send private message
ernestotapia
General User
General User


Joined: 25 Oct 2004
Posts: 7

PostPosted: Tue Oct 26, 2004 3:00 am    Post subject: Reply with quote

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
View user's profile Send private message
Ed
Super User
Super User


Joined: 28 May 2003
Posts: 1041

PostPosted: Tue Oct 26, 2004 5:25 am    Post subject: Reply with quote

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
View user's profile Send private message
ernestotapia
General User
General User


Joined: 25 Oct 2004
Posts: 7

PostPosted: Tue Oct 26, 2004 7:31 am    Post subject: Reply with quote

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
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: Tue Oct 26, 2004 7:42 am    Post subject: Reply with quote

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 Wink ), and use these symbols as operators, if you like.
Back to top
View user's profile Send private message
ernestotapia
General User
General User


Joined: 25 Oct 2004
Posts: 7

PostPosted: Wed Oct 27, 2004 2:49 am    Post subject: Reply with quote

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
View user's profile Send private message
dkeith
Power User
Power User


Joined: 01 Nov 2003
Posts: 93
Location: UK

PostPosted: Wed Oct 27, 2004 3:42 am    Post subject: Reply with quote

Is
Code:
oper %oplus X

any better?
Back to top
View user's profile Send private message
ernestotapia
General User
General User


Joined: 25 Oct 2004
Posts: 7

PostPosted: Thu Oct 28, 2004 8:37 am    Post subject: Reply with quote

Perfect!!! Laughing
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