[Solved+Issue] Variables not appearing in italics

Discuss the formula editor
Post Reply
Mr-GC
Posts: 1
Joined: Thu Oct 28, 2010 3:12 pm

[Solved+Issue] Variables not appearing in italics

Post by Mr-GC »

Hi,

I'm using NeoOffice, hoping someone here can help me! If I type the following well-known formula into Math...

x = {-b +- sqrt{b^2-4ac}} over {2a}

then it appears more or less how I expect, but there is a problem with how variables are italicised. The x and the two bs appear as they should, but "4ac" and "2a" appear non-italicised. I've tried adding spaces between them (when using the templates, mainly), but can't make it work.

Any ideas?

Thank you!

Graham
Last edited by Hagar Delest on Sun Jun 12, 2011 10:46 pm, edited 1 time in total.
Reason: tagged [Solved].
NeoOffice 3.1.2
Mac OS X 10.6.4
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Variables not appearing in italics

Post by acknak »

Math does not recognize tokens like "4ac" and "2a" as multiplied terms--how could it?

You have to separate the terms yourself: 2{a}, 4{a}{c}, or just 4{a}c.
AOO4/LO5 • Linux • Fedora 23
Horus
Posts: 86
Joined: Mon Apr 21, 2008 12:21 pm

Re: Variables not appearing in italics

Post by Horus »

I'm using OOO 3.3 and this problem is here too.
However, I found that the problem can be avoided by writing like this:
x = {-b +- sqrt{b^2-4 ac}} over {2 a}
That is a space after the numerals.

This is certainly a bug because Fx shows variables as italics, while 2x doesn't.
Horus
Posts: 86
Joined: Mon Apr 21, 2008 12:21 pm

Re: Variables not appearing in italics

Post by Horus »

User avatar
RGB
Posts: 1456
Joined: Mon Oct 08, 2007 1:34 am

Re: Variables not appearing in italics

Post by RGB »

Since 3.3, you can use "nospace" to eliminate the extra space. Compare this:

Code: Select all

nospace{2 a b}
newline
2 a b
There are two types of people: those who believe that there are two types of people and those who do not.

openSUSE Leap with KDE Plasma / LibreOffice
Horus
Posts: 86
Joined: Mon Apr 21, 2008 12:21 pm

Re: Variables not appearing in italics

Post by Horus »

Yes, nospace does the trick. Thanks.
Before the bug is fixed, I suppose this is the only workaround.
Post Reply