The method of using field codes to insert page numbers in Word is as follows:
1. Add a table
Double-click at the footer , making the footer editable.
Click "Insert" - "Table" to insert a table with "two columns and one row" and adjust the height of the table.
(The table is inserted here to facilitate the alignment of page numbers)
2. Enter the page number in the first column
and position the cursor at In the first cell of the table, set the alignment to "Centered".
First enter "Page of Pages", position the cursor between "Page", press [Ctrl F9] twice to insert two blank fields {{{}}} (Note: This brace cannot be entered manually ).
Enter {={page}*2-1} between {{{}}}, right-click, and select "Update Domain" in the pop-up shortcut menu.
Press [Ctrl F9] twice to insert {{{}} between "Total Pages".
Enter {={numpages}*2} between {{{}}}, right-click, and select "Update Domain" in the pop-up shortcut menu.
3. Enter the page number in the second column
Position the cursor in the second cell of the table and set "center alignment".
Use the same method to enter "{={page}*2} pages of {={numpges}*2} pages" respectively, and then "Update domain".
4. Remove the table border line
Select the table in the footer, click "Start" - "Paragraph" - "Border", set to " No frame lines”.
Double-click in the area other than the footer to exit the editing state. In this way, adding page numbers to the column is completed.
For more technical articles related to Word, please visit theWord Tutorialcolumn to learn!
The above is the detailed content of How to use field code to set page number in word. For more information, please follow other related articles on the PHP Chinese website!