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

相关文章

C#实现将Office文档(Word/Excel/PDF/PPT)转为Markdown格式

《C#实现将Office文档(Word/Excel/PDF/PPT)转为Markdown格式》Markdown凭借简洁的语法、优良的可读性,以及对版本控制系统的高度兼容性,逐渐成为最受欢迎的文档格式... 目录为什么要将文档转换为 Markdown 格式使用工具将 Word 文档转换为 Markdown(.

Python实现自动化Word文档样式复制与内容生成

《Python实现自动化Word文档样式复制与内容生成》在办公自动化领域,高效处理Word文档的样式和内容复制是一个常见需求,本文将展示如何利用Python的python-docx库实现... 目录一、为什么需要自动化 Word 文档处理二、核心功能实现:样式与表格的深度复制1. 表格复制(含样式与内容)2

Python中bisect_left 函数实现高效插入与有序列表管理

《Python中bisect_left函数实现高效插入与有序列表管理》Python的bisect_left函数通过二分查找高效定位有序列表插入位置,与bisect_right的区别在于处理重复元素时... 目录一、bisect_left 基本介绍1.1 函数定义1.2 核心功能二、bisect_left 与

解决mysql插入数据锁等待超时报错:Lock wait timeout exceeded;try restarting transaction

《解决mysql插入数据锁等待超时报错:Lockwaittimeoutexceeded;tryrestartingtransaction》:本文主要介绍解决mysql插入数据锁等待超时报... 目录报错信息解决办法1、数据库中执行如下sql2、再到 INNODB_TRX 事务表中查看总结报错信息Lock

Python实现一键PDF转Word(附完整代码及详细步骤)

《Python实现一键PDF转Word(附完整代码及详细步骤)》pdf2docx是一个基于Python的第三方库,专门用于将PDF文件转换为可编辑的Word文档,下面我们就来看看如何通过pdf2doc... 目录引言:为什么需要PDF转Word一、pdf2docx介绍1. pdf2docx 是什么2. by

如何Python使用设置word的页边距

《如何Python使用设置word的页边距》在编写或处理Word文档的过程中,页边距是一个不可忽视的排版要素,本文将介绍如何使用Python设置Word文档中各个节的页边距,需要的可以参考下... 目录操作步骤代码示例页边距单位说明应用场景与高级用China编程途小结在编写或处理Word文档的过程中,页边距是一个

Python使用python-docx实现自动化处理Word文档

《Python使用python-docx实现自动化处理Word文档》这篇文章主要为大家展示了Python如何通过代码实现段落样式复制,HTML表格转Word表格以及动态生成可定制化模板的功能,感兴趣的... 目录一、引言二、核心功能模块解析1. 段落样式与图片复制2. html表格转Word表格3. 模板生

Java如何根据word模板导出数据

《Java如何根据word模板导出数据》这篇文章主要为大家详细介绍了Java如何实现根据word模板导出数据,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... pom.XML文件导入依赖 <dependency> <groupId>cn.afterturn</groupId>

SpringBoot整合mybatisPlus实现批量插入并获取ID详解

《SpringBoot整合mybatisPlus实现批量插入并获取ID详解》这篇文章主要为大家详细介绍了SpringBoot如何整合mybatisPlus实现批量插入并获取ID,文中的示例代码讲解详细... 目录【1】saveBATch(一万条数据总耗时:2478ms)【2】集合方式foreach(一万条数

Java使用SLF4J记录不同级别日志的示例详解

《Java使用SLF4J记录不同级别日志的示例详解》SLF4J是一个简单的日志门面,它允许在运行时选择不同的日志实现,这篇文章主要为大家详细介绍了如何使用SLF4J记录不同级别日志,感兴趣的可以了解下... 目录一、SLF4J简介二、添加依赖三、配置Logback四、记录不同级别的日志五、总结一、SLF4J