Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Auto-numbering independent of auto page numbers

Return to Member Forum

  • Author
    Posts
    • #64306
      Artie Fufkin
      Participant

      Hi folks,

      I'm a long-term Indesign user and have recently come across an interesting problem. I'm working on a book that, much like a diary, has a single page for each day of the year. The page numbers will obviously run from 1 to 365 (don't worry, there are also prelims and an index to give the book the right number of pages), but I'd like to find a way of auto-numbering the days of the year which, after January, will not correspond with the page numbering.

      So, January 1 will be on page 1 – fine, I could just re-use the auto page number marker – but February 1 will be on page 32, Feb 2 on page 33 etc. So the date numbers need to behave like page numbers, but would need to begin at 1 again at the start of each month, while the page numbers continue up as normal. I could enter each date manually, but there must be nifty solution to this?.

      Each month will be a seperate Indesign document, and I'll be compiling them all using Indesign's Book feature. I'm using CS5, but soon upgrading to CS6.

      I hope that all makes sense. Any help very much appreciated!

      Thanks!

    • #64368
      Kelly Vaughn
      Participant

      You might want to try custom numbered lists: https://creativepro.com/use…..bering.php

    • #64369

      In this case it might be easier to write a script that does the hard work! (Well it was for me :) )

      Download “makecalendar.zip” from my site: https://www.jongware.com/binari…..lender.zip

      It contains the Javascript “makeCalender.jsx”, which you should put into your User Scripts folder, and a CS4-and-higher template “calender.indd”. Open the template to adjust the fonts and positions of the boxes, and add as much other stuff as you want. Please note that the texts “day”, “month”, and “dayname” must be the only texts in these frames; they get replaced with the day number, month name, and name of the day. If you don't need one of these items, it's safe to remove its entire frame.

      The template document should only contain a single page. The script opens the template document, duplicates the first page, and adds text where appropriate. Then it saves it under the month's name in the same folder as you put the template document in.

      You don't need to use my template, you can supply your own. Just make sure it only has one single page and contains separate text frames denoting the items you want it to fill in.

      This script is hardcoded for 2014: on line 11, you can find

      var dayOfYear = 3;

      This is because the first day of 2014 is a Wednesday. For other years, you need to adjust this value. (I know, I could probably have the script ask for a year and then calculate it. Well … this was a quickie!)

    • #64371
      Artie Fufkin
      Participant

      Document Geek said:You might want to try custom numbered lists: https://creativepro.com/use…..bering.php


      Thanks, Document Geek! Sounds like it might do the job.

    • #64372
      Artie Fufkin
      Participant

      Jongware said:

      In this case it might be easier to write a script that does the hard work! (Well it was for me :) )

      Download “makecalendar.zip” from my site: https://www.jongware.com/binari…..lender.zip

      It contains the Javascript “makeCalender.jsx”, which you should put into your User Scripts folder, and a CS4-and-higher template “calender.indd”. Open the template to adjust the fonts and positions of the boxes, and add as much other stuff as you want. Please note that the texts “day”, “month”, and “dayname” must be the only texts in these frames; they get replaced with the day number, month name, and name of the day. If you don't need one of these items, it's safe to remove its entire frame.

      The template document should only contain a single page. The script opens the template document, duplicates the first page, and adds text where appropriate. Then it saves it under the month's name in the same folder as you put the template document in.

      You don't need to use my template, you can supply your own. Just make sure it only has one single page and contains separate text frames denoting the items you want it to fill in.

      This script is hardcoded for 2014: on line 11, you can find

      var dayOfYear = 3;

      This is because the first day of 2014 is a Wednesday. For other years, you need to adjust this value. (I know, I could probably have the script ask for a year and then calculate it. Well … this was a quickie!)


      Thanks for for thaling the time to respond, Jongware. Will definitely look into it.

    • #64373
      Artie Fufkin
      Participant

      Artie Fufkin said:


      Thanks for for *taking* the time to respond, Jongware. Will definitely look into it.


    • #14371181
      David Blatner
      Keymaster

      Jongware’s site is no more, so I put the script here: creativepro.com/files/jongware/binaries/makecalendar.zip

Viewing 6 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads