New section causes reverse numbering

Ask a Question related to Adobe Indesign Windows, Design and Development.

  1. #1

    Default New section causes reverse numbering

    In ID CS, I wanted to select the first half of an existing section and designate it a new section.

    In the Pages palette, I selected the range of pages I wanted to change. Then, in Numbering & Section Options, I entered a new Section Marker name. I left page numbering "Automatic," so I presumed the numbering sequence wouldn't be altered.

    However, when I looked at the pages I'd changed, I found that the section had been renumbered, starting with 1---and that the numbers went in reverse! Was this a bug, or did I do something wrong?
    Andy_Fielding@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. IDCS2: Numbering Section and Inbooklet problem
      I've created a booklet and fixed up the Numbering and Section Options so the Auto Numbering begins after the first two pages (by creating a Section)...
    2. NUMBERING
      I have recently created a search interface and using Verity. I have indexed several directories on the server, HOWEVER, there were certain...
    3. Numbering issues
      My original word document (Word 2000)has 507 pages. The pdf (I've tried Adobe 4.0 and 6.0) only has 493. Needless to say, this throws off my index...
    4. bullets and numbering
      Is it possible to automate the numbering of paragraphs--a numbered list--using a standard outline-type hierarchy, or is the only solution to type...
    5. Wanted - Simple section numbering prog for HTML document
      I maintain various specs and FAQs in manually edited HTML documents, and I'd very much like some simple way of automatic section numbering as in...
  3. #2

    Default Re: New section causes reverse numbering

    Each page you selected became a new section. To make a section, select one page only, the first page of your new section.

    Dave
    Dave_Saunders@adobeforums.com Guest

  4. #3

    Default Re: New section causes reverse numbering

    Yes, I realized that soon afterward. (Silly me---I made the mistake of just reading the menu and dialog box, rather than looking it up in the user guide...)

    However, that doesn't explain why these single-page "new sections" went "5, 4, 3, 2, 1" instead of "1, 2, 3, 4, 5." What possible use would that be? (Maybe for Hebrew texts, where you read in the other direction?)

    And in any case, how intuitive is that? You select a range of pages, tell ID to "start a new section"---and it makes each page a new section? Why would someone want to do that either?
    Andy_Fielding@adobeforums.com Guest

  5. #4

    Default Re: New section causes reverse numbering

    So that the pages can then be imposed. I have a script that walks through a document making every page a new section in order to freeze the page number so that the pages can then be shuffled into "booklet order."

    However, I tend to agree with you that it doesn't make a whole lot of sense to want to do this in the UI across a selection. And the wording in the help system is certainly a bit confusing on the point.

    Dave
    Dave_Saunders@adobeforums.com Guest

  6. #5

    Default Re: New section causes reverse numbering

    Okay, Dave, that makes sense. (I'm always willing to be ignorant.) At this point is was more curiosity than anything else.

    Cheers, Andy
    Andy_Fielding@adobeforums.com Guest

  7. #6

    Default Re: New section causes reverse numbering

    Hi,

    I'm trying to get my 24 pages printed out in "booklet format" or as a signature of a book. I want to print them out, fold them, and have the page numbers in the right order -- so that on one sheet of paper page 24 will appear next to page 1.

    Is there no way to do this other than moving each page on the spread and renumbering it? (Which means I need to make a mock up and figure out which page goes next to which...)

    There's gotta be a better way!
    How do people do this when they're dealing with hundreds of pages?

    Thanks for any insight you can give me.
    Kristina
    Kristina_Drake@adobeforums.com Guest

  8. #7

    Default Re: New section causes reverse numbering

    I use this script, which I wrote:

    myPages = app.documents[0].pages;

    // Let's make sure that the pages are a multiple of four
    app.documents[0].documentPreferences.allowPageShuffle = false;

    if (myPages.length % 4 != 0) {
    alert("Document length isn't a multiple of four.");
    exit();
    }

    for (i=0; i<myPages.length; i++) { origSection = myPages[i].appliedSection; origNumbering = origSection.pageNumberStyle; origSection.pageNumberStyle = PageNumberStyle.arabic; pageName = myPages[i].name; sectName = origSection.name; if (sectName != "") { pageName = pageName.split(sectName)[1]; } pageNo = Number(pageName); newSection = app.documents[0].sections.add(undefined, undefined, {pageStart:app.documents[0].pages[i], continueNumbering:false, pageNumberStart:pageNo, pageNumberStyle:origNumbering}); origSection.pageNumberStyle = origNumbering; } app.documents[0].documentPreferences.allowPageShuffle = true;

    for (i=0; (myPages.length/2)>i; i++){
    if (i % 2 == 0) {
    app.documents[0].pages[myPages.length - 1].move(LocationOptions.before,app.documents[0].pages[i*2],BindingOptions.leftAlign);
    } else {
    app.documents[0].pages[myPages.length - 1].move(LocationOptions.after,app.documents[0].pages[i*2],BindingOptions.rightAlign);
    }
    }

    Copy and paste it to a text editor, save it as plain text with a name like buildbooklet.js into the Scripts folder in the Presets folder in your InDesign application folder.

    To run the script, open the Scripts palette and double-click the name with a copy of your document open -- best not to run a script like this on the original.

    Dave
    Dave_Saunders@adobeforums.com Guest

  9. #8

    Default Re: New section causes reverse numbering

    Wow. Thank you.
    I'll try it and let you know how it works.
    Kristina.
    Kristina_Drake@adobeforums.com Guest

  10. #9

    Default Re: New section causes reverse numbering

    Hi Dave,

    I saved it as plain text, and ran it on the document, but it comes up with a "runtime error" on line 11.

    Any suggestions?

    Thanks again,
    Kristina
    Kristina_Drake@adobeforums.com Guest

  11. #10

    Default Re: New section causes reverse numbering

    My fault. I made an error posting it here (the forum software doesn't like < symbols). Here's a corrected version:

    myPages = app.documents[0].pages;

    // Let's make sure that the pages are a multiple of four
    app.documents[0].documentPreferences.allowPageShuffle = false;

    if (myPages.length % 4 != 0) {
    alert("Document length isn't a multiple of four.");
    exit();
    }

    for (i=0; i<myPages.length; i++) {
    origSection = myPages[i].appliedSection;
    origNumbering = origSection.pageNumberStyle;
    origSection.pageNumberStyle = PageNumberStyle.arabic;
    pageName = myPages[i].name;
    sectName = origSection.name;
    if (sectName != "") {
    pageName = pageName.split(sectName)[1];
    }
    pageNo = Number(pageName);
    newSection = app.documents[0].sections.add(undefined, undefined, {pageStart:app.documents[0].pages[i], continueNumbering:false, pageNumberStart:pageNo, pageNumberStyle:origNumbering});
    origSection.pageNumberStyle = origNumbering;
    }
    app.documents[0].documentPreferences.allowPageShuffle = true;

    for (i=0; (myPages.length/2)>i; i++){
    if (i % 2 == 0) {
    app.documents[0].pages[myPages.length - 1].move(LocationOptions.before,app.documents[0].pages[i*2],BindingOptions.leftAlign);
    } else {
    app.documents[0].pages[myPages.length - 1].move(LocationOptions.after,app.documents[0].pages[i*2],BindingOptions.rightAlign);
    }
    }
    Dave_Saunders@adobeforums.com Guest

  12. #11

    Default Re: New section causes reverse numbering

    Hi again Dave, thanks again.

    There's still a runtime error, this time in line 21 (starting with newSection)... almost there!

    Kristina
    Kristina_Drake@adobeforums.com Guest

  13. #12

    Default Re: New section causes reverse numbering

    Has your editor (or the forum software inserted a newline before the semicolor that should end that line?

    newSection = ... should all be on one line up to the semicolor with origSection... at the start of the next line.

    Dave
    Dave_Saunders@adobeforums.com Guest

  14. #13

    Default Re: New section causes reverse numbering

    Nope, when I widen the page or paste it into notepad it all appears on one line and origSection starts the next line:

    newSection = app.documents[0].sections.add(undefined, undefined, {pageStart:app.documents[0].pages[i], continueNumbering:false, pageNumberStart:pageNo, pageNumberStyle:origNumbering});

    K.
    Kristina_Drake@adobeforums.com Guest

  15. #14

    Default Re: New section causes reverse numbering

    Sorry, I can't see what's wrong and I'm packing to go to England for a vacation. I plan to switch off my computers any minute now.

    But, I did post this script before, here: Dave Saunders "InDesign won't impose pages!?!" 5/5/04 10:21am </cgi-bin/webx?14@@.3bb3c172/6> And people seem to have had success running that version.

    Dave
    Dave_Saunders@adobeforums.com Guest

  16. #15

    Default Re: New section causes reverse numbering

    Thanks anyway! I'll try the other, have a good trip.
    K.
    Kristina_Drake@adobeforums.com Guest

  17. #16

    Default Re: New section causes reverse numbering

    Dave: Pardon my ignorance, but what language is that? Java? Sure looks fun.
    Andy_Fielding@adobeforums.com Guest

  18. #17

    Default Re: New section causes reverse numbering

    It's JavaScript (which is not the same as Java).

    Dave
    Dave_Saunders@adobeforums.com Guest

  19. #18

    Default Re: New section causes reverse numbering

    Coolness.
    Andy_Fielding@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139