Line on top of letter word

I learnt a new word the other day: macron. So, what’s a macron? It’s a bar or line over the top of a word or letter, such as those used to indicate the mean in mathematical equations.

And why did I learn this word? Because Stephanie, one of my team’s authors, wanted a line over the top of her capital D. She could get the line using Microsoft Word’s equation editor, but as she had to define what the D with the overbar/overline/overscore meant, she wanted to insert it into the Terms list too. However, it wouldn’t copy properly. So she asked me.

Equations are one of the few areas in Word that I’ve never tackled, so, as I told Steph, it was all a new experience for me. I confirmed that copying the D with the overbar was problematic when I used the equation editor, so I figured there had to be another way to get a line on top of a letter. And there is. In fact, there are several ways and the method you choose should be the one that gives you the result you’re looking for, taking into account your circumstances (e.g. will you have to copy from one document to another? is the method easy for you to use/remember? do you have to create a lot of these? is the font important?).

I Googled the problem and after some hunting around I discovered some great resources (listed at the end of this post), and discovered that the line over the top of a letter is called a ‘macron’. Armed with that little piece of information, back to Google, where I found out more about this beastie.

Please note: Some letters already have a macron built-in. Check the Windows Character Map (Start > All Programs > Accessories > System Tools > Character Map on Vista)  or use a program such as BabelMap to see if there’s an existing character you can use — if there is, use that as it’s the quickest and simplest method. If your letter doesn’t have an existing character (D doesn’t), you’ll have to create it yourself, which is what the rest of this article is about.

The methods below show how to create your own letter with a macron (I’ll use D as the example). I’ve used Word 2007 in these instructions, but Word 2003 and later versions of Word is similar for the most part.

Easiest ever method!

September 2018: Anik8G, a commenter on this post, shared his solution and it’s super easy. You can probably ignore all other solutions and use his. He has a short YouTube video that describes what he does: https://www.youtube.com/watch?v=3_h7ukThU_4, but you’ll likely need a little more information for it to work.

His solution uses the built-in Math AutoCorrect feature, which you need to turn on if it’s not already on. It’s under File > Options > Proofing. Click the AutoCorrect Options button, then select the Math AutoCorrect tab and check the two check boxes.

Look at the Replace and With lists, and note down the Replace string you want to add over your letter (in this example, I needed bar). Click OK and get back to your document. Now, type your letter, followed immediately by the Replace string, then a space. For my example, I typed Dbar<space> and that automatically added a bar over the top of the letter. Just brilliant!

Method 1: Use Word’s Equation Editor

Option 1: Use a built-in accent character

  1. Go to the Insert tab > Symbols group (far right), then click Equation.
  2. Select Insert New Equation from the bottom of the list.

    This opens the Equation Tools > Design tab and puts a Type equation here box into your document.
  3. Click Accent on the Design tab > Structures group.
  4. Scroll down past the Boxed Formulas section to the Overbars and Underbars section.
  5. Click the Overbar icon.

    You’ll see something like this in your document:
  6. Click in the dashed box, then type D.
  7. Click outside the equation box to hide it; you can show it again by clicking on the D with the macron.

Your character will look like this:

Option 2: Create your own

  1. Go to the Insert tab > Symbols group (far right), then click Equation.
  2. Select Insert New Equation from the bottom of the list. This opens the Equation Tools > Design tab and puts a Type equation here box into your document.
  3. Type D in the equation box, then select it.
  4. Click Accent on the Design tab > Structures group.
  5. Click the Bar icon.

    You’ll see something like this:
  6. Click in the dashed box, then type D.
  7. Click away from the equation box to hide it; you can show it again by clicking on the D with the macron.

Your character will look like this:

Note that the macron created using this option is slightly narrower than that created using the built-in accent (above), and is closer to the top of the letter.

Advantages:

  • Quick and easy
  • You get a properly formatted macron over the letter

Disadvantages:

  • You may not be able to change the font (I wasn’t able to change it from Cambria Math)
  • If you copy this equation from one Word document to another, you must remember to select Keep Source Formatting as soon as you paste it, otherwise the letter and its macron are treated as two separate characters.

Method 2: Use Word’s Equation field, with switches

To use this method, you need to know the character code to create a macron. If you have a numeric keypad, it’s Alt+0175; if you have a keyboard without a numeric keypad, it’s 00af (they are zeros) followed immediately by Alt+x. Test these key combinations in your document first to make sure you can create the macron successfully with the keyboard.

Option 1: Using the built-in field codes and switches

  1. Go to the Insert tab > Text group, then click Quick Parts. (Word 2003: Insert > Field)
  2. Select Field.
  3. Scroll down the list of Field names and select Eq.
  4. Click Field Codes.
  5. Click Options.
  6. Select the O() switch, then click Add to Field.
  7. In the Field codes: EQ Instructions box, type D,<macron_code> between the parentheses.
    The <macron_code> is the key combination you tested earlier to see if it worked — either Alt+0175 on the numeric keypad, or 00af followed by Alt+x. Make sure you also insert the comma between the D and the macron.
  8. Click OK to close the Field Options dialog box.
  9. Click OK again to close the Field dialog box.

Your letter with its macron should look like that below (I have field shading turned on); change the font if you don’t see the macron:

Option 2: Using the built-in field codes and Equation Editor

  1. Go to the Insert tab > Text group, then click Quick Parts. (Word 2003: Insert > Field)
  2. Select Field.
  3. Scroll down the list of Field names and select Eq.
  4. Click Equation Editor.
  5. A text box is added to the document, along with a floating Equation toolbar.
  6. Click the Overbar icon, then the icon for the bar.
  7. Type the letter D in the text box.
  8. Close the Equation toolbar, then click away from the text box.

You should see something like this:

Option 3: Create your own field

  1. Press Ctrl+F9 to insert an empty field.
  2. Type EQ<space>O (D,<macron_code>) between the curly brackets of the field.
  3. Right-click on the field, then select Toggle Field Codes to show the result:

Advantages:

  • Quick and relatively easy

Disadvantages:

  • Some fonts, such as Calibri (Body), do not display the macron. If you don’t see the macron over the letter, try changing the font — Arial, Times New Roman (TNR), Courier New all work; however, TNR puts the macron very close to the top of the D, making it hard to read. You’ll need to experiment with fonts.
  • You need to know how to create a macron using the keyboard.
  • You should have a basic understanding of field codes and switches.

Method 3: Create a box around the letter showing only the top border

  1. Go to the Insert tab > Text group, then click Quick Parts. (Word 2003: Insert > Field)
  2. Select Field.
  3. Scroll down the list of Field names and select Eq.
  4. Click Field Codes.
  5. Click Options.
  6. Select the X() switch, then click Add to Field.
  7. In the Field codes: EQ Instructions box, type D between the parentheses.
  8. Next, type a space after the X followed by to (for ‘top border’) then another space.
  9. Click OK to close the Field Options dialog box.
  10. Click OK again to close the Field dialog box.

Your letter with its macron should look like that below; change the font if you don’t see the macron:

Advantages:

  • Quick and relatively easy

Disadvantages:

  • You end up with a large space after the letter so if it’s to be part of a word, it will look strange
  • You get a longer line over the letter.
  • You should have a basic understanding of field codes and switches.

Method 4: Cheat!

Seriously. Sometimes we can overthink stuff, and if it’s a one-off and you’re limited for time, using a workaround may be your best option.

  1. Either create a graphic of what you want using graphics software, or take a screen capture of the full equation then crop it to show just what you want.
  2. Insert the graphic into the document.

Advantages:

  • Quick and easy if you know how to use graphics and/or screen capture software
  • Useful if you only have to do a few

Disadvantages:

  • Can’t be edited easily if you need to change the letter in the graphic — you may have to create a new graphic or screen shot

See also:

  • https://wordribbon.tips.net/T004314_Overlining_Characters.html
  • BabelMap — 100,000+ Unicode characters: https://cybertext.wordpress.com/2009/08/14/all-100k-unicode-characters-and-more/
  • Suzanne Barnhill’s excellent article on creating overbars: http://wordfaqs.ssbarnhill.com/Overbar.htm (Suzanne is a Microsoft Word MVP)
  • Wikipedia article on macrons: https://en.wikipedia.org/wiki/Macron_(diacritic)

[Links last checked September 2018]


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.

  1. Image titled Overline Characters in Microsoft Word Step 1

    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. Image titled Overline Characters in Microsoft Word Step 2

    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. Image titled Overline Characters in Microsoft Word Step 3

    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. Image titled Overline Characters in Microsoft Word Step 4

    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. Image titled Overline Characters in Microsoft Word Step 5

    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. Image titled Overline Characters in Microsoft Word Step 6

    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

  1. Image titled Overline Characters in Microsoft Word Step 7

    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. Image titled Overline Characters in Microsoft Word Step 8

    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. Image titled Overline Characters in Microsoft Word Step 9

    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. Image titled Overline Characters in Microsoft Word Step 10

    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

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

Video

Thanks for submitting a tip for review!

About This Article

Thanks to all authors for creating a page that has been read 475,300 times.

Is this article up to date?

How do you put a line on top of a letter in Word?

How do you put a line on top of a letter in Word?

Type the text you want to overline into your Word document and make sure the “Home” tab is active on the ribbon bar. Click the down arrow on the “Borders” button in the “Paragraph” section of the “Home” tab. Select “Top Border” from the drop-down menu.

What is a line on top of a letter called?

Diacritical marks can be squiggles, lines, or dots, and they can hover above a letter or be attached to it. They’re also known as diacritics or accents. No matter what you call them or what they look like, diacritical marks are there to show you how a letter sounds when you say it out loud.

What does a horizontal line over a letter mean?

A line over a letter in the dictionary is a «macron.» When you see this over a letter ( ¯ ) it means that the vowel says its name. … Unlike the other vowels, when you see the pronunciation of the word written out, you won’t see a «u» with a line over it where you think it should be.

How do you find the upper underscore?

To create the underscore, hold down Shift while also pressing — above the P key.

How to put a line above a letter in word?

Learn the steps on how to put a line above a letter or text in Microsoft Word. The first step is to highlight the text you want to place the line over and navigate to the insert tab then equation and lastly accent. From here, select the option Overbar which can be found under the subheading ‘Overbars and Underbars’.

What should I put in the first line of a letter?

When writing a letter, you want the person you are addressing to know who you are, your designation, where you come from, and the address they will use when responding to your letter. The sender’s contact information should be as follows: First line: Full name. Second line: Company name. Third line: Street address.

Where do you put the recipient’s name on a letter?

A recipient’s name. Print it at the top line of the address block. It should be centered in the middle of the envelope, a few lines below your address. 3. Title. If you know the person’s title, write it on the next line. In case you don’t have such information, put the name of the department instead. 4. Company’s name.

Where do you put the street address on a letter?

Exact street address. The company’s address should be placed in a single line. If it is too long, write the address in two different lines. In this case, fit the street name in the first address line.

Underlining is a common task in Word, and easily done, but what if you need to overline (also called overscore or overbar), some text? Overlining is common in scientific fields, but there are various reasons for overlining text. However, Word doesn’t make it easy.

You can apply overlining to your text in Word using a field code or the equation editor, or you can add a paragraph border to the top of the text.

Using a Field Code

First, we’ll show you how to use a field code to apply overlining to text. Open an existing or new document in Word and place the cursor where you want to put the text with overlining. Press “Ctrl + F9” to insert field code brackets, which are highlighted in gray. The cursor is automatically placed in between the brackets.

Enter the following text between the brackets.

EQ x to()

NOTE: There is a space between “EQ” and “x” and between “x” and “t()”. “EQ” is the field code used to create an equation and the “x” and “to” are switches used to format the equation or text. There are other switches you can use in the EQ field code, including ones that apply bottom, right, left, and box borders to the equation or text.

Put the cursor between the parentheses and enter the text you want to overline.

To display this as text rather than a field code, right-click anywhere in the field code and select “Toggle Field Codes” from the popup menu.

The text you entered into the field code displays with a line above it. When the field code displays as normal text, you can highlight it and apply various formatting to it, such as font, size, bold, color, etc.

NOTE: To display the field code again, simply right-click in the text and select “Toggle Field Codes” again. When you put the cursor in text generated from using a field code, the text is highlighted in gray, just like the field code.

If you want the line to extend beyond either end of the text, add spaces when entering the text into the field code. This is useful for creating lines with names under them for signing official documents.

Field codes work in all versions of Word, for both Windows and Mac.

Using the Equation Editor

You can also apply overlining to text using the equation editor. To do so, click the “Insert” tab in your Word document.

In the “Symbols” section of the “Insert” tab, click “Equation”.

The “Design” tab under “Equation Tools” displays. In the “Structures” section, click “Accent” to access various accents you can apply to the top of the text in the equation. There are two different accents you can use. Select either the “Bar” under “Accents” on the drop-down menu…

…or select the “Overbar” under “Overbars and Underbars”. The “Overbar” produces a slightly longer line above the text than the “Bar”.

The selected accent displays over the small dotted box in the equation object.

To enter your text, click on the dotted box to select it.

Type your text into the dotted box. The line extends to cover the text as you type.

Click outside of the equation object to view the finished “equation”, or overlined text.

Notice that when entering a hyphenated word or phrase into an equation in the Equation Editor, such as “How-To Geek”, there are spaces before and after the dash. That’s because it’s an equation and Word is treating the dash as a minus sign between two operands. If you would rather not have those spaces (or if you don’t have the Equation Editor installed), the first method above, or the following method, may work better for you.

Adding a Paragraph Border

Applying an overline to text can also be accomplished using paragraph borders. Type the text you want to overline into your Word document and make sure the “Home” tab is active on the ribbon bar. Click the down arrow on the “Borders” button in the “Paragraph” section of the “Home” tab.

Select “Top Border” from the drop-down menu.

The line above the paragraph extends from the left margin to the right margin. However, you can adjust the indents for that paragraph to shorten the line. To do this, you must make the ruler visible. Click the “View” tab.

In the “Show” section of the “View” tab, click the “Ruler” check box so there is a check mark in the check box.

To change the indents for the paragraph, put the cursor in the paragraph and put your mouse over one of the indent markers on the ruler. For this example, we’ll make the “Right Indent” bigger, shortening the line from the right.

NOTE: To move the left indent, put your mouse over the small box directly under the two small triangles on the left side of the ruler to move the triangles together. Do NOT move the triangles separately.

Click and drag the indent until the line is the length you want.

Release the mouse button when you’re done moving the indent. The line is now shorter.

Until Microsoft adds this capability as a regular feature, these methods provide ways around the limitation. They may not be as easy as highlighting text and clicking a single button, or pressing a shortcut key, but they’ll work in a pinch.

READ NEXT

  • › 5 Ways to Underline in Microsoft Word
  • › Google Chrome Is Getting Faster
  • › How to Adjust and Change Discord Fonts
  • › The New NVIDIA GeForce RTX 4070 Is Like an RTX 3080 for $599
  • › BLUETTI Slashed Hundreds off Its Best Power Stations for Easter Sale
  • › This New Google TV Streaming Device Costs Just $20
  • › HoloLens Now Has Windows 11 and Incredible 3D Ink Features

HTTA is reader supported. When you buy through links on our site, we may earn an affiliate commission at no extra cost to you. Learn more.

In today’s article, you’ll learn how to use some keyboard shortcuts and other methods to type or insert the letter A with line over it Symbol in MS Word for Windows.

Just before we begin, I’ll like to tell you that you can also use the button below to copy and paste the A with line over it into your work for free.

However, if you just want to type this symbol on your keyboard, the actionable steps below will show you everything you need to know.

Letter A with line over it [Ā] Quick Guide

To type the A with line over it Symbol on Word for Windows, simply press down the Alt key and type 256 or 257 using the numeric keypad of your keyboard, then let go of the Alt key. This shortcut works only on MS Word.

The below table contains all the information you need to type this Symbol in Word using the keyboard.

Name A with Macron
Symbol Ā
Uppercase Alt Code 256
Lowercase Alt Code 257
Shortcut (Word) Alt+256 or 257

letter a with line on top or Macron alt code

The quick guide above provides some useful shortcuts and alt codes on how to type the letter A with line over it symbol in Word on Windows.

For more details, below are some other methods you can also use to insert this symbol into your work such as Word or Excel document.

How to type Letter A with line over it in Word

Microsoft Office provides several methods for typing the letter A with line over it or inserting symbols that do not have dedicated keys on the keyboard.

In this section, I will make available for you several different methods you can use to type or insert this and any other symbol on your PC, like in MS Word for Windows.

Without any further ado, let’s get started.

See Also: How to type Yen Symbol in Word

Using the A with line over it Alt Code (Windows Only)

The A with Macron Symbol alt code is 256.

Even though this Symbol has no dedicated key on the keyboard, you can still type it on the keyboard with the Alt code method. To do this, press and hold the Alt key whilst pressing the A with line over it Alt code (i.e. 256) using the numeric keypad.

This method works on Windows only. And your keyboard must also have a numeric keypad.

Below is a break-down of the steps you can take to type the letter A with Macron Sign on your Windows PC:

  • Place your insertion pointer where you need thesymbol.
  • Press and hold one of the Alt keys on your keyboard.
  • Whilst holding on to the Alt key, press the A with Macron alt code (256 or 257). You must use the numeric keypad to type the alt code. If you are using a laptop without the numeric keypad, this method may not work for you. On some laptops, there’s a hidden numeric keypad which you can enable by pressing Fn+NmLk on the keyboard.
  • Release the Alt key after typing the Alt code to insert the Symbol into your document.
letter a with line on top or Macron alt code

This is how you may type this symbol in Word using the Alt Code method.

Copy and Paste letter A with line over it (Ā)

Another easy way to get the A with line over it Symbol on any PC is to use my favorite method: copy and paste.

All you have to do is to copy the symbol from somewhere like a web page, or the character map for windows users, and head over to where you need the symbol (say in Word or Excel), then hit Ctrl+V to paste.

Below is the symbol for you to copy and paste into your Word document. Just select it and press Ctrl+C to copy, switch over to Microsoft Word, place your insertion pointer at the desired location, and press Ctrl+V to paste.

Ā

Alternatively, just use the copy button at the beginning of this post.

Using insert Symbol dialog box (Word, Excel, PowerPoint)

The insert symbol dialog box is a library of symbols from where you can insert any symbol into your Word document with just a couple of mouse clicks.

Obey the following steps to insert this symbol (Ā) in Word or Excel using the insert symbol dialog box.

  • Open your Word/Excel/PowerPoint document.
  • Click to place the insertion pointer where you wish to insert the symbol.
  • Go to the Insert tab.
Click on the Insert tab
  • In the Symbols category, click on the Symbol drop-down and select the More Symbols button.
Go to Symbols>More Symbols

The Symbol dialog box will appear.

  • To easily locate the A with Macron symbol, type 0100 in the character code field at the bottom of the window. After typing this character code, the A with line over it symbol will appear selected.
  • Now click on the Insert button to insert the symbol into your document.
insert letter a with line over it in Word
  • Close the dialog.

The symbol will then be inserted exactly where you placed the insertion pointer.

These are the steps you may use to insert this Symbol in Word.

Conclusion

As you can see, there are several different methods you can use to type the A with Macron Sign in Microsoft Word.

Using the alt code shortcut for Word makes the fastest option for this task. Shortcuts are always fast.

Thank you very much for reading this blog.

Понравилась статья? Поделить с друзьями:
  • Line numbering in word file
  • Line numbered in word
  • Line next to text in word
  • Line microsoft time word
  • Line leaders in word