word页眉页脚每页不同_如何在Word的页眉或页脚中插入Y的第X页

2023-10-09 06:10

本文主要是介绍word页眉页脚每页不同_如何在Word的页眉或页脚中插入Y的第X页,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

word页眉页脚每页不同

word页眉页脚每页不同

00_lead_image_page_x_of_y

We’ve shown you how to add “Page X of Y” to a header of footer of large spreadsheets in Excel. The same thing can be done in Word for longer documents. It’s a bit different than in Excel, so read on to find out how.

我们已经向您展示了如何在Excel 中将“ Y的第X页”添加到大型电子表格的页脚页眉中 。 对于更长的文档,可以在Word中完成同一操作。 它与Excel中有些不同,因此请继续阅读以了解操作方法。

There are two ways to add “Page X of Y” to a header or footer in Word. The easiest way is to use the Page Number gallery. However, using the Page Number gallery replaces any content you already have in your header or footer. If you currently have content in your header or footer and you want to add “Page X of Y” to that content, you can use field codes. We’ll show you both methods.

有两种方法可以将“ Y的第X页”添加到Word的页眉或页脚中。 最简单的方法是使用页码库。 但是,使用“页码”库将替换页眉或页脚中已有的所有内容。 如果您当前在页眉或页脚中有内容,并且想要在该内容中添加“ Y的第X页”,则可以使用域代码。 我们将向您展示这两种方法。

NOTE: When we say to type something in this article and there are quotes around the text, DO NOT type the quotes, unless we specify otherwise.

注意:当我们说要在本文中键入某些内容并且文本周围有引号时,请不要键入引号,除非我们另外指定。

使用页码库 (Using the Page Number Gallery)

To insert “Page X of Y” using the Page Number gallery, click the “Insert” tab.

要使用页码库插入“ Y的第X页”,请单击“插入”选项卡。

01_clicking_insert_tab

In the “Header & Footer” section, click “Page Number” and move your mouse over either “Top of Page” or “Bottom of Page” in the drop-down menu. A list of readymade page number styles displays. Scroll down to the “Page X of Y” section and select one of the “Bold Numbers” styles, depending on whether you want your page numbers left-, center-, or right-aligned.

在“页眉和页脚”部分中,单击“页码”,然后将鼠标移到下拉菜单中的“页面顶部”或“页面底部”上。 显示现成的页码样式列表。 向下滚动到“ Y的第X页”部分,然后选择“加粗数字”样式之一,具体取决于您希望页面编号是左对齐,居中对齐还是右对齐。

02_inserting_bold_numbers_2

The page number and total number of pages are added to the header or footer.

页码和总页数添加到页眉或页脚。

03_page_x_of_y_added_using_gallery

Note that the page numbers are bold. If you don’t want the page numbers to be bold, select the text and click “Bold” in the “Font” section of the “Home” tab.

请注意,页码为粗体。 如果您不希望页码为粗体,请选择文本,然后在“主页”选项卡的“字体”部分中单击“粗体”。

03a_turning_off_bold

使用栏位 (Using Fields)

If you already have content in your header or footer and want to add “Page X of Y” without replacing that content, you can add page numbers using fields. To do so, open the header or footer and place the cursor where you want to insert “Page X of Y”. Type “Page” and a space.

如果页眉或页脚中已经有内容,并且想添加“ Y的第X页”而不替换该内容,则可以使用字段添加页码。 为此,请打开页眉或页脚,然后将光标放在要插入“ Y的第X页”的位置。 输入“页面”和一个空格。

04_typing_page

Click the “Insert” tab.

点击“插入”标签。

05_clicking_insert_tab_again

In the “Text” section, click the “Quick Parts” button and select “Field” from the drop-down menu.

在“文本”部分中,单击“快速零件”按钮,然后从下拉菜单中选择“字段”。

06_selecting_field

The “Field” dialog box displays. In the “Field names” list, scroll down and select “Page”. You can change the format of the page number by selecting an option in the “Format” list, but we’ll accept the default format. Click “OK”.

显示“字段”对话框。 在“字段名称”列表中,向下滚动并选择“页面”。 您可以通过在“格式”列表中选择一个选项来更改页码的格式,但是我们将接受默认格式。 点击“确定”。

07_selecting_page

The page number of the current page is inserted at the cursor. After the page number, type a space, then “of”, then another space.

当前页面的页码插入到光标处。 在页码之后,键入一个空格,然后输入“ of”,然后输入另一个空格。

08_entering_of

Click the “Quick Parts” button in the “Text” section of the “Insert” tab again and select “Field” from the drop-down menu. This time, select “NumPages” in the “Field names” list. Accept the default values for “Format” and “Numeric format” and click “OK”.

再次单击“插入”选项卡的“文本”部分中的“快速零件”按钮,然后从下拉菜单中选择“字段”。 这次,在“字段名称”列表中选择“ NumPages”。 接受“格式”和“数字格式”的默认值,然后单击“确定”。

09_selecting_numpages

The page number and total number of pages are inserted at the cursor in your header or footer.

页码和总页数插入到页眉或页脚中的光标处。

10_page_x_of_y_inserted_using_fields

Get more information on how to add page numbers, omit the page number on the first page of a document, or start a new section on an odd page number in Word.

获取有关如何添加页码的更多信息,在文档的第一页上省略页码 ,或在Word中以奇数页码开始新的部分 。

翻译自: https://www.howtogeek.com/231377/how-to-insert-page-x-of-y-into-a-header-or-footer-in-word/

word页眉页脚每页不同

这篇关于word页眉页脚每页不同_如何在Word的页眉或页脚中插入Y的第X页的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/170889

相关文章

Java利用docx4j+Freemarker生成word文档

《Java利用docx4j+Freemarker生成word文档》这篇文章主要为大家详细介绍了Java如何利用docx4j+Freemarker生成word文档,文中的示例代码讲解详细,感兴趣的小伙伴... 目录技术方案maven依赖创建模板文件实现代码技术方案Java 1.8 + docx4j + Fr

vue使用docxtemplater导出word

《vue使用docxtemplater导出word》docxtemplater是一种邮件合并工具,以编程方式使用并处理条件、循环,并且可以扩展以插入任何内容,下面我们来看看如何使用docxtempl... 目录docxtemplatervue使用docxtemplater导出word安装常用语法 封装导出方

MySQL INSERT语句实现当记录不存在时插入的几种方法

《MySQLINSERT语句实现当记录不存在时插入的几种方法》MySQL的INSERT语句是用于向数据库表中插入新记录的关键命令,下面:本文主要介绍MySQLINSERT语句实现当记录不存在时... 目录使用 INSERT IGNORE使用 ON DUPLICATE KEY UPDATE使用 REPLACE

MySQL中慢SQL优化的不同方式介绍

《MySQL中慢SQL优化的不同方式介绍》慢SQL的优化,主要从两个方面考虑,SQL语句本身的优化,以及数据库设计的优化,下面小编就来给大家介绍一下有哪些方式可以优化慢SQL吧... 目录避免不必要的列分页优化索引优化JOIN 的优化排序优化UNION 优化慢 SQL 的优化,主要从两个方面考虑,SQL 语

Java利用poi实现word表格转excel

《Java利用poi实现word表格转excel》这篇文章主要为大家详细介绍了Java如何利用poi实现word表格转excel,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 一、每行对象类需要针对不同的表格进行对应的创建。package org.example.wordToEx

Python如何在Word中生成多种不同类型的图表

《Python如何在Word中生成多种不同类型的图表》Word文档中插入图表不仅能直观呈现数据,还能提升文档的可读性和专业性,本文将介绍如何使用Python在Word文档中创建和自定义各种图表,需要的... 目录在Word中创建柱形图在Word中创建条形图在Word中创建折线图在Word中创建饼图在Word

Jmeter如何向数据库批量插入数据

《Jmeter如何向数据库批量插入数据》:本文主要介绍Jmeter如何向数据库批量插入数据方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录Jmeter向数据库批量插入数据Jmeter向mysql数据库中插入数据的入门操作接下来做一下各个元件的配置总结Jmete

Python批量调整Word文档中的字体、段落间距及格式

《Python批量调整Word文档中的字体、段落间距及格式》这篇文章主要为大家详细介绍了如何使用Python的docx库来批量处理Word文档,包括设置首行缩进、字体、字号、行间距、段落对齐方式等,需... 目录关键代码一级标题设置  正文设置完整代码运行结果最近关于批处理格式的问题我查了很多资料,但是都没

使用Python快速实现链接转word文档

《使用Python快速实现链接转word文档》这篇文章主要为大家详细介绍了如何使用Python快速实现链接转word文档功能,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 演示代码展示from newspaper import Articlefrom docx import

Python如何计算两个不同类型列表的相似度

《Python如何计算两个不同类型列表的相似度》在编程中,经常需要比较两个列表的相似度,尤其是当这两个列表包含不同类型的元素时,下面小编就来讲讲如何使用Python计算两个不同类型列表的相似度吧... 目录摘要引言数字类型相似度欧几里得距离曼哈顿距离字符串类型相似度Levenshtein距离Jaccard相