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

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.
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
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:22 am    Post subject: In order to see how to add new symbols in math, look here: http://www.oooforum.org/forum/viewtopic.php?t=9216&highlight=symbol
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"?
Ed
Super User

Joined: 28 May 2003
Posts: 1041

 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?
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?
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.
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?
dkeith
Power User

Joined: 01 Nov 2003
Posts: 93
Location: UK

Posted: Wed Oct 27, 2004 3:42 am    Post subject:

Is
 Code: oper %oplus X

any better?
ernestotapia
General User

Joined: 25 Oct 2004
Posts: 7

 Posted: Thu Oct 28, 2004 8:37 am    Post subject: Perfect!!!
 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