how do you enter a repeating line over a number?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using Microsoft Word and want to know how to put a line over a number to
show, mathematically, that it is repeating.
 
There are several ways. The easiest is to use the equation editor. Results
aren't always satisfactory, however, unless you write the entire number
using the equation editor. How you proceed depends on which version of Word
you use.

You can also do it using an ADVANCE field code.

3{ advance \l6 \u12}_

puts the _ character above the 3, approximately where you'd want it when
using a 12 point type size. Create the field by pressing Ctrl+F9, typing
advance \l6 \u12 between the {} braces, then press F9.
 
Here are three ways to put a bar over another character:
• use a field coded as {EQ \x\to(a)}. This solution increases the vertical spacing for the affected line (which you could get around
by reducing the field’s point size).
• use a field coded as { EQ \o (-,a)}. To achieve the desired result, superscript the first character in the field and subscript the
second character, which leads to small characters for both (which you could counter by increasing the point size), but this too
increases the vertical spacing for the affected line …
• use a field coded as {EQ \s\up6(\f(,a))}. Compared to the other solutions, this one has the advantage of retaining the character
sizes without increasing the line height. The ‘6’ in the formula controls the bar height.
In each example, replace the ‘a’ in the field with the desired character(s).

The create the field braces (ie '{ }'), press Ctrl-F9 - you can't simply type them.

Cheers
 
Thanks for the feedback. I am only able to get a number and then a
superscripted bar immediately after, for some reason. I tried the third
suggestion from "macropod" and it works for me.
 
I tried the third method and it worked great. (it was the easiest for me to
understand)
many thanks...

macropod said:
Here are three ways to put a bar over another character:
• use a field coded as {EQ \x\to(a)}. This solution increases the vertical spacing for the affected line (which you could get around
by reducing the field’s point size).
• use a field coded as { EQ \o (-,a)}. To achieve the desired result, superscript the first character in the field and subscript the
second character, which leads to small characters for both (which you could counter by increasing the point size), but this too
increases the vertical spacing for the affected line …
• use a field coded as {EQ \s\up6(\f(,a))}. Compared to the other solutions, this one has the advantage of retaining the character
sizes without increasing the line height. The ‘6’ in the formula controls the bar height.
In each example, replace the ‘a’ in the field with the desired character(s).

The create the field braces (ie '{ }'), press Ctrl-F9 - you can't simply type them.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

Teresa said:
I'm using Microsoft Word and want to know how to put a line over a number to
show, mathematically, that it is repeating.
 
Back
Top