#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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. Last edited by Charles Kenyon; 03-26-2014 at 04:20 PM. Reason: forgot attachment |
#3
|
||||
|
||||
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] |
#4
|
|||
|
|||
Thanks you guys. I'm very busy but Ill try your suggestions in the coming days.
|
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
begin each section with page 1 in header PLUS continuous page numbering in footer | onemorecupofcoffee | Word | 18 | 09-04-2013 04:31 PM |
Can't reset the page numbering of a page footer | ravl13 | Word | 2 | 11-20-2012 07:40 AM |
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 |
Page numbering with Section 1.1 Page 1 | sunalta | Word | 1 | 05-31-2012 02:48 PM |