![word如何添加行号](https://i-blog.csdnimg.cn/blog_migrate/ac984c91ef8b35e5fe0613075d0c08e4.png)
word如何添加行号
![Word Logo](https://i-blog.csdnimg.cn/blog_migrate/9b055db873faee7d82b107210198aa18.png)
Adding line numbers to a Microsoft Word document can help you point others to exact positions within it, especially in documents with multiple pages. Here’s how to quickly add line numbers in Word.
在Microsoft Word文档中添加行号可以帮助您将其他人指向该文档中的确切位置,尤其是在具有多页的文档中。 这是在Word中快速添加行号的方法。
These instructions should work for recent Office versions (from 2010 onwards). Before you begin, note that Word will treat tables and text boxes as if they’re on a single line, regardless of how large they are.
这些说明应适用于最新的Office版本(从2010年开始)。 在开始之前,请注意,Word会将表和文本框当作单行对待,无论它们有多大。
将行号添加到整个文档 (Adding Line Numbers to an Entire Document)
To start adding line numbers, you’ll need to open your Word document. In the ribbon bar at the top, click on the “Layout” tab. From here, click the “Line Numbers” button.
要开始添加行号,您需要打开Word文档。 在顶部的功能区栏中,单击“布局”选项卡。 在这里,单击“行号”按钮。
A drop-down menu offers several potential options. To have line numbers that run through your document continuously, rather than restarting on each new page, click on the “Continuous” option.
下拉菜单提供了多个潜在选项。 要使行号连续通过文档,而不是在每个新页面上重新启动,请单击“连续”选项。
![To add line numbers to a Word document entirely, click Layout > Line Numbers > Continuous](https://i-blog.csdnimg.cn/blog_migrate/3d5d6d8dec709af4567d0c481c7d3002.png)
To have the line numbers restart on each new page, select “Restart Each Page” instead.
要使行号在每个新页面上重新启动,请选择“重新启动每个页面”。
![To add line numbers to a Word document that restart on each new page, click Layout > Line Numbers > Restart Each Page](https://i-blog.csdnimg.cn/blog_migrate/869df6744d97dd704bf0c73f96925364.png)
Once selected, the line numbers will appear on the left side of the document page.
选择后,行号将出现在文档页面的左侧。
![An example of line numbers being used in a Microsoft Word document](https://i-blog.csdnimg.cn/blog_migrate/91d05149f798e928e95db156ab78239c.png)
Line numbers will appear only in the print view mode, so if you have another viewing mode selected, click on the “Print Layout” button in the bottom-right corner of your Word document window.
行号将仅在打印视图模式下显示,因此,如果您选择了其他查看模式,请单击Word文档窗口右下角的“打印布局”按钮。
![To view line numbers in Word, click on the Print Layout button in the bottom-right of the screen](https://i-blog.csdnimg.cn/blog_migrate/206185667e604ab79f25b67a07a6ee71.png)
将行号添加到各个部分 (Adding Line Numbers to Individual Sections)
It’s possible to separate pages of a Word document into individual sections using section breaks. You can set Word to restart the sequence of line numbers with each new section break.
可以使用分节符将 Word文档的页面分成单独的部分。 您可以将Word设置为在每个新的分节符后重新开始行号序列。
In your Word document, click the “Layout” tab in the ribbon bar and then click on the “Line Numbers” button. Select “Restart Each Section” from the drop-down menu.
在您的Word文档中,单击功能区栏中的“布局”选项卡,然后单击“行号”按钮。 从下拉菜单中选择“重新启动每个部分”。
![To add line numbers to a Word document, separated by section, click Layout > Line Numbers > Restart Each Section](https://i-blog.csdnimg.cn/blog_migrate/4101438b21d9cf91238a9ee4daf2065c.png)
If you want to add a new section break, click the “Breaks” button. This is just above the “Line Numbers” button in the “Layout” tab.
如果要添加新的分节符,请单击“断裂”按钮。 它位于“布局”选项卡中“行号”按钮的上方。
From there, click “Continuous” to add a new section break without shifting the Word cursor to a new page.
从此处单击“连续”以添加新的分节符,而无需将Word光标移至新页面。
![In Word, click Layout > Breaks > Continuous to add a section break](https://i-blog.csdnimg.cn/blog_migrate/693c16a1b0f98ec2fc42eeb300d05366.png)
A new set of line numbers will begin immediately underneath the newly-inserted section break.
一组新的行号将在新插入的分节符下立即开始。
![An example of line numbers in Word, with a new sequence of numbers starting after a section break](https://i-blog.csdnimg.cn/blog_migrate/a6d280e733501cf3b8b0c9972879797a.png)
删除行号 (Removing Line Numbers)
If you’d prefer to remove line numbers from your document, in whole or in part, you can also do this from the “Line Numbers” menu (Layout > Line Numbers).
如果您希望从文档中全部或部分删除行号,也可以从“行号”菜单(“布局”>“行号”)中删除。
To remove them from your document entirely, click “None” in the “Line Numbers” drop-down menu.
要从文档中完全删除它们,请在“行号”下拉菜单中单击“无”。
![To remove line numbers in Word, click Layout > Line Numbers > None](https://i-blog.csdnimg.cn/blog_migrate/8a199c6bf65a820f65318adaaa279ed3.png)
If you want to hide them from a particular paragraph, click on the paragraph and then select “Suppress for Current Paragraph” from the “Line Numbers” drop-down menu instead.
如果要从特定段落中隐藏它们,请单击该段落,然后从“行号”下拉菜单中选择“为当前段落隐藏”。
()
![要从段落中删除行号,请单击布局>行号>禁止当前段落](https://i-blog.csdnimg.cn/blog_migrate/b79e5733a20a445f507a329a12221e6d.png)
This will completely remove the paragraph from the line numbers sequence. The sequence will restart with the following number on the next line immediately underneath the paragraph.
这将从行号序列中完全删除该段落。 该序列将在该段落下一行的下一行以以下数字重新开始。
![An example of line numbers missing a paragraph in Word](https://i-blog.csdnimg.cn/blog_migrate/710e5b67ec5d0879299e35a77f8557f6.png)
行号格式 (Line Number Formatting)
By default, your line numbers will appear with the same font, size, and color as specified by the default “Line Number” style in Word. To modify the appearance of your line numbers, you’ll need to modify this text style, although Word hides it by default.
默认情况下,行号将以与Word中默认“行号”样式指定的相同的字体,大小和颜色显示。 若要修改行号的外观,您将需要修改此文本样式,尽管Word默认情况下会将其隐藏。
First, click on the “Home” tab in your ribbon bar. Click the vertical arrow menu button in the lower-right corner of the “Styles” section. This will bring up an extra pop-up “Styles” menu.
首先,单击功能区栏中的“主页”选项卡。 单击“样式”部分右下角的垂直箭头菜单按钮。 这将弹出一个额外的弹出“样式”菜单。
![Click the additional Styles menu button in the Home > Styles section](https://i-blog.csdnimg.cn/blog_migrate/4ae178922def673aa87fe27732e3a61a.png)
From there, click the “Options” button.
从那里,单击“选项”按钮。
![In the additional Styles menu, click Options](https://i-blog.csdnimg.cn/blog_migrate/d111e0db1e33fcfffe703f6f581a9850.png)
In the “Select Styles to Show” drop-down menu, select “All Styles” before clicking the “OK” button to save.
在“选择要显示的样式”下拉菜单中,选择“所有样式”,然后单击“确定”按钮进行保存。
![In the Style Pane Options menu, choose All Styles from the Select Styles to Show drop-down menu](https://i-blog.csdnimg.cn/blog_migrate/e3146b2c803330ba82ffb84707859b60.png)
You’ll now be able to edit the “Line Number” font style.
现在,您可以编辑“行号”字体样式。
In the pop-up “Styles” menu, find the “Line Number” option. Click on the side menu arrow next to the listing and then click on the “Modify” button.
在弹出的“样式”菜单中,找到“行号”选项。 单击列表旁边的侧面菜单箭头,然后单击“修改”按钮。
![In the Styles pop-up menu in Word, select Line Numbers, click the side arrow menu, then click Modify](https://i-blog.csdnimg.cn/blog_migrate/f2b3441c6b4edcf3db645186525746d5.png)
In the “Modify Style” menu, edit the formatting options for your line number style, as appropriate.
在“修改样式”菜单中,根据需要编辑行号样式的格式设置选项。
Click “OK” to apply the new style to your line numbers.
单击“确定”以将新样式应用于您的行号。
![Edit the Line Number style formatting options, then click OK to save](https://i-blog.csdnimg.cn/blog_migrate/825aafdd47eb4e94928733dac492fb9d.png)
Once applied, your new font style will be applied to all of the line numbers in your Word document.
一旦应用,您的新字体样式将应用于Word文档中的所有行号。
翻译自: https://www.howtogeek.com/451771/how-to-add-line-numbers-to-a-microsoft-word-document/
word如何添加行号