Issue 27195

Summary: Ugly workarounds in Math
Product: Writer Reporter: dragondave <d.n.mckee>
Component: codeAssignee: bettina.haberer
Status: CLOSED DUPLICATE QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 1.1.1Keywords: oooqa
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Demo of recommended output none

Description dragondave 2004-03-31 02:20:03 UTC
Hi:

there are issues with how to code for the following mathematical/scientific 
notations in Math:

Complex conjugation: the complex conjugate of "A" is A<sup>*</sup>. However, 
due to * being a binary operator, OOo requires that the kludgy "A^{{}*{}}" is 
used instead of the simple "A^*". These are used in mathematics and physics 
extensively.

Dagger operator: Dagger operators are used in Quantum Mechanics. They are 
represented by a superscript dagger, similar to A<sup>+</sup>. However, + is 
also a binary operator, so kludgyness is required for even this workaround.

Solar/Earth notation: the standard symbols denoting solar- or earth- masses or 
radii are a circle with a dot in the centre and a quartered circle. Both 
appear to be absent from the available symbols: lecturers using OOo have often 
used M_%THETA which looks almost good enough for the solar mass. These are 
used in astronomy.

brakets: "bra A" looks like &lt;A| . "ket B" looks like |B&gt; . "bra A B ket 
C" looks like &lt;A|B|C&gt; . "ket A bra B" looks like |A&gt;&lt;B| . These 
are vitally important in Quantum Mechanics (Dirac Notation). Current 
workarounds are:

{} < A divides {}
{} divides B > {}
{} < A divides B divides C > {}
{} divides A > {} < B divides {}

which are excessively kludgy.

A few apologies and questions:
Sorry it's in Word processor; couldn't find Math category. Is there one?
Sorry it's not one issue / one bug: much the same problem.
Is there any reason why we don't use TeX format? It's widely known within the 
groups that will be using this sort of facility widely.
Comment 1 dragondave 2004-03-31 02:32:41 UTC
Created attachment 14200 [details]
Demo of recommended output
Comment 2 mci 2004-03-31 07:46:28 UTC
reassigned to bh
Comment 3 lohmaier 2004-04-10 00:35:59 UTC
(the component is called "Formula editor")

I'll mark this one as a duplicate of issue 21484 although it faces import
problems, the cause (and solution) is the same.

Regarding the dagger: OpenSymbol contains a dagger, so you can create a new
symbol-entry and use a real dagger instead of a plus sign. In case you don't
know how to add user defined symbols see
http://documentation.openoffice.org/user_faq/formula/012.html
(the dagger is the rightmost symbol in the fourth row, counted from the top, U+2020)

I think the solar-symbols you're looking for are included in opensymbol (U+2259
and following) "circled plus" -> oplus "circled minus" -> ominus "circled times"
"circled division slash" -> odivide and so on...
I'm not sure about this. If these aren't the symbols you need please file a
sperate issue to have them added.

Regarding the bra ket -thing I assume you want something like
left langle a mline right none newline
left none mline b right rangle newline
left langle a mline b mline c right rangle newline
left none mline a right rangle left langle b mline right none

But again, to have a new notation introduced a sperate issue is absolutely
necessary.

The last point (TeX-style notation) please see issue 2864

*** This issue has been marked as a duplicate of 21484 ***
Comment 4 lohmaier 2004-04-10 00:46:04 UTC
closing duplicate.
(the dagger is in the fourth row when you select the special-symbolset (and not
greek) before launching the Edit-Symbol dialog)

And you can of course define a new name for the "*", like for the dagger, a
symbol created this way is not a binary operator so you could use
A^%cconjugate (given that you name the symbol "cconjugate"

You may also file an issue to have the character U+22B9 HERMITIAN CONJUGATE
MATRIX added to Opensymbol (I assume that is the character you really want and
the asterisk is just a workaround, but I have no clue about that :-)