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!

Similar Messages

  • Page number after printing a text element in SAPScript

    Hello to all,
    is it possible to know the page number in which SAPScript print a text element?
    Thanks and regards
    Franco

    Hi!
    &PAGE& variable gives you the actual page.
    /E MYELEMENT
    /: DEFINE &MYPAGE& = &PAGE&
    I hope it works...
    Regards
    Tamá

  • Reset page number to '1 ' for each box of packing list in sap script

    hi Gurus,
    I am running a packing list for delivery note . Many boxes spread across more than one page. I Need to print page number in Packing list for each box like 1 of 2 , 2 of 2. In the new page for next box , I need to print 1 of 1, 2 of 2. and goes on.
    can you suggest a method to achieve this in script.
    thanks,
    manoj

    Hi,
    Could you give me the reply for following question?
    1. Are the boxes changing depends on the data? or static size? How many boxes would be displayed in a page?
    2. Is it your own driver program / standard one?
    3. Suppose if you have 5 pages and having 10 boxes, 2 boxes for each page, then do you need to display like,
    >1 of 1 on 1st box on 1st page
    >2 of 1 on 2nd box on 1st page
    >1 of 2 on 1st box on 2nd page
    >2 of 2 on 2nd box on 2nd page
    >....
    Is it so?
    Once i get these details then I will let u know the way....:)

  • How do I set numbered lists for headings in Pages 5.2, and keep that system of numbered lists saved?

    I have tried to set numbered lists for headings in Pages 5.2 but have not succeeded. I have read similar questions concerning this but this has not helped me...
    When I say numbered lists I mean something extremely important and simple, for instance:
    1. Introduction
    1.1. Background
    1.2. Purpose and Questions
    2. The Legality of Clause X
    2.1. Legality under Article 101.1
    2.2. Legality under Article 101.3
    And so on...
    Heading 1. is selected as "Heading", 1.1 is selected as "Heading 2", and if I had 1.1.1 it would be selected as "Heading 3" and so on...
    I have navigated my way to the Format window, and under the tab "Style" and down to "Bullets & Lists". I have here selected the following: Numbered, Numbers, 1. 2. 3. 4., Tiered Numbers, Continue from previous.
    There are several problems with this currently.
    First, based on the example it becomes "2. Background" when it should be "1.1 Background" instead.
    Second, after writing some body text between the headings and then select a new heading, all the previously selected settings I mentioned above in "Bullets & Lists" have to be reselected.
    So, how do I set numbered lists for headings, or so called sub-headings, in Pages 5.2? And how do I keep that selected system of numbered lists saved so I don't have to retype it for every new heading I type? (e.g. so that Pages knows that every time I choose Heading 2, I want it to number the heading in the way selected)
    Obviously, manually writing the numbers for every heading is not a viable option, as it makes table of contents problematic and is simply tedious. You need an automatic way of doing it, especially if you write long documents where keeping headings in order is absolutely essential.
    Also, reverting back to previous Pages versions (like v. 9 I think?) is not an option as that does not exist on my recently purchased Macbook Pro.
    I need to be able to do this on Pages 5.2 and do it automatically.
    I appreciate any help with this.

    iWork '09 is not "outdated" it still works and works extremely well and whilst not perfect with MsWord it is far far better than Pages 5.2 which has a stream of major issues with exporting. It is also way better and faster to use than Microsoft Office.
    So what is your time and work actually worth? If it is less than $19.99 for 6 months, you may as well just chuck it in and take that job on minimum wages.
    You are assuming things for Office 2014 with absolutely no inside knowledge. Much as we assumed Pages 5 was going to be the long awaited improvement, but ended up being a downgrade to match the iOS version, Microsoft is headed the same way with their mobile versions.
    This is not like getting the "latest" pair of pants where you go with the crowd and throw out your cigarette legs which replaced the flares, which replaced your low cuts which replaced your cigarette legs, which replaced…
    This is work.
    If it does the job and does it well, use it. There is nothing out there to really match what Pages '09 does. Yet.
    LibreOffice can do most but not all, but has a UI that only a mother could love. It's great redemption is that it uses both open formats and the standard Microsoft formats and is under active development. It also opens and saves to just about everything. When they finally work out the Pages formats, I'm sure they will open those as well.
    I use a lot of professional software. Just because the publisher's marketing department says change the product so we can sell more, doesn't mean you have to pay any attention whatsoever. Adobe being a classical example. Most designers are just ignoring their latest subscription based bloatware and getting on with their work.
    Peter

  • Can internal page number references be tracked between versions?

    I'm laying out a large reference publication that has dozens and dozens of references to internal page numbers, such as "For more information, please see illustration on Page 56", but these references get scrambled with every new edition. Is there a way to track these references so that they automatically update as the content reflows from version to version?

    Yes, but it's... funky.
    I use cross-references in InDesign documents, all the time. It's exactly what you're looking for; you put a Hyperlink Destination on whatever it is you need to refer to. You can choose a Page, an URL, or a Text Anchor.  I always choose a Text Anchor, and if I need to refer to an illustration I always group the illustration with a caption and put the text anchor in the caption.
    I do this because InDesign's method for handling hyperlink destination is, once again, funky. And when I use this word I do not mean "a good beat" but "it smells bad." Because summoning a list of hypyerlink destinations just gets you a list - you can't Go To Page or whatever, and if you chose a unique name for a Page Hyperlink Destination it's pretty much up to you to keep track of it, InDesign won't help you. If you choose Text Anchor you can actually see it in the text. (Assuming you have Type -> Show Hidden Characters turned on.)
    Once you've set up your Hyperlink Destinations, you can Insert a Cross-Reference. It is a formattable variable that you can point to any Hyperlink Destination.
    Unfortunately, cross-references really only work well when they're within a single file. Cross-file cross-references (for example, from one InDesign chapter file to a different chapter file) are a major performance hit, and make ID basically unusable.
    So yes, there's a way, but it's not great. If you need a method that is great I'd suggest looking into DTP Tools' Cross-References Pro plugin for InDesign. I'm not related in any way to DTP Tools, I'm not even a customer myself, but 100% of the people who have bought the plugin on my recco have been very, very pleased with its performance.

  • How to retrieve page number of a page

    Hi
    I need to retrieve page numbers that have been placed on InDesign pages. However these page numbers are autogenerated based on markers (formula) created using a master page. (Insert special characters -> markers).
    When i try to retrieve page items on a page, I am not able to get the page number item. If I try to get the pageitem corresponding to the page number from the master page, I get back the marker but not the page number that exists on my page.
    I am wondering if there is any way I can retrieve the page number on a given page using the SDK
    many thanks
    Sam

    Hi
    Thanks a lot for the quick reply.. For my usecase i now realize i have a different sort of problem.
    I am trying to take snapshot of pageitems on a page (using snapshotUtils sample). Now since the page number marker comes from the master page, when i take the snapshot of the page number item on my page,  this page item exists on the master page. On the master page, this pagenumber does not contain the actual page number but the marker text in it. So mysnapshot gives me the image of the marker text rather than the page number. I am wondering what I can do to basically get a snapshot of a page item which comes from a marker on the master page
    Thus on my master page i have a text box with Pagenumber: "Marker A" for page number
    on my page, I want to take snapshot of  Pagenumber:10 which is what gets displayed on my page
    However when i take snapshot, since i am taking snapshot of master page item, i get Pagenumber: Marker A as my snapshot
    thanks
    Sam
    Here is my code snippet for what I am doing
    InterfacePtr<IMasterPage>   masterPage(currentDocumentDataBase, pageUID, UseDefaultIID());
      if(masterPage  !=  nil)
          UID masterSpreadUID = masterPage->GetMasterPageUID();
            uint16 masterPageIndex = masterPage->GetMasterIndex();
           //get the  master  spread
            InterfacePtr<ISpread>   masterSpread( currentDocumentDataBase, masterSpreadUID, UseDefaultIID()  );
           if(masterSpread   != nil)
                    UIDList masterPageItems( currentDocumentDataBase );
                       masterSpread->GetItemsOnPage(masterPageIndex,   &masterPageItems, kFalse, kFalse);
    The problem is  that  SnapShotUtilsEx captures the item as it appears on the master page, not  on  the current page.  So thing like page markers are wrong.
    thanks

  • In Pages - How do I delete a page number from an imported Word doc?

    I was sent an email with a six page WORD document attached. The attachment opened in Pages. Most of it is good, but there are page number characters in the wrong place.  I cannot do anything to them. They seem to be outside the document text, off to the right side and only partially showing. Definitely not at the bottom where they should be seen. Going over them with the cursor does not allow me to select and delete these numbers.  I thought they might be in footnote format and in the Inspector I unchecked Header and Footnote, which did nothing to help. 
    Also, I've tried without success to just go and add my own page numbers which might work, but then will need white-out or similar to remove the old page number.
    Working in Text and PDF format did not work, either, and I do not have Word.
    Unfortunately, I've spent hours on this and really hope somebody has a good suggestion on how to deal with these characters.
    Thanks

    Just to clarify, once you have done this you still need to use the command key and 'lasoo' the object from off the edge. So full process (in version '09 4.3) is
    Format > Advanced > Make Master Objects Selectable
    Then put your mouse to the edge of the page, press CMD key and drag to select the offending item. Then it will appear with a box around and can be deleted.
    Thanks to all who posted these tips - I was pulling my hair out over a client document!

  • Page number, in a table, in footer

    Hello,
    I'm having an issue which I think might be a legitimate bug. Here's the probem:
    • I'm adding the dynamic "page number", into a table, that resides within the footer.
    • When the page number reaches double digits (10, 11, etc), the number displays as two digits, but the spacing is being treated like a single character.
    So, when you hit "10" the zero overlaps any text that comes after the number. You can add extra spaces to make up for this issue, but then the previous, single digit, pages are all messed up. They have way to much spacing now.
    I've tried everything I can think of and still can't get around this issue. Starting a brand new document, removing all formatting, etc. I'm hoping someone has run across this before and knows of a solution, or maybe an update to fix this in Pages (Fingers crossed..haha).
    Any help or comments is appreciated.
    Thanks,
    Josh

    Hi Jerry,
    I've saved a screen shot of my existing working document as well as a brand new blank document to show that it's not my styles that's causing the issue. You will notice that the "10" page number is overlapping the text that follows it. When you highlight the "10" only the "1" get's highlighted, which makes me think it's representing that number incorrectly as a single digit.

  • Include PDF page number in barcode.

    Hello,
    I am new to adobe acrobat XI pro and developing forms and have a question about barcode generation.
    I have a task to create a barcode using the 3 of 9 format on a multi page document. The barcode is made up some information describing the form and the page number. for Example, on page 1 the barcode is made up of xxx001 where xxx = form information and 001 is page 1. Page 2 barcode is xxx002, page 3 is xxx003 and so on. I understand to get the form information of xxx I would reference another field on the form, but i am not sure how to reference the page number and then combine the form information and page number into a usuable entity.  I think that i will need to use the custom calculation script section of the value tab of the barcode properties, but I am not really sure.  thanks

    A field has a "page" property. If there is only one instance of the field, the page property will be a number equal to the page number (0-based) on which it is placed, so it's custom calculation script could be:
    // Custom calculation script
    event.value = "Some data goes here" + util.printf("%03d", event.target.page + 1);
    field.page property documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.713.html

  • 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...

  • Dynamic text based on page number

    Hi Everyone,
    I'm trying to place a dynamic text on an hrform. The form is displaying wage types and when there are more than 2 pages, the values on the first page need to be summerized into a variable with the text subtotal in front of it. When we are on the last page, the text total with the total of all the wagetypes needs to be displayed. I tried to use the sfsy-page and sfsy-formpages variables to know on which page i am but the strange thing is that when i use in in program lines and i use debugger to look into the variable i get this:
    First page:
    sfsy-page = 1
    sfsy-formpages = 1
    Second page:
    sfsy-page = 2
    sfsy-formpages = 2
    But when i place it into a text element to test i get 1 of 2 on page one and 2 of 2 on page two. How is this possible?
    Also i want to display a subtotal of the displayed wagetypes per page. Anyone an idea how i can do that?
    Thank you!
    Lars

    Hi,
    The reason you get 1-1 ,2-2 in debugging is because, the pages are added dynamically,depending on the length of your main window.Which doesnt get captured initially,but can be used in text element.
    As far as totalling on every page and at the last page is concerned ,try teh following link:
    link: [http://wiki.sdn.sap.com/wiki/display/ABAP/Togetsubtotalsoneachpagein+smartforms]

  • How to increment a value in a textfield based on page number

    Hi,
    I am doing PDF based print forms which is non interactive, i got a requirment where i have to increment the binded value of a text field based on page number.
    presently i am using this code in initialize event of that textfield.
    var curpage = $layout.page ( ref ( $ ) )
    var totpages = $layout.pageCount()
    $.rawValue = $.rawValue - totpages
    $.rawValue = $.rawValue + curpage
    but this is not helping me, can anyone help me regarding this

    Thanks for yor reply.please you can tellme clearly how to set use 'NQ_SESSION.USER' to set the value to logged in User.i.e i have circle table in that users and circle names will be there.it is teradata database.so how can i set that in to the dashboard prompt and one thing along with that prompt the follwing prompts will be there
    mobile no<>
    date<>
    circle name<"user">
    this is my requirement so please help me step by step what to do for achiving this.
    thanking oyu

  • 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

  • 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

  • Modify width of rectangle based on page number in InDesign via Javascript

    I have a rectangle called `pageBar` on my master page !
    I would like to create a script that will automatically resize the width of the rectangle based on the page number.
    Something like : `width = 1280 * (pageNumber / pageTotal)`
    Any help would be much appreciated.
    Thanks in advance,
    J.

    Here's the script I ended up with. I'm a bit unhappy that I ended up having the literal string "pageBar" in it twice. The second instance is there to allow the script to be run on the same document twice -- that's one of the prices you pay for using master page items in a script rather than creating objects on the fly and applying an object style to them (better than setting selected properties):
    //DESCRIPTION: Size PageBar on each page
    (function() {
              if (app.documents.length > 0) {
                        sizePageBars(app.documents[0]);
              return;
    function sizePageBars(aDoc) {
              var pageBar = getMasterItem(aDoc, "pageBar");
              if (pageBar == null) return;
              // walk through the document's pages and deal with each page
              var theMaster = pageBar.parent;
              var numPages = aDoc.pages.length;
              for (var j = numPages - 1; j >= 0; j--) {
                        if (theMaster == aDoc.pages[j].appliedMaster) { // ignore pages with other masters
                                  processPage(aDoc.pages[j]);
              function processPage(page) {
                        // numPages, pageBar and j are visible as global variables in this function
                        // caculate desired width
                        var desiredHalfWidth = 1280 * (j + 1)/(numPages * 2); // j starts at zero;
                        // could be running script for a second time, so check to see if page already has pageBar on it
                        var bar = page.rectangles.item("pageBar");
                        if (bar == null) {
                                  var bar = pageBar.override(page);
                        var pBounds = bar.geometricBounds;
                        var xCenter = (pBounds[3] + pBounds[1])/2;
                        pBounds[1] = xCenter - desiredHalfWidth;
                        pBounds[3] = xCenter + desiredHalfWidth;
                        bar.geometricBounds = pBounds;
              function getMasterItem(aDoc, name) {
                        var appliedMaster = aDoc.pages[0].appliedMaster;
                        var anItem = appliedMaster.rectangles.item(name);
                        if (anItem == null) {
                                  alert("Couldn't locate 'pageBar' rectangle.");
                        return anItem;
    I was going to introduce to the resize method, but that would have first meant understanding it myself. The description in the object model viewer is a masterful demonstration of how not to communicate complicated information.
    So I did a web search and found myself on this page by Marc Autret: http://www.indiscripts.com/post/2013/05/indesign-scripting-forum-roundup-4
    Search that page for resize and you'll see what I mean. Compared to the simple manipulation of geometric bounds, using resize is a nightmare of complexity. Marc has simplified it by providing a function you can call, but I decided to just go with using the bounds.
    I hope this proves helpful to you.
    Dave

Maybe you are looking for