Text Variable Help? Beginning section page number required

Hi guys,
My name is Arjun and I am working on a book in Indesign. I've created quite a few sections and want to create a header on top that displays,
for example
"Summary FirstX to LastX" (in bold are the variables)
First X being that Sections first page number
Last X being that Sections last page number
There is a default preset that came with Indesign CS4 that allows you to create a Text variable for the last page number of that section. What about the beginning? I don't wan to turn that to static text as i have a lot of page shuffling to do and the more the automated the better.
Thanks,
Arjun

I hadn't noticed that there isn't a First Page Number text variable building block. How odd.
I would try setting up a "cross-reference" to the first paragraph in your section. (This is not part of the text variable dialog. Use the cross-reference window under Type & Tables in the Windows menu). I assume these will work on master pages, though I haven't tried it. It does seem odd that you'd need to use completely different tools for each page number!
Be aware that there's now a hidden marker at the beginning of that paragraph, which the cross reference uses to know what page number to insert. So if you accidentally remove it (for instance, if you delete and retype the whole paragraph), you'll have to set up the cross reference again. And you'll have to explicitly create that cross reference in each section of your book, while the text variables are pretty automatic. So there could easily be a better solution that I haven't thought of.
Good luck, and tell us what finally works...

Similar Messages

  • Which variable gives the Total Page Number in a report

    Which variable of Report can give me the total number of Pages. I want this information on first page itself. I want to refer this value in pl/sql thus i want to access the value programatically, and not just show in report as Page 1 of 10.
    Thanks,
    Sudhanshu

    This may help you! This is straight from the Help in Reports! More about this can be found by searching for Physical PAges in Reports Help!
    Suppose that you want to have the page number at the top of each page of your report. Furthermore, you want the page number to be of the form "Page n of m pages":
    1 Create a field named F_PAGE and set the Source property to &Physical Page Number.
    2 In the Field Property Palette, set the Page Numbering property by filling out the Page Numbering dialog box as follows:
    -Check Main Section and uncheck Header Section and Trailer Section because you only want to number the Main Section pages.
    -Type 1 in the Start At setting.
    -Type 1 in the Increment By setting.
    -Type &Report under Reset At because you don't want the page numbers to reset to zero until the report is done.
    3 Create a field called F_TOTPGE and set the Source property to &Total Number of Physical Pages.
    4 Do either of the following:
    -Hide these fields (i.e., set the Visible property to No) and reference them within boilerplate text:
    Page &F_PAGE of &F_TOTPGE
    -Alternatively, position F_PAGE and F_TOTPGE beside each other. Insert boilerplate to the left of F_PAGE that contains the text "Page". Insert boilerplate between F_PAGE and F_TOTPGE that contains the text "of".
    null

  • Running header and text variable help!

    I am trying to add a running header to a book I am creating but I cannot get the running header to work. I have read on the Adobe help pages and other sites online but still can't figure it out. I really just need a step by step on how to get this to work. I don't want to have to go through and edit the week number manually, but at this point I am getting frustrated. (Running CS5)
    The header is "Week X". (The week number changes every 5 pages.)
    This is what the running header should look like:
    This is what I get when I try: (Blank!)
    One time I got the "Week 1" to appear but it was in the large text style, not the smaller size. I forget what I did to get that, so now all I can make happen is the blank text field.
    What am I doing wrong?

    I haven't read the tutorial Prashant has mentioned twice, but it will probably help you. As he says, variables are basically pretty simple, though running head types are perhaps a bit more complex than some others.
    Basically, a variable is a marker, in the same way that an automatic page number is a marker, but in the case of the running head variables ID looks for text that matches a particular style (your choice, when you define the variable, of Paragraph Style or Character Style, and also whether it is the first instance or the last instance of that style on the page (again part of the definition) and ignores other matches that might also be present on your page. If no matching text is present on a particular page, ID searches backwards in the document to find a match on a previous page (which is why having  the matching text on only the first page of the section will work). Variables can pick up both visible and "invisible" or non-printing text which is handy if you need to have a match on a page, but don't want that text to appear in output except where it is displayed in the variable.
    Does that help?
    The advantage to using the variable here is that you can use the same master page (or two master pages or however many different masters are used in one complete section) for all of the sections instead of making separate masters with the new header or footer information for each section.

  • Text variable for total number of pages in book?

    Hello,
    Is it possible to create a text variable that contains the total number of pages in a book?
    The only option I see is for the total number of pages in a document, which doesn't come out right for any but the last doc in the book.
    Thanks,
    -dp-

    If you use the Cross Reference plug-in from DTPtools.com, you can create a cross ref to the last page of the book across the chapters.
    This is an old FrameMaker trick and I have not tried it with InDesign, but it should work. Test out the trial version first (do it on a copy of the book).

  • Using Pages 5.2.2: When I drag an image into my document, I lose the related text.  I can crop the image, make it smaller, but it is surrounded by blankness that overrides the text.  Help?!

    Using Pages 5.2.2, MacBook Pro, OSX 10.9.5:  I cannot drag an image into my document without it obliterating the text.  Even after re-sizing,  the image just becomes small inside a larger blank area that appears to cover the saved text.  Help?

    Using Pages 5.2.2, MacBook Pro, OSX 10.9.5:  I cannot drag an image into my document without it obliterating the text.  Even after re-sizing,  the image just becomes small inside a larger blank area that appears to cover the saved text.  Help?

  • Sort Array of Foundtext as well as respective Page Number

    Hi All,
    I am a novice scripter. Also this is my first Indesign script. Please do help anyone for my first script. Following is my requirement.
    I want to generate a particular character style applied text with belonging "Page Number". Also i need to Sort the found text alphabetically with belonging page number itself. I just generated the text as well as belonging page number by writing the following code.
    var myDoc = app.activeDocument;
    var myDocPath = app.activeDocument.filePath;
    var myDocName = app.activeDocument.name;
    app.findTextPreferences = null;
    app.findTextPreferences.appliedCharacterStyle = myDoc.characterStyles.item("Test");
    var myText = myDoc.findText();
    var myPageNumber = new Array;
    var myFoundText = new Array;
    var myFoundTextSort = new Array;
    for (var i = 0; i < myText.length; i++)
         myFoundText.push (myText[i].contents);
    for (j = 0; j < myText.length; j++)
         var r = getPageFor(myText[j].characters[0]);
         myPageNumber.push ( r.name);
        var inc=0;
        var myLogFile = new File(myDocPath.fsName + "/Text_Report_" + app.activeDocument.name.split(".")[0] +".log");
        if(myLogFile.open("w", undefined, undefined))
            if(myFoundText.length!=0)
                for (var k=0; k<myFoundText.length; k++)
                    serialno = k+1;
                    myLogFile.writeln("  "+serialno+".  "+myFoundText[k]+" --- Page " +myPageNumber[k]);
        myLogFile.close();
        myDoc.close();
    function getPageFor (element)
         while (!(element instanceof Page || element instanceof Application))
              if (element instanceof Character)
                   element = element.parentTextFrames[0].parent;
              else
                   element = element.parent;
         if (element instanceof Page)
              return element;
         return null;
    Please do help anyone. Thanks in advance

    Hi John,
    I tried using Array of Objects method given by you... I wrote like this...
    var MYResults = MYDoc.findText();
    var MYFoundText = new Array;
    for (var i = 0; i < MYResults.length; i++)
        var r = getPageFor(MYResults[i].characters[0]);
        MYFoundText.push (MYResults[i].contents, r.name);
    MYResults[i].contents --- For finding the Text
    r.name ---- For finding the Page Number
    I got the result like this:
      1.  greeking - "Character style applied text"
      2.  1            - "Belonging Page Number"
      3.  reptamu
      4.  1
      5.  molenis non
      6.  2
      7.  doluptae
      8.  3
      9.  ligendem
      10.  4
      11.  Ab is quunto
      12.  5
    If it comes in a same line, i can easily sort alphabetically.
    Please do help me.
    Many thanks for your help.

  • Adding logic based on page number

    Hi,
    in my invoice report, i need to add some logic based on page number. My objective is to print a group of 4 lines (OMR Marks) on right hand side of the page. For example, on first page, print 1st line only, on second page, print 2nd line only, on third page, print 1st and 2nd lines only, on 15th page, print all four lines, on 16th page, print lines similar to 1st page i.e. print 1st line only, on 17th pages, print lines similar to 2nd page i.e. print 2nd line only.
    Is there any way to use page number or some other variable that can represent page number in an IF condition? Your help is highly appreciated.
    Regards,
    sanjai misra

    Thanks for your reply.
    I need to print OMR marks in our invoice report and i am not sure how to do it. I will highly appreciate your inputs.
    I have to print OMR mark a per the logic given below
    1. Divide the page number by 15
    2. Based on remainder value, print 4 horizontal lines. For example,
    if remainder is 1 then print only line 1,
    if remainder is 2 then print only line 2.
    if remainder is 3 then print line 1 and line 2.
    If remainder is 4 then print only line 3,
    if remainder is 5 then print line 1 and line 3
    if remainder is 6 then print line 2 and line 3
    if remainder is 7 then print line 1, 2, 3
    if remainder is 8 then print only line 4 and so on
    if remainder is 0 then print all lines i.e. line 1,2,3 and 4.
    Could you please tell me how I could achieve this? If you have some code that you could share, it would be great.
    OR is there some other way to achieve this?
    Thanks,
    sanjai misra

  • Master Page page number showing up in a different location in exported PDF

    Hi everyone,
    I have been racking my brain trying to figure out what InDesign is thinking, but I can't seem to find a solution.
    I have an eight-page document with facing master pages. I put a page number on the left page and the right page of the spread in the footer area. When I export the document to PDF, one of the page numbers "moves" from where I placed it up and to the left, near the middle of the spread.
    This is driving me nuts. I have tried to use different export settings. I have tried re-building the master page and creating new text frames with the page numbers. The page number still moves. And it is only Page 3. The rest of the page numbers are in the correct locations.
    Here is a screen grab of what I see in InDesign:
    (Note my red arrow pointing out the location of the page number. That text frame is a "Current Page Number" marker on the master page.)
    Here is a screen grab of the resulting exported PDF:
    If anyone else has overcome a similar problem or if you know why InDesign is behaving this way, please help. Thanks!

    @Luke,
    ID embeds fonts automatically during export as long as they are not restricted. There's no way to turn it off, so if the font is not embedding it is because it is restricted and cannot be embedded without viloating the font license, which ID will not do.
    @Andy,
    I was hoping this might be one of the bugs that got fixed, but apparently not. An export to .idml and working with that might fix it, might not. See Remove minor corruption by exporting

  • In FM 10  Table of contents wraps ok except the page number.

    In FM 10  Table of contents wraps ok except if the text just makes it to the end of the line the page the page number goes to the start of the next line. If the text is longer the text wraps fine and the page number goes right justified as it should.  What am I missing?

    Van,
       When you want to change several settings the same way in multiple paragraph formats, there is no need to do so one format at a time.
       To set all formats in all paragraphs and catalog entries:
    1) Open the paragraph designer and go to the appropriate tab.
    2) Type Shift-F8 to set all properties on the tab to "As Is".
    3) Set the properties you care about to the desired values.
    4) From the Commands pop-up in the lower-left corner, select Global Update Options.
    5) Click the All Paragraphs and Catalog Entries.
    6) Click Update.
      The properties you specified but no others have been changed.
      If you do not want to update all paragraphs or catalog entries, make a copy of your document. In the copy, delete all catalog entries you do not want to update. Perform the above steps. Import paragraph formats from the copy into the actual document(s).
            --Lynne

  • Page number variable based on text anchor & referencing numbered list

    I've looked and looked, not only in Adobe's help centers but also just in Google, and I simply cannot find an answer one way or another to my questions!
    I'd like to do 2 things:
    1 - Use a variable to reference on what page more information can be found on a certain subject (i.e. To find out more, please see page ##.), though the page number will undoubtedly change as I continue working on this project and eventually build my book from the various documents I've created.  I can insert some kind of marker or text anchor or whatever I need to by the information I'm referencing, as long as it's not visible, of course.  I'd just like to have a dynamic reference so I don't have to go back through and try to verify that my page references are all correct.  The Current Page variable will not help me in this case.
    2 - I'd also like to reference some numbered tables I have; they are currently setup as being numbered by a custom paragraph style that is in number mode 'Continue from previous number'; another situation where table numbers will change as I continue working on this book and I'd like a dynamic solution.  If I need to insert a variable to calculate the table numbers, rather than use the paragraph style numbering system, that's fine; I'd rather do a bit more work now so that I can be assured my references are accurate when this is all said and done!
    Thanks in advance for any help you can give!

    Thanks a lot; I just didn't delve deep enough into that and misunderstood some of the relevant options that did exactly what I needed.
    Thanks again!

  • Text flows create a delay when an overflow creates a new page, preventing you from reading the page number, giving error

    Hi all!
    I am creating a script to generate automatically a photo catalog; the idea is to prepare a master document with a text frame in the master spread with auto flowing, then insert images with their caption by the script, letting the system create automatically the subsequent pages when necessary by an unique flow of text.
    My catalog is divided in sections, each represented by a different master spread; so I have to know in which page I am working when the script put there an image, just to link the current page to the proper master spread.
    To simplify everything I have resumed the core of my script here, using text instead of images:
    /* load a master document, only containing an empty text frame in the master spread, connected to the main text flow */
    var doc = app.open(new File("~/Desktop/mySampleDoc.indd"));
    /* I work on the story, thinking that whenever the textframe of the first page will be full, another text frame will be created in the next page (automatically created) */
    var story = doc.pages[0].textFrames[0].parentStory;
    /* now I put some lines of text into the story, expecting the creation of a new page when the first one will be full */
    for (var i = 0; i < 100; i++) {
       /* this is next line: */
        story.insertionPoints[-1].contents = "this is line n. " + i + "\r";
        /* here I want to know on which page is the line just created (error is generated here just during the creation of the new page + text frame) */
        thisPage = story.insertionPoints[-1].parentTextFrames[0].parentPage.documentOffset;
       /* and now I print page number */
        story.insertionPoints.item(-1).contents = "current page: " + thisPage + "\r";
    The big problem is: when the first text frame is full and an overflow is generated, a new page with a new text frame belonging to the main text flow (as the master spread wants) is generated; but it seems my script requests the page number before the new page with the new text frame is born, and an error is given.
    It seems like the script goes too fast in respect to the creation of the new page.
    If I delete the line thisPage = story.insertionPoints[-1].parentTextFrames[0].parentPage.documentOffset; everything is ok.
    I tried to introduce a delay until 3 seconds without any effect.
    I tried also to show or zoom the new page before the page number request, thinking to force the system to wait until page is really born, also without any effect (by the way, I was not able to show the page during the script's additions of text!).
    Someone can help me?
    Many thanks to everyone
    Roberto

    Many thanks: you are right!
    Unfortunately, I am at the very beginning with ExtendScript, and there are so many things I don't know until now...
    With recompose() everything works very well, and it give me a solution also for redrawing the page while the script is working...
    Many thanks, again!
    Roberto

  • To reset page number after each new section in DeskI

    I have a master/detail report where the master is "Customer name". I have a requirement to reset the page number at each new  Customer name.
    i.e. If "Customer A" spans to 3 pages and "Customer B" spans 2 pages. Then for Customer A the page number should be Page 1 of 3, Page 2 of 3, Page 3 of 3. Then Customer B should have page number as Page 1 of 2,Page 2 of 2.
    1. The Page number can be obtained using PageInSection but only if I display it inside the section body and select "Repeat on every page" . But I need to display it in Page footer.
    2. I am unable to get the total No.of Pages per section unless I do some calculation using the no of rows per Customer. Is there any other way of getting this detail?
    Please help on the baove 2 issues. This is very URGENT.

    Dear Thendral A,
    The "PageInSection" function resets the page number to 1 at the start of each new section in the specified section level.
    For Example:
    you have a report with two section levels, Country and Quarter.
    You set every value of Country to start on a new page and enter the following syntax in a cell placed WITHIN THE SECTION THAT NEEDS THE RESETTING OF THE PAGE (it cannot be placed in the header or footer, as it can then not refer to the relevant section. It will give the value 0 instead), to restart page numbering to 1 for each value of Country:
    =PageInSection(1)
    where (1) is Country which is section 1 in the report.
    If there are any following sections these can also be reset via this formula with the use of the relevant section number.
    This option can be used effectively when you set each value of a section to start on a new page. To do this, check the Start on a new page option in the Section Format dialog box.
    Do remember that the result will only be seen in the report, when the option View/Page layout has been set, otherwise the result will be seen as a 0 at each section (this however does get correctly displayed in the Print Preview, and when printing without the page layout option set).
    I hope that these information help you to understand the functionality of the PageInSection function.
    Regards,
    Samanta F

  • ?fo:page-number? in if statement in the header section

    Hi,
    is it possible to put the <?fo:page-number?> in if statements??
    like <?if:fo:page-number>1?>STOP<?end if?>
    i have a requirement that the column should not be displayed in the succeeding page except for page 1. also the column have the table property REPEAT AS HEADER ROW.
    example:
    Page 1
    DOG
    CAT
    RAT
    FISH
    PAGE 2
    CAT
    RAT
    FISH
    PAGE 3
    CAT
    RAT
    FISH
    thanks, and i hope im able to explain well my problem . . .

    Hi,
    Did u try using the MS Word native functionalit --Option : Different First page –header option or Different Odd & Even Pages.
    hopefully this will help you to achieve your requirement.
    Regards
    Ravikumar Reddy
    +971 56 106 2436

  • Why do text variables using Running Header character style translate forced returns as a word space in the running head on the first page but close up the space on subsequent pages?

    In an InDesign document that requires 3 different Chapter head paragraph styles (to cope with differrent length headings) I've set up the running heads on the master page with a text variable using the Running header (character style) option. The character style I've assigned to this is an empty character style that is applied to all 3 chapter head paragraph styles.
    Some chapter heads require a forced line break, so that the line breaks are aethesically pleasing. On the first page the text variable translates this forced line break as a word space in the running head, but on subsequent pages it ignores the forced line break. This means that if you have a word space before the forced line break, on the first page you get a double word space and on subsequent pages the running head sets correctly with a single word space. But if you remove the word space before the forced line break in the chapter head text, the first running head sets correctly with forced line break interpreted as a single word space, but on subsequest pages the space is closed up.
    This only seems to be a problem when the character style option is used for header text variables. If a paragraph style is used the forrced line break is interpreted as a a single word space in all instances, both on the foirst page and subsequent pages.
    This would appear to be a bug in how text variables are applied when using the Running header (character style) option. I can't see any other reason why the text variable would beheave differently on the first page and on subsequent pages. There is only one master page, so it isn't a case of their being an error between a main master page and a chapter opener master page.
    Does anyone have any solutionss, or know if this problem has been fixed in subsequent releases of InDesign (I'm using CS6 ID version 8.0)
    Thanks

    Ask in the ID forum...
    Mylenium

  • APEX app using Oracle Text  to index pages that require authorzation

    Hi Gurus and APEX Dev team
    My team need to develop an APEX App that will index all our documents spread across various servers. Some of the documents require Single sign on access (e.g. KIX.oraclecorp.com) and some require other authorization methods (e.g. Metalink) . The Question is , Is it possible to index the pages that require authorization using Oracle text. If yes How? I have implemented the demo app which can index pages that do not require authorization.
    Thanks a million
    regards
    Bala

    Hello,
    Unless I misunderstand you, the fact that the pages require authentication doesn't really matter, it is the underlying data you want to index correct? If so then you would index them in exactly the same way that you would index any table data using Oracle Text/interMedia.
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

Maybe you are looking for