Download Article
Two simple ways to add a line over text and equations in Word
Download Article

So you know how to underline just about anything in Word, but what if you need to overline something? This is a fairly common occurrence in statistics and other scientific fields, but Word doesn't exactly make it easy. There are a couple different ways you can do it using either field codes or the equation tool; see Step 1 below to learn how.

Overlining with Field Codes

  1. Press Ctrl+F9 (Windows) or Cmd+F9 (Mac) to insert field code brackets.
  2. Type "EQ \x \to()" between the field code brackets.
  3. Type the text you want overlined between the parentheses in the above formula.
  4. Press Shift+F9 with your cursor still between the brackets to apply the field code.
Method 1
Method 1 of 2:

Using Field Codes

Download Article
  1. How.com.vn English: Step 1 Save your file.
    Field codes can be finicky, and have been known to crash Word. Save your file before proceeding so that you have a version to go back to if things don't go right. You can also create a copy as an extra layer of protection.
  2. How.com.vn English: Step 2 Create a field code.
    Press Ctrl + F9 in Windows or Command + F9 on a Mac to create the field code brackets {}. The brackets will be highlighted with a gray color. In order to over line the text you want, you'll need to create a specialized field code. You will not be able to select text and apply the effect; instead, you will be typing the test you want over lined into the field code function itself.
    • Field codes will work on all versions of Word, for both Windows and Mac.
    Advertisement
  3. How.com.vn English: Step 3 Enter in the overline function.
    Type the following in between the brackets: EQ \x \to(). There is a space between "EQ" and "\x", as well as a space between "\x" and "to()". Make sure not to include any extra spaces, or the function will not work.
    • If you copy the formula from this article and paste it into your document, Word will most likely add spaces at each end, which will cause the field code to not work. Type it out yourself for best results.
  4. How.com.vn English: Step 4 Enter in the text you want over-lined.
    Place your cursor between the parentheses in the field code. Type the text you want, including any spaces. Your function should look like this: {EQ \x \to(your text goes here)}. Keep your cursor in the field code when you are finished.
  5. How.com.vn English: Step 5 Apply the field.
    Once you are finished entering your code and text, you can convert the field code into the finished product. With your cursor inside the field code, press Shift + F9. This will convert the code, displaying the text you entered in the parentheses with a line over it.
    • Using the overline effect will most likely skew your line spacing, so be sure to review your whole document to see if anything was affected.
  6. How.com.vn English: Step 6 Troubleshoot a non-working code.
    Field codes are powerful scripting tools, and can cause problems if not used correctly. If the formula was entered incorrectly in any way, the code may disappear, or your program may even crash. Make sure that you aren't inserting extra spaces or characters, and that the formula is typed exactly as seen above.
    • If your code disappears, press Shift + F9 to toggle it back to the code view. You can then review your code and make any necessary changes.[1]
  7. Advertisement
Method 2
Method 2 of 2:

Using the Equation Function

Download Article
  1. How.com.vn English: Step 1 Insert an equation object.
    You can use the Equation Editor to apply the mathematical overline accent to your text. The overline effect produced is slightly different than the field code function. You cannot select your text and then apply the equation, you will have to enter the text after creating the equation.
    • To insert an equation, click the Insert tab. Click the Equation button in the Symbols section. If you are using Word 2003 or XP, click Insert → Object → Microsoft Equation 3.0.
  2. How.com.vn English: Step 2 Choose the over bar accent.
    Before typing your text, add the accent. Click the Accents button in your Design section. There are actually to slightly different options you can pick from if you want an overline over your test. You can choose either the Bar, located in the Accents section, or the Overbar, located in the Over bars and Under bars section. Choose one and a small dotted box will appear in your formula field.
  3. How.com.vn English: Step 3 Enter your text.
    Click the small dotted box and begin entering your test. You will see the overline effect applied immediately as you type. When you are finished, click outside of the formula field.
  4. How.com.vn English: Step 4 Troubleshoot a non-working formula.
    If you can't get the overline to appear, chances are you didn't have the small dotted box selected when you entered your text. You must select it in order to type with the overline effect. Any text outside of the box will not be affected.[2]
  5. Advertisement


Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      About This Article

      How.com.vn is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 26 people, some anonymous, worked to edit and improve it over time. This article has been viewed 490,754 times.
      How helpful is this?
      Co-authors: 26
      Updated: March 19, 2024
      Views: 490,754
      Categories: Microsoft Word
      Thanks to all authors for creating a page that has been read 490,754 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement