Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-18-2019, 02:53 PM
Swarup Swarup is offline Page numbers placed in both header and footer: Need each in different script Windows 10 Page numbers placed in both header and footer: Need each in different script Office 2016
Competent Performer
Page numbers placed in both header and footer: Need each in different script
 
Join Date: Jul 2018
Posts: 185
Swarup is on a distinguished road
Default Page numbers placed in both header and footer: Need each in different script


I have a file with page numbers placed in both the header and footer. Currently it is set such that all the page numbers are in Hindi script. I would like the page numbers in the footer to be in Hindi script, and the page numbers in the header to be in English (Roman) script. In the page number settings window, I do not see any option to specify different scripts for page numbers in the header versus footer.

I can achieve this using field codes.

Is there a global setting for the file that will make it easier to do?
Reply With Quote
  #2  
Old 11-18-2019, 03:42 PM
Guessed's Avatar
Guessed Guessed is offline Page numbers placed in both header and footer: Need each in different script Windows 10 Page numbers placed in both header and footer: Need each in different script Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

There is a section-by-section setting for the page number format. The second format you want can be done with a field code switch to override the section's chosen format.

Once you have the header/footers the way you want, you can save them into the Building Blocks to insert them as required.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 11-18-2019, 05:44 PM
Swarup Swarup is offline Page numbers placed in both header and footer: Need each in different script Windows 10 Page numbers placed in both header and footer: Need each in different script Office 2016
Competent Performer
Page numbers placed in both header and footer: Need each in different script
 
Join Date: Jul 2018
Posts: 185
Swarup is on a distinguished road
Default

Ok, that is perfect.

Now, let's say the page number global setting is for Hindi script. Then in the footer where I want the page number to show in arabic (English), I add "\* Arabic" into the field code. That works well. And now if I want that arabic number to display in Times New Roman rather than the default setting of Nirmal, is there a switch that I can add so as to specify that this arabic number will display in Times New Roman?
Reply With Quote
  #4  
Old 11-18-2019, 06:30 PM
Guessed's Avatar
Guessed Guessed is offline Page numbers placed in both header and footer: Need each in different script Windows 10 Page numbers placed in both header and footer: Need each in different script Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

You can't add a switch to change the font although you can add a CharFormat switch which could have a similar effect but is unnecessary.

Normally the font should be controlled by the paragraph style applied to that paragraph. If that paragraph has both Nirmal and Times New Roman then you can apply a Character style (for TNR) to just the page number field.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #5  
Old 11-18-2019, 07:43 PM
Swarup Swarup is offline Page numbers placed in both header and footer: Need each in different script Windows 10 Page numbers placed in both header and footer: Need each in different script Office 2016
Competent Performer
Page numbers placed in both header and footer: Need each in different script
 
Join Date: Jul 2018
Posts: 185
Swarup is on a distinguished road
Default

This entire book file (700 pages) got made before I started learning about styles. Due to that, I will likely need to implement the CharFormat switch to which you refer. Could you perhaps give me an example of what such a CharFormat switch would look like, in which the Times Roman Font is brought for the particular page number?
Reply With Quote
  #6  
Old 11-18-2019, 09:06 PM
Guessed's Avatar
Guessed Guessed is offline Page numbers placed in both header and footer: Need each in different script Windows 10 Page numbers placed in both header and footer: Need each in different script Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

You can create and apply the character style at any time. The fact that the document already exists has no bearing on whether you now start to use a Character style.

Either way, you need to create the field along the lines of either
{Page \* Arabic} or {Page \* Arabic \* Charformat}
While the field code is still showing, select the entire field and apply the font formatting you want. Then press F9 to update.

I don't believe the CharFormat brings any benefit to you at all but you are welcome to experiment and may find it helps.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #7  
Old 11-18-2019, 09:34 PM
Swarup Swarup is offline Page numbers placed in both header and footer: Need each in different script Windows 10 Page numbers placed in both header and footer: Need each in different script Office 2016
Competent Performer
Page numbers placed in both header and footer: Need each in different script
 
Join Date: Jul 2018
Posts: 185
Swarup is on a distinguished road
Default

Just did it. Very cool!

One question: What is the difference between:

1. Opening the field code (alt-F9), applying the {Page \* Arabic} code, highlighting the entire field and applying the font formatting "Times New Roman", then closing the field code (alt-F9);

VERSUS

2. Opening the field code (alt-F9), applying the {Page \* Arabic} code, closing the field code (alt-F9), and THEN applying the font formatting "Times New Roman".

I have tried both the above options, and both seem to work.
Reply With Quote
  #8  
Old 11-19-2019, 01:28 AM
Guessed's Avatar
Guessed Guessed is offline Page numbers placed in both header and footer: Need each in different script Windows 10 Page numbers placed in both header and footer: Need each in different script Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

In theory the font formatting needs to be applied to the first character in the field code.

In practice, it makes no difference and that is why I don't bother with Charformat.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #9  
Old 12-02-2019, 08:49 PM
Swarup Swarup is offline Page numbers placed in both header and footer: Need each in different script Windows 10 Page numbers placed in both header and footer: Need each in different script Office 2016
Competent Performer
Page numbers placed in both header and footer: Need each in different script
 
Join Date: Jul 2018
Posts: 185
Swarup is on a distinguished road
Default

Makes sense. Everything is working perfectly, thank you!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page numbers placed in both header and footer: Need each in different script Script to add page has footer problems KevinRS Word VBA 1 12-25-2018 02:59 AM
Page numbers placed in both header and footer: Need each in different script Footer for page numbers recently started showing a colored field when adding page numbers thefonebug Word 12 10-24-2016 05:18 AM
different header/footer sections/ page numbers Angela H Word 4 07-01-2015 12:45 PM
How to save the current page in a new file with all the page settings (header, footer Jamal NUMAN Word 6 03-15-2012 03:27 PM
Two column format without affecting neither the page numbers nor the header or footer Jamal NUMAN Word 4 02-21-2012 03:20 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft