Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-26-2014, 10:45 AM
mechwurm mechwurm is offline HELP: Binary page numbering Windows 7 32bit HELP: Binary page numbering Office 2010 32bit
Novice
HELP: Binary page numbering
 
Join Date: Mar 2014
Posts: 2
mechwurm is on a distinguished road
Default HELP: Binary page numbering

Hello,



I am working on a math paper for school and I thought it would be cool to do my page numbering in Binary (000, 001, 010, 011... ) does anyone know how this could be done? For Microsoft word I'm only basically acquainted with it.

thanks
Reply With Quote
  #2  
Old 03-26-2014, 04:17 PM
Charles Kenyon Charles Kenyon is offline HELP: Binary page numbering Windows 7 64bit HELP: Binary page numbering Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

There is no simple function in Word to do this.

You could use a nested IF Field. This field reports a page number as binary up to page 4 (100 binary):

{ If { page } = “1” “1” { If { page } = "2" "10" { If { page } = "3" "11" { If { page } = "4" "100" { page }}}}}

If the page number is greater than 4, it reports in decimal; that is the final page field. The field delimeters { } cannot simply be typed in. They are inserted in pairs using Ctrl+F9.

A document containing the field is attached. Note the field in the footer.

There is a limit to how deep IF fields can be nested. This one has four levels. If you are going to have more than eight, I would recommend having a separate nested field for each eight pages, without the final page field.

Here is the syntax for the IF field.

Have fun. Something similar could be done with the NumPages field so you could have Page 1 of 100 for a four-page report. That is left as an exercise for the student.
Attached Files
File Type: docx deleteme.docx (28.3 KB, 6 views)

Last edited by Charles Kenyon; 03-26-2014 at 04:20 PM. Reason: forgot attachment
Reply With Quote
  #3  
Old 03-26-2014, 08:04 PM
macropod's Avatar
macropod macropod is offline HELP: Binary page numbering Windows 7 32bit HELP: Binary page numbering Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The following field code will produce binary page numbering for up to 255 pages:

{QUOTE{SET Binary "{=MOD(MOD(INT({PAGE}/128),256),2) \# 0}{=MOD(MOD(INT({PAGE}/64),128),2) \# 0}{=MOD(MOD(INT({PAGE}/32),64),2) \# 0}{=MOD(MOD(INT({PAGE}/16),32),2) \# 0}{=MOD(MOD(INT({PAGE}/8),16),2) \# 0}{=MOD(MOD(INT({PAGE}/4),8),2) \# 0}{=MOD(MOD(INT({PAGE}/2),4),2) \# 0}{=MOD({PAGE},2) \# 0}"}{=Binary \# 0}}

Doubling, quadrupling, etc the number of pages catered for is as simple as adding more of the {=MOD(MOD(INT({PAGE}/X),Y),2) \# 0} fields to the start of the (SET Binary "} field, doubling the X and Y values each time. Equally, you can delete unwanted terms, starting from the same end.

If you don't mind having leading 0s, you could use:
{QUOTE"{=MOD(MOD(INT({PAGE}/128),256),2) \# 0}{=MOD(MOD(INT({PAGE}/64),128),2) \# 0}{=MOD(MOD(INT({PAGE}/32),64),2) \# 0}{=MOD(MOD(INT({PAGE}/16),32),2) \# 0}{=MOD(MOD(INT({PAGE}/8),16),2) \# 0}{=MOD(MOD(INT({PAGE}/4),8),2) \# 0}{=MOD(MOD(INT({PAGE}/2),4),2) \# 0}{=MOD({PAGE},2) \# 0}"}

Note: The field brace pairs (ie '{ }') for the above example are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Nor is it practicable to add them via any of the standard Word dialogues.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 03-27-2014, 10:57 AM
mechwurm mechwurm is offline HELP: Binary page numbering Windows 7 32bit HELP: Binary page numbering Office 2010 32bit
Novice
HELP: Binary page numbering
 
Join Date: Mar 2014
Posts: 2
mechwurm is on a distinguished road
Default

Thanks you guys. I'm very busy but Ill try your suggestions in the coming days.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: Binary page numbering begin each section with page 1 in header PLUS continuous page numbering in footer onemorecupofcoffee Word 18 09-04-2013 04:31 PM
HELP: Binary page numbering Can't reset the page numbering of a page footer ravl13 Word 2 11-20-2012 07:40 AM
HELP: Binary page numbering Parallel page numbering/same page numbers for odd and even pages goran Word 2 11-02-2012 03:42 PM
Page Header and Page Numbering for Technical Book SQLUSA Word 4 06-25-2012 09:53 AM
HELP: Binary page numbering Page numbering with Section 1.1 Page 1 sunalta Word 1 05-31-2012 02:48 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:40 PM.


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