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

相关文章

springboot集成easypoi导出word换行处理过程

《springboot集成easypoi导出word换行处理过程》SpringBoot集成Easypoi导出Word时,换行符n失效显示为空格,解决方法包括生成段落或替换模板中n为回车,同时需确... 目录项目场景问题描述解决方案第一种:生成段落的方式第二种:替换模板的情况,换行符替换成回车总结项目场景s

SpringBoot分段处理List集合多线程批量插入数据方式

《SpringBoot分段处理List集合多线程批量插入数据方式》文章介绍如何处理大数据量List批量插入数据库的优化方案:通过拆分List并分配独立线程处理,结合Spring线程池与异步方法提升效率... 目录项目场景解决方案1.实体类2.Mapper3.spring容器注入线程池bejsan对象4.创建

C#使用Spire.Doc for .NET实现HTML转Word的高效方案

《C#使用Spire.Docfor.NET实现HTML转Word的高效方案》在Web开发中,HTML内容的生成与处理是高频需求,然而,当用户需要将HTML页面或动态生成的HTML字符串转换为Wor... 目录引言一、html转Word的典型场景与挑战二、用 Spire.Doc 实现 HTML 转 Word1

SpringBoot实现不同接口指定上传文件大小的具体步骤

《SpringBoot实现不同接口指定上传文件大小的具体步骤》:本文主要介绍在SpringBoot中通过自定义注解、AOP拦截和配置文件实现不同接口上传文件大小限制的方法,强调需设置全局阈值远大于... 目录一  springboot实现不同接口指定文件大小1.1 思路说明1.2 工程启动说明二 具体实施2

Java实现在Word文档中添加文本水印和图片水印的操作指南

《Java实现在Word文档中添加文本水印和图片水印的操作指南》在当今数字时代,文档的自动化处理与安全防护变得尤为重要,无论是为了保护版权、推广品牌,还是为了在文档中加入特定的标识,为Word文档添加... 目录引言Spire.Doc for Java:高效Word文档处理的利器代码实战:使用Java为Wo

使用Python实现Word文档的自动化对比方案

《使用Python实现Word文档的自动化对比方案》我们经常需要比较两个Word文档的版本差异,无论是合同修订、论文修改还是代码文档更新,人工比对不仅效率低下,还容易遗漏关键改动,下面通过一个实际案例... 目录引言一、使用python-docx库解析文档结构二、使用difflib进行差异比对三、高级对比方

Python从Word文档中提取图片并生成PPT的操作代码

《Python从Word文档中提取图片并生成PPT的操作代码》在日常办公场景中,我们经常需要从Word文档中提取图片,并将这些图片整理到PowerPoint幻灯片中,手动完成这一任务既耗时又容易出错,... 目录引言背景与需求解决方案概述代码解析代码核心逻辑说明总结引言在日常办公场景中,我们经常需要从 W

C#高效实现Word文档内容查找与替换的6种方法

《C#高效实现Word文档内容查找与替换的6种方法》在日常文档处理工作中,尤其是面对大型Word文档时,手动查找、替换文本往往既耗时又容易出错,本文整理了C#查找与替换Word内容的6种方法,大家可以... 目录环境准备方法一:查找文本并替换为新文本方法二:使用正则表达式查找并替换文本方法三:将文本替换为图

Java高效实现Word转PDF的完整指南

《Java高效实现Word转PDF的完整指南》这篇文章主要为大家详细介绍了如何用Spire.DocforJava库实现Word到PDF文档的快速转换,并解析其转换选项的灵活配置技巧,希望对大家有所帮助... 目录方法一:三步实现核心功能方法二:高级选项配置性能优化建议方法补充ASPose 实现方案Libre

Python Flask实现定时任务的不同方法详解

《PythonFlask实现定时任务的不同方法详解》在Flask中实现定时任务,最常用的方法是使用APScheduler库,本文将提供一个完整的解决方案,有需要的小伙伴可以跟随小编一起学习一下... 目录完js整实现方案代码解释1. 依赖安装2. 核心组件3. 任务类型4. 任务管理5. 持久化存储生产环境