Fractions in Maths

classic Classic list List threaded Threaded
10 messages Options
C. H. D. C. H. D.
Reply | Threaded
Open this post in threaded view
|

Fractions in Maths



Hello, LibreOffice Developers and Supporters!

I need to handle some fractions in Maths in LibreOffice Writer. The fractions look like 1/2 or 10/40. I would like to make them look like:
 1
 -
 2
(no superscript and no subscript)

There are some possible ways to do this. A _proper_ way is:
Insert -> Object -> Formula -> {<?>} over {<?>}

My imagination is like:
Autocorrect the text as object. When typing 5/6 (space), I get
 5
 -
 6
which is an object.
(Ctrl + Z would return 5/6 (space))

My second imagination is like: Using Find & Replace to replace 7/8 as
 7
 -
 8
I could get the object option in the Find & Replace dialog.
Find: */*
Replace: (format as object)
 *
 -
 *
This could convert all the "horizontal" styles into the "vertical" styles.

My third imagination is like:
In LibreOffice Calc and in a formula in LibreOffice Writer,
I could have =7/8+1/8.
I could also have
 7 1
=- +-
 8 8
(These are objects.)
where LibreOffice could perform the calculation and give me the result in fraction.

This post below really led me to think that typing fractions could be a part of the fundamental work a word processor should be able to do easily:

Formatting Text as a Fraction (on 20 May, 2009)
http://forum.openoffice.org/en/forum/viewtopic.php?f=11&t=18901

Is it possible to add the features? Am I simply too ambitious? Perhaps, the features are ready but I am missing something, aren't I?

Best regards,
C. H. D.
LibreOffice User







_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
--
For unsubscribe instructions e-mail to: [hidden email]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Tom Tom
Reply | Threaded
Open this post in threaded view
|

Re: Fractions in Maths

Hi :)
I thought that was what Math was for?  For simple equations as quoted it might seem strange to have a separate app to do that sort of thing but most people really don't need extra weight in Writer to do something they never do anyway.  It might be nice if it could handle simple things like 1/2 but aren't there "special characters" for most of those anyway?  
Regards from
Tom :)  
Johnny Rosenberg Johnny Rosenberg
Reply | Threaded
Open this post in threaded view
|

Fwd: [libreoffice-users] Re: Fractions in Maths

Forgot to include the list again, sorry…


---------- Forwarded message ----------
From: Johnny Rosenberg <[hidden email]>
Date: 2013/4/10
Subject: Re: [libreoffice-users] Re: Fractions in Maths
To: Tom <[hidden email]>


2013/4/10 Tom <[hidden email]>:
> Hi :)
> I thought that was what Math was for?  For simple equations as quoted it
> might seem strange to have a separate app to do that sort of thing but most
> people really don't need extra weight in Writer to do something they never
> do anyway.  It might be nice if it could handle simple things like 1/2 but
> aren't there "special characters" for most of those anyway?
> Regards from
> Tom :)

Yes, there are. I put some of them on my keyboardlayout:
⅛ ¼ ⅜ ½ ⅝ ¾ ⅞ ⅓ ⅔ ⅕ ⅖ ⅗ ⅘ ⅙ ⅚
These are all UTF-8 characters.
There are also sub- and superscript numbers: ₀₁₂₃₄₅₆₇₈₉⁰¹²³⁴⁵⁶⁷⁸⁹, so
things like ⁴/₉ can be done… But the OP wanted a horizontal division
separator, on the other hand…


Johnny Rosenberg

>
>
>
> --
> View this message in context: http://nabble.documentfoundation.org/Fractions-in-Maths-tp4047979p4049128.html
> Sent from the Users mailing list archive at Nabble.com.
>
> --
> For unsubscribe instructions e-mail to: [hidden email]
> Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
> Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
> List archive: http://listarchives.libreoffice.org/global/users/
> All messages sent to this list will be publicly archived and cannot be deleted
>

--
For unsubscribe instructions e-mail to: [hidden email]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
James Knott James Knott
Reply | Threaded
Open this post in threaded view
|

Re: Fractions in Maths

In reply to this post by Tom
Tom wrote:
> Hi :)
> I thought that was what Math was for?  For simple equations as quoted it
> might seem strange to have a separate app to do that sort of thing but most
> people really don't need extra weight in Writer to do something they never
> do anyway.  It might be nice if it could handle simple things like 1/2 but
> aren't there "special characters" for most of those anyway?
> Regards from
> Tom :)
>

It's not in Writer. It's a separate app (at least in the LO meaning of
separate) that provides the function of creating nice looking math
equations, just like you see in text books. You don't have to use it, if
you don't want to. As for special characters, use the U.S. International
keyboard layout, so that you can easily use characters like:
¹²³¤£€¼½¾¥×÷ and more.

https://en.wikipedia.org/wiki/AltGr_key#US_international

--
For unsubscribe instructions e-mail to: [hidden email]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Johnny Rosenberg Johnny Rosenberg
Reply | Threaded
Open this post in threaded view
|

Re: Fractions in Maths

In reply to this post by Tom
2013/4/10 Tom <[hidden email]>:
> Hi :)
> I thought that was what Math was for?  For simple equations as quoted it
> might seem strange to have a separate app to do that sort of thing but most
> people really don't need extra weight in Writer to do something they never
> do anyway.

I think he wants Writer (or even Calc) to be able to create a
LibreOffice Math object with the auto correction feature.

He types 355/113 and after hitting space, it will be replaced by a
LibreOffice Math object that you normally create by opening
LibreOffice Math and type ”355 over 113”. It seems like he also wants
at least LibreOffice Calc to be able to use it for calculations,
making the 355 over 113 object approximately equal to 3.14159292.


Johnny Rosenberg

> It might be nice if it could handle simple things like 1/2 but
> aren't there "special characters" for most of those anyway?
> Regards from
> Tom :)
>
>
>
> --
> View this message in context: http://nabble.documentfoundation.org/Fractions-in-Maths-tp4047979p4049128.html
> Sent from the Users mailing list archive at Nabble.com.
>
> --
> For unsubscribe instructions e-mail to: [hidden email]
> Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
> Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
> List archive: http://listarchives.libreoffice.org/global/users/
> All messages sent to this list will be publicly archived and cannot be deleted
>

--
For unsubscribe instructions e-mail to: [hidden email]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
doug-2 doug-2
Reply | Threaded
Open this post in threaded view
|

Re: Fractions in Maths

In reply to this post by Tom
On 04/10/2013 03:48 PM, Tom wrote:

> Hi :)
> I thought that was what Math was for?  For simple equations as quoted it
> might seem strange to have a separate app to do that sort of thing but most
> people really don't need extra weight in Writer to do something they never
> do anyway.  It might be nice if it could handle simple things like 1/2 but
> aren't there "special characters" for most of those anyway?
> Regards from
> Tom :)
>
>
>
If you just want simple fractions, you can set up a compose key in Linux,
or use AllChars in Windows, to make ½ ⅓ ¼ ⅕ ⅙ ⅛. This works in all
apps, even in the terminal. It also makes lots of other things. like all the
diacritical marks on letters ä, ö ü, ñ, ç ß à á è é ì and µ € ¥ £ ¢ etc.

--doug

--
Blessed are the peacemakers...for they shall be shot at from both sides.  A.M. Greeley


--
For unsubscribe instructions e-mail to: [hidden email]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Johnny Rosenberg Johnny Rosenberg
Reply | Threaded
Open this post in threaded view
|

Fwd: [libreoffice-users] Re: Fractions in Maths

Sorry for once again sending a reply off list. Here's to the same
message, but to the list this time…


---------- Forwarded message ----------
From: Johnny Rosenberg <[hidden email]>
Date: 2013/4/11
Subject: Re: [libreoffice-users] Re: Fractions in Maths
To: Doug <[hidden email]>


2013/4/10 Doug <[hidden email]>:

> On 04/10/2013 03:48 PM, Tom wrote:
>>
>> Hi :)
>> I thought that was what Math was for?  For simple equations as quoted it
>> might seem strange to have a separate app to do that sort of thing but
>> most
>> people really don't need extra weight in Writer to do something they never
>> do anyway.  It might be nice if it could handle simple things like 1/2 but
>> aren't there "special characters" for most of those anyway?
>> Regards from
>> Tom :)
>>
>>
>>
> If you just want simple fractions, you can set up a compose key in Linux,
> or use AllChars in Windows, to make ½ ⅓ ¼ ⅕ ⅙ ⅛.

Still, it won't help if you want horizontal lines rather than ”/”.


Johnny Rosenberg

> This works in all
> apps, even in the terminal. It also makes lots of other things. like all the
> diacritical marks on letters ä, ö ü, ñ, ç ß à á è é ì and µ € ¥ £ ¢ etc.
>
> --doug
>
> --
> Blessed are the peacemakers...for they shall be shot at from both sides.
> A.M. Greeley
>
>
>
> --
> For unsubscribe instructions e-mail to: [hidden email]
> Problems?
> http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
> Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
> List archive: http://listarchives.libreoffice.org/global/users/
> All messages sent to this list will be publicly archived and cannot be
> deleted

--
For unsubscribe instructions e-mail to: [hidden email]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
C. H. D. C. H. D.
Reply | Threaded
Open this post in threaded view
|

Re: Fractions in Maths

In reply to this post by C. H. D.
Hello! At last, I have submitted a proposal to include an AutoCorrect option to type fractions with horizontal lines, e.g.

12
___
13

 
https://bugs.freedesktop.org/show_bug.cgi?id=63610


I need fractions as they are related to equations, e.g.
4a
__=4
9


Regards,
C. H. D.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
--
For unsubscribe instructions e-mail to: [hidden email]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

marcgrober marcgrober
Reply | Threaded
Open this post in threaded view
|

Re: Fractions in Maths

I am likely late to this thread, but why won't using
sqrt{4a^2 over 9} = +- {2a over 3}
as an LO "formula" work for you, or  using
\sqrt{\frac{4a^2}{9}}=\pm\frac{2a}{3}
in TexMath

While it would be grand to be able to simply have LO parse TeX (or your
math notation of preference), the two options above seem reasonable
compromises....

On 4/16/13 8:23 AM, C. H. D. wrote:

> Hello! At last, I have submitted a proposal to include an AutoCorrect option to type fractions with horizontal lines, e.g.
>
> 12
> ___
> 13
>
>  
> https://bugs.freedesktop.org/show_bug.cgi?id=63610
>
>
> I need fractions as they are related to equations, e.g.
> 4a
> __=4
> 9
>
>
> Regards,
> C. H. D.
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


--
For unsubscribe instructions e-mail to: [hidden email]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

C. H. D. C. H. D.
Reply | Threaded
Open this post in threaded view
|

Re: Fractions in Maths

Hi! I think an interesting reason may justify the enhancement request.


It is a matter of speed. For me, I need to use the keyboard very often. Typing Alt+I+O+F {2a over 3} (Esc) (Esc) (17 keys) is slower. Typing 2a/3 (space) (5 keys) is faster.

 
(17-5)/17*100=70.59%

That is about 70 per cent of reduction in the number of keys I need to type (not using the mouse)! Amazing!

Regards,
C. H. D.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _











________________________________
 寄件人︰ Marc Grober <[hidden email]>
收件人︰ [hidden email]
傳送日期︰ 2013年04月17日 (週三) 1:51 AM
主題︰ Re: [libreoffice-users] Re: Fractions in Maths
 

I am likely late to this thread, but why won't using
sqrt{4a^2 over 9} = +- {2a over 3}
as an LO "formula" work for you, or  using
\sqrt{\frac{4a^2}{9}}=\pm\frac{2a}{3}
in TexMath

While it would be grand to be able to simply have LO parse TeX (or your
math notation of preference), the two options above seem reasonable
compromises....

On 4/16/13 8:23 AM, C. H. D. wrote:

> Hello! At last, I have submitted a proposal to include an AutoCorrect option to type fractions with horizontal lines, e.g.
>
> 12
> ___
> 13
>

> https://bugs.freedesktop.org/show_bug.cgi?id=63610
>
>
> I need fractions as they are related to equations, e.g.
> 4a
> __=4
> 9
>
>
> Regards,
> C. H. D.
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


--
For unsubscribe instructions e-mail to: [hidden email]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
--
For unsubscribe instructions e-mail to: [hidden email]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted