
Tips.Net > WordTips Home > Editing > Single-Character Fractions
Summary: When typing in Word, some fractions are converted into a professional-looking character, while others are not. This tip explains why that occurs and provides some ideas on how all your fractions can look their best. (This tip works with Microsoft Word 97, Word 2000, Word 2002, and Word 2003.)
You may have noticed that if you type fractions into a Word document, some fractions are automatically changed to a single-character fraction, and others remain just as you typed them. The reason for this is simple, really: Word has a setting that does the conversion to a single-character fraction, but only for some fractions.
To see where the setting is made, take a look at the AutoFormat As You Type settings (Tools | AutoCorrect | AutoFormat As You Type). You will notice a checkbox labeled Fractions With Fraction Character. With this checkbox selected, Word replaces some fractions with a single-character version of the fraction.
Why did I say that Word only replaces some fractions? Because that is all Word can do. Most fonts contain a very limited number of fractions as single characters. Fractions such as 1/2, 1/4, and 3/4 all have a single-character equivalent in most fonts, so it is "safe" for Word to do the automatic conversion. Other fonts may include some other single-character representation of common fractions. For instance, Times New Roman has characters for 1/3, 2/3, 1/8, 3/8, 5/8, and 7/8. Since these single-character fractions aren't in all fonts, however, Word won't do the conversion automatically.
The upshot of all this is that single-character versions of fractions are dependent on the font you are using. Further, automatic translation of a limited number of fractions to their single-character counterparts is controlled in Word by an AutoFormat As You Type setting. If you know that the font you are using has additional single-character fractions, then you can create an AutoCorrect entry to do the conversion for you. (How to use AutoCorrect has been discussed in other issues of WordTips.)
Understanding that the display of fractions is primarily dependent on the font being used, some people choose to not rely on single-character versions of fractions. Instead, they turn off the AutoFormat As You Type setting for fractions and instead format three-character fractions all the time. They either leave the fraction numerator and denominator as regular type, or they superscript the numerator and subscript the denominator. By adjusting spacing between the characters, you can achieve a decent-looking fraction. You can then copy the formatted text to an AutoCorrect entry for future use.
If you don't mind making macros, you can create some handy ones that will do the formatting of fractions for you. The following VBA macro will format any fraction; all you need to do is select the characters that make up the fraction and then run the macro.
Sub MakeFraction()
Dim fractionbit As Range
Dim iSlashPlace As Integer
With Selection
iSlashPlace = InStr(.Text, "/")
Set fractionbit = ActiveDocument.Range _
(Start:=.Start, End:=.Start + iSlashPlace - 1)
fractionbit.Font.Superscript = True
Set fractionbit = ActiveDocument.Range _
(Start:=.Start + iSlashPlace, End:=.End)
fractionbit.Font.Subscript = True
End With
End Sub
The macro formats the portion of the selection before the slash as superscript, and the portion after as subscript.
Still another approach to fractions is to use a program that is better-suited to creating them. For instance, you can use the Equation Editor program supplied with Word to create fractions. Detailed information on how to use the Equation Editor for this purpose is available at this site:
http://www.dessci.com/en/support/support/tutorials/autocorrect/tutorial.htm
If you want additional information on how to create different types of fractions in Word, a great place to start is the Word MVP site:
http://word.mvps.org/FAQs/Formatting/CreateFraction.htm
Tip #1634 applies to Microsoft Word versions: 97 2000 2002 2003
Ultimate Library! An amazing resource that brings together, in one place, the collected knowledge of everything ever published in WordTips. The library combines two powerful elements to make you more productive: solutions and convenience. Here's where you get your own copy of everything ever published in WordTips.
Check out WordTips Ten-Year Library today!
Word includes two powerful search engines. Do you know how to use them both? You can discover new knowledge with WordTips: Find and Replace. (more information...)
Ask a Word Question
Make a Comment
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips