OpenType - Fractions
(a.k.a. slashed fractions)
The OpenType Fractions feature will do what you need.
In LibreOffice you simply add :frac
to the font name.
For example you highlight the fraction text such as 17/64
and then select the font for that text such as Source Sans Pro:frac
Here is an example:
The first line is the plain text.
The second and third lines have the fraction feature applied.
You must use a font which supports this OpenType feature.
Fonts which come with LibreOffice which support Fractions OpenType feature:
- Carlito
- Linux Biolinum G
- Linux Libertine Display G
- Linux Libertine G
- PT Serif
- Source Code Pro (all variants)
- Source Sans Pro (all variants)
My guess is that one of the bolder Source Sans Pro fonts will be best for your project.
Make yourself a character style called Fractions, set the font to Source Sans Pro Bold:frac
Then just apply that character style to the fraction numbers.
OpenType - Alternative Fractions
(a.k.a. stacked fractions or nut fractions)
Applied by adding :afrc
to font name.
Again, the font must support the feature.
None of the fonts included with LibreOffice support OpenType Alternative Fractions.
The Palatino Linotype font included with Windows 7 does have limited support (only up to 7/8).
The Linux Libertine G font does support Graphite alternative fractions, but they are bad.
Take a look the image below for examples.
There are a number of commercial fonts which do support OpenType Alternative Fractions.
You can find those on the font purchasing websites.
I did find some free fonts which support OpenType Alternative Fractions.
- Guru (a condensed Garamond derivative)
- Verajja Serif (based on Bitstream Vera Serif)
They both have support up to 63/64.
See examples below.
I just noticed the Verajja font, based on BT Vera Sans, also has Alternative Fractions.
The DejaVu Sans fonts included in LibreOffice are also based on Bitstream Vera Sans.
So you may want to try that one if sans serif is best for your application.
You can download these font files and specimen sheets here:
http://www.softerviews.org/Fonts.html
If this solves your issue please check the checkmark at left.
Update - adding Verajja (sans) examples (same as LO DejaVu Sans)
Update - adding a working document
OpenType Test - Alternative Fractions.odt
It also shows using a thinspace or hairspace to bring the fraction closer to the big number.
OpenType Test - Alternative Fractions.odt
If this solves your issue, please check the checkbox at left.
.