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

相关文章

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

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

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

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

在不同系统间迁移Python程序的方法与教程

《在不同系统间迁移Python程序的方法与教程》本文介绍了几种将Windows上编写的Python程序迁移到Linux服务器上的方法,包括使用虚拟环境和依赖冻结、容器化技术(如Docker)、使用An... 目录使用虚拟环境和依赖冻结1. 创建虚拟环境2. 冻结依赖使用容器化技术(如 docker)1. 创

关于Spring @Bean 相同加载顺序不同结果不同的问题记录

《关于Spring@Bean相同加载顺序不同结果不同的问题记录》本文主要探讨了在Spring5.1.3.RELEASE版本下,当有两个全注解类定义相同类型的Bean时,由于加载顺序不同,最终生成的... 目录问题说明测试输出1测试输出2@Bean注解的BeanDefiChina编程nition加入时机总结问题说明

Java使用POI-TL和JFreeChart动态生成Word报告

《Java使用POI-TL和JFreeChart动态生成Word报告》本文介绍了使用POI-TL和JFreeChart生成包含动态数据和图表的Word报告的方法,并分享了实际开发中的踩坑经验,通过代码... 目录前言一、需求背景二、方案分析三、 POI-TL + JFreeChart 实现3.1 Maven

使用Python在Excel中插入、修改、提取和删除超链接

《使用Python在Excel中插入、修改、提取和删除超链接》超链接是Excel中的常用功能,通过点击超链接可以快速跳转到外部网站、本地文件或工作表中的特定单元格,有效提升数据访问的效率和用户体验,这... 目录引言使用工具python在Excel中插入超链接Python修改Excel中的超链接Python

java中不同版本JSONObject区别小结

《java中不同版本JSONObject区别小结》本文主要介绍了java中不同版本JSONObject区别小结,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们... 目录1. FastjsON2. Jackson3. Gson4. org.json6. 总结在Jav

Python中连接不同数据库的方法总结

《Python中连接不同数据库的方法总结》在数据驱动的现代应用开发中,Python凭借其丰富的库和强大的生态系统,成为连接各种数据库的理想编程语言,下面我们就来看看如何使用Python实现连接常用的几... 目录一、连接mysql数据库二、连接PostgreSQL数据库三、连接SQLite数据库四、连接Mo

使用Python实现在Word中添加或删除超链接

《使用Python实现在Word中添加或删除超链接》在Word文档中,超链接是一种将文本或图像连接到其他文档、网页或同一文档中不同部分的功能,本文将为大家介绍一下Python如何实现在Word中添加或... 在Word文档中,超链接是一种将文本或图像连接到其他文档、网页或同一文档中不同部分的功能。通过添加超

python实现pdf转word和excel的示例代码

《python实现pdf转word和excel的示例代码》本文主要介绍了python实现pdf转word和excel的示例代码,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价... 目录一、引言二、python编程1,PDF转Word2,PDF转Excel三、前端页面效果展示总结一