java 文档插入页眉页脚
Adding a header of footer in Word allows you to add information that’s displayed on every page. There may be various reasons for adding the filename to the header or footer, and we’ll show you how to do this.
在Word中添加页脚的页眉使您可以添加在每个页面上显示的信息。 将文件名添加到页眉或页脚可能有多种原因,我们将向您展示如何执行此操作。
NOTE: We used Word 2013 to illustrate this feature and, for this example, we added the filename to the header.
注意:我们使用Word 2013来说明此功能,并且在本示例中,我们将文件名添加到标题中。
Click the “Insert” tab and insert an empty header or footer as described in our article about adding a header or footer to your Word document. For this example, we created an empty header for the filename.
单击“插入”选项卡,然后插入一个空的页眉或页脚,如我们有关在Word文档中添加页眉或页脚的文章所述。 在此示例中,我们为文件名创建了一个空标题。
Once you’ve added an empty header (or footer), click the “Insert” tab.
添加空的页眉(或页脚)后,点击“插入”标签。
In the “Text” section of the “Insert” tab, click the “Quick Parts” button.
在“插入”选项卡的“文本”部分中,单击“快速零件”按钮。
NOTE: The text on the buttons may not display, depending on the size of the Word window. If you don’t see text next to the button, look for the icon pointed out in the image below.
注意:根据Word窗口的大小,按钮上的文本可能不会显示。 如果您没有在按钮旁边看到文本,请查找下图中指出的图标。
Select “Field” from the drop-down menu.
从下拉菜单中选择“字段”。
The “Field” dialog box displays. In the “Field names” list, scroll down and select “FileName” in the list. If you want to include the full path to the file in the filename, select the “Add path to filename” check box in the “Field options” section so there is a check mark in the box. Click “OK” to accept your selections and close the “Field” dialog box.
显示“字段”对话框。 在“字段名称”列表中,向下滚动并在列表中选择“文件名”。 如果要在文件名中包括文件的完整路径,请在“字段选项”部分中选中“向文件名添加路径”复选框,以便在该复选框中有一个复选标记。 单击“确定”接受您的选择,然后关闭“字段”对话框。
The filename is inserted into the header (or footer).
文件名将插入到页眉(或页脚)中。
To return to the main part of your document, double-click on the text area of your document or click the “Close Header and Footer” button in the “Close” section of the header and footer “Design” tab.
要返回文档的主要部分,请双击文档的文本区域,或在页眉和页脚“设计”选项卡的“关闭”部分中单击“关闭页眉和页脚”按钮。
NOTE: If you use the “Close Header and Footer” button, you are returned to where you left off. However, if you double-click on the body text of your document to return to editing it, you are returned to the beginning of your document.
注意:如果使用“关闭页眉和页脚”按钮,则会返回到上次停止的位置。 但是,如果双击文档的正文文本以返回对其进行编辑,则将返回到文档的开头。
java 文档插入页眉页脚