Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.
With more than 35 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company.
Learn more about Allen...
Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Formatting Fractions.
You may have noticed that if you type 1/2 in a Word document, the characters are converted automatically to a very nicely formatted fraction. The same is true for other common fractions, such as 1/4 and 3/4. This is because Word replaces those characters with actual single-character font representations of those fractions. Most fonts, however, don't have such characters for other less-common fractions.
One way around this conundrum is to fiddle with the font characteristics of the numbers in your fraction so that the fraction appears as desired. Many of the formatting settings depend on which font you are using, but you can use the following steps as guidance for how to proceed:
There are a couple of things to point out about these seemingly simple steps. First of all, you don't have to use superscript and subscript, if you don't want to. (It is just simpler that way.) You can, if you so desire, just adjust the point size of the font used for the numerator and denominator. A good rule of thumb is to simply make the font size 50% of whatever type size your normal text is. For instance, if your text is 10-point, you would use 5-point; if it is 11-point, you would use 5.5-point.
Using this approach, the numerator would (of course) need to be raised a bit. This is done by following these steps:
Figure 1. The Character Spacing tab of the Font dialog box.
Finally, if you decide to replace the slash in your fraction, you will need to pick one using the Symbol dialog box. The reason you may want to do this is that the slash used in the single-character fonts built into Word (you remember—those created when you type the characters "1/2") uses a slash that is at a different angle than the slash shown when you simply type a slash. There are several good options for this "improved slash," depending on the font you are using. You will need to look around and find the one you like the best.
Once you have created your fraction, the easiest way to use it is to define it as an AutoCorrect entry. (How to do this has been covered in other issues of WordTips.) Simply make sure that the AutoCorrect entry is saved as formatted text, and you will be able to use your new fraction quickly and easily.
If you use a limited number of fractions over and over again, the AutoCorrect approach is nice and easy. If you use a lot of different fractions, you can instead use a macro to provide the formatting you need. The following macro, FmtFraction, will use the superscript/subscript method to produce a formatted fraction.
Sub FmtFraction() Dim OrigFrac As String Dim Numerator As String, Denominator As String Dim NewSlashChar As String Dim SlashPos As Integer NewSlashChar = "/" Selection.MoveLeft Unit:=wdWord, count:=3, Extend:=wdExtend OrigFrac = Selection SlashPos = Instr(OrigFrac, "/") Numerator = Left(OrigFrac, SlashPos - 1) Denominator = Right(OrigFrac, Len(OrigFrac) - SlashPos) Selection.Font.Superscript = True Selection.TypeText Text:= Numerator Selection.Font.Superscript = False Selection.TypeText Text:= NewSlashChar Selection.Font.Subscript = True Selection.TypeText Text:= Denominator Selection.Font.Subscript = False End Sub
To use the macro, simply position the insertion point at the end of the fraction you typed, and then run it. If you want to change the slash character used, change the character assigned to the NewSlashChar variable.
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1803) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Formatting Fractions.
Step Up and Take Control! Subscribers to WordTips know just how valuable a resource it is. WordTips Premium provides twice the number of exceptional, easy-to-understand tips every week in an ad-free newsletter, as well as substantial discounts on WordTips archives and e-books. Check out WordTips Premium today!