文本上划线_如何在Word中对文本进行上划线

文本上划线_如何在Word中对文本进行上划线

文本上划线

文本上划线_如何在Word中对文本进行上划线

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.

下划线是Word中的一项常见任务,很容易完成,但是如果您需要对某些文本进行上划线(也称为上划线或下划线),该怎么办? 上划线在科学领域很常见,但是有很多原因使上划线。 但是,Word并不容易。

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.

您可以使用域代码或公式编辑器对Word中的文本应用上划线,或者可以在文本顶部添加段落边框。

使用域代码 (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.

首先,我们将向您展示如何使用域代码对文本进行覆盖。 在Word中打开一个现有的或新的文档,然后将光标放在您要覆盖文本的位置。 按“ Ctrl + F9”插入字段代码括号,该括号以灰色突出显示。 光标会自动放在括号之间。

文本上划线_如何在Word中对文本进行上划线

Enter the following text between the brackets.

在方括号之间输入以下文本。

EQ \x \to()

情商\ 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.

注意:“ EQ”和“ \ x”之间以及“ \ x”和“ \ t()”之间有一个空格。 “ EQ”是用于创建方程式的域代码,“ \ x”和“ \ to”是用于格式化方程式或文本的开关。 您还可以在EQ域代码中使用其他开关 ,包括将下边框,右边框,左边框和方框边框应用于等式或文本的开关

文本上划线_如何在Word中对文本进行上划线

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

将光标放在括号之间,然后输入要划线的文本。

文本上划线_如何在Word中对文本进行上划线

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.

要将其显示为文本而不是域代码,请右键单击域代码中的任意位置,然后从弹出菜单中选择“切换域代码”。

文本上划线_如何在Word中对文本进行上划线

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.

注意:要再次显示域代码,只需右键单击文本,然后再次选择“切换域代码”。 当您将光标放在使用域代码生成的文本中时,该文本将像域代码一样以灰色突出显示。

文本上划线_如何在Word中对文本进行上划线

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.

如果要使行延伸到文本的两端之外,请在将文本输入域代码时添加空格。 这对于创建带有以下名称的行以签名正式文档很有用。

文本上划线_如何在Word中对文本进行上划线

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

对于Windows和Mac,域代码均可在Word的所有版本中使用。

使用方程式编辑器 (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.

您还可以使用公式编辑器对文本应用上划线。 为此,请在Word文档中单击“插入”选项卡。

文本上划线_如何在Word中对文本进行上划线

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

在“插入”选项卡的“符号”部分中,单击“方程式”。

文本上划线_如何在Word中对文本进行上划线

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…

显示“方程式工具”下的“设计”选项卡。 在“结构”部分中,单击“重音”以访问可以应用于等式中文本顶部的各种重音。 您可以使用两种不同的口音。 在下拉菜单的“重音”下选择“条形图” ...

文本上划线_如何在Word中对文本进行上划线

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

…或在“上方和下方”下选择“上方”。 “ Overbar”在文本上方产生的线条比“ Bar”稍长。

文本上划线_如何在Word中对文本进行上划线

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

所选的重音显示在方程式对象中的小虚线框中。

文本上划线_如何在Word中对文本进行上划线

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

要输入您的文本,请单击虚线框将其选中。

文本上划线_如何在Word中对文本进行上划线

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

在虚线框中键入您的文本。 该行会延伸以覆盖您键入的文本。

文本上划线_如何在Word中对文本进行上划线

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

在方程式对象之外单击以查看完成的“方程式”或带上划线的文本。

文本上划线_如何在Word中对文本进行上划线

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.

请注意,在方程式编辑器中的方程式中输入带连字符的单词或词组(例如“ How-To Geek”)时,破折号前后都有空格。 这是因为这是一个等式,Word将破折号视为两个操作数之间的减号。 如果您不希望有这些空格(或者您没有安装公式编辑器),则上面的第一个方法或下面的方法可能更适合您。

添加段落边框 (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.

在文字上加上上划线也可以使用段落边框来完成。 在Word文档中键入要覆盖的文本,并确保功能区栏上的“主页”选项卡处于活动状态。 单击“主页”选项卡的“段落”部分中“边框”按钮上的向下箭头。

文本上划线_如何在Word中对文本进行上划线

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

从下拉菜单中选择“顶部边框”。

文本上划线_如何在Word中对文本进行上划线

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.

段落上方的线从左边缘延伸到右边缘。 但是,您可以调整该段落的缩进以缩短行。 为此,您必须使标尺可见。 点击“查看”标签。

文本上划线_如何在Word中对文本进行上划线

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

在“视图”选项卡的“显示”部分,单击“标尺”复选框,以便在复选框中有一个复选标记。

文本上划线_如何在Word中对文本进行上划线

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.

要更改段落的缩进,请将光标放在段落中,然后将鼠标放在标尺上的缩进标记之一上。 对于此示例,我们将“ Right Indent”变大,从右侧缩短该行。

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.

注意:要移动左缩进,请将鼠标放在标尺左侧两个小三角形正下方的小框上,以将三角形一起移动。 请勿单独移动三角形。

文本上划线_如何在Word中对文本进行上划线

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

单击并拖动缩进,直到该行是所需的长度。

文本上划线_如何在Word中对文本进行上划线

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

完成缩进后,释放鼠标按钮。 该行现在更短。

文本上划线_如何在Word中对文本进行上划线

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.

在Microsoft将此功能作为常规功能添加之前,这些方法提供了解决限制的方法。 它们可能不像突出显示文本并单击单个按钮或按快捷键那样容易,但是它们会在紧要关头工作。

翻译自: https://www.howtogeek.com/226757/how-to-overline-text-in-word/

文本上划线