Mathematical calculation with the numbering of the current page

Hello

I am currently in a situation where I need 2 types of page numbers for a single page.

delete.jpg

To the right side, I use the current page number marker.

Is there a way to make a mathematical calculation with number of current page on the left side?

Something like 460 + current page number

I can't use the data merge feature because all the page are already installed on.

Kind regards.

Hello

You can run a script:

app.findGrepPreferences = null;
app.findGrepPreferences.findWhat = "~N";

var
     FindGrep=app.activeDocument.findGrep(),
     len = FindGrep.length,
     item, pageNo, calcNo, rightSide,
     mDiff = 460;          // edit this value according to needs

     while (len-->0) {
          item = FindGrep[len];
          pageNo = item.parentTextFrames[0].parentPage.name;
          calcNo = parseInt(pageNo) + mDiff;
          item.paragraphs[0].contents = calcNo + "\t" + pageNo;
          rightSide = item.parentTextFrames[0].textFramePreferences.textColumnFixedWidth;
          with (item.paragraphs[0]) {
               tabStops.add({alignment: TabStopAlignment.RIGHT_ALIGN, position: rightSide});
               justification = Justification.LEFT_ALIGN;
               }
          }

that should work assuming management texts related with the pageNumbers are substituted (accessible)

Jarek

Tags: InDesign

Similar Questions

  • with the master page "insert current page number" error when you export the book

    Using InDesign CS for Windows 5.5

    Recently updated for InDesign CS (very old one from 2003). I save a copy of all my old files version and kept the old installed ID just in case (after reading all the horror stories on here).

    In my old version of ID, I created a book consisting of some 70 documents. Some of these documents are a single page, while others have multiple pages. In the multiple documents page, I used the "insert... current page number" character (or whatever the command was in the old version) on a page master and formatted as follows, for example: Page 1 of 17, Page 2 of 17, Page 3 of 17, etc. When I exported my book in pdf format, it worked fine. (I is not have to / want page numbers consecutive throughout the book, only in individual documents.) By that I mean my whole book is about 280 pages, but not all of these 280 pages are numbered, only groups of pages in multi-page documents. It is not read page 1-280).

    Am my upgrade to 5.5 a few months ago added some documents in the book, and (if I remember correctly) when I saved the book he asked to convert each document version to the new version, I said OK. When I exported the book in pdf format, some documents that are more than 2 pages are now counted wrong; the numbers are now like this: Page 1 of 17, Page 2 of 17, Page 2 of 17 (supposed to be page 3), Page 2 of 17 (supposed to be page 4), etc. Each page, but page 1 is now page 2 of that either.

    If I open the individual document and export it to PDF, the page numbers work very well. It is only when the document is exported with the book the page numbers to spoil. And it's not all documents in my book; This error starts to a particular document and continues from there throughout the rest of the book, affecting any document more than 2 pages. Documents several pages before that point in the book for export with the correct page numbers.

    I create new documents by performing a "save under" with a previously created document and cut and paste as needed, so I won't have to reformat or implement the page numbers on each new document. I use layers or styles (I do not know there is a better way to do what I need, but I didn't have time to learn the basics, just enough to be functional.)

    My attempts to resolve this problem so far (using version 5.5), tests with the first document where the error: (1) I have removed the document from the book, removed the page number character current insert, back to the current page number character insert, saved, the individual document exported in pdf format and it worked fine. Put it in the book, save, export, and it is bad. (2) I picked up the book document, export the document to .idml, registered as a new .indd new name, exported to PDF and it worked fine. Put it in the book, save, export, and it is bad. (3) I started to the top of my old version of ID, open from the previous version of this document, exported .inx, closed, open the .inx in ID 5.5, registered as a new .indd new name, exported to PDF and it worked fine. Put it in the book, save, export, and it is bad. (4) I moved the document to the top in the order book, put it on a document which correctly numbered pages, saved, exported to PDF and this document was still evil, but one who has been numbered correctly all along is still correct. (5) I compared the settings for this document to others that the number properly and found no difference.

    It's as if the page numbers get hooked on "2" when I export the book, but only in the last two-thirds of the book. Sorry this is so long, but I hope that this description of my problem is understandable. Any advice, other than to go back to my old version documents and start over?

    Thank you for your time and all the information great this forum provides.

    Alice

    Normally, I would say that this kind of problem is symptomatic of the incorrect numbering options in the book panel or an individual document or a bad update of the numbering, and those things are still definitely worth looking at.

    That said, I invite you to go to the original files, export each one to .inx and open those in CS5.5 and save as a new file .indd CS5.5 whose new name, then add them to a whole new book CS5.5. Books are pretty flakey without mixture in the conversion of files, and there are enough bad behvior file conversion directly inherited the .inx route is insurance a little success.

  • I'm looking to move from Windows/Apple/logic and Cubase Cubase. My questions have to do with the current (2014) Mac mini, specifically the i5 $999 2.8 GHz with 8 GB of RAM. This computer will be powerful enough to run the current logic without any pr

    I'm looking to move from Windows/Apple/Logic Pro X and Cubase Cubase.

    My questions have to do with the current (2014) Mac mini, specifically the i5 $999 2.8 GHz with 8 GB of RAM.

    This computer will be powerful enough to run Logic Pro X DAW and Cubase 8 courses without any problem?

    I would say yes, but I post here too:

    Logic Pro

  • There was a problem with the current system. Please try again later. If the problem persists, contact customer service.

    There was a problem with the current system. Please try again later. If the problem persists, contact customer service.

    Why?

    Please tell us what Adobe application you are trying to download. Please try creative cloud install app - https://helpx.adobe.com/creative-cloud/help/install-apps.html

  • File is not compatible with the current version of Photoshop

    "The file is not compatible with the current version of Photoshop" is the warning I get when you try to open a Photoshop file that I saved a few minutes before my computer crashed (Wacom Cintiq complementary, 10 of Windows). I can't open it with any another application either. How is it possible that I can not open a file I just worked with and saved permanently? Is it possible to recover an earlier version of the file?

    Hi NonMeek,

    It seems that the file has been corrupted somehow.

    Would suggest you to run Photoshop as administrator and then try to open that specific file.

    If this does not help, you can download this file somewhere and share the download link so that we can try to open it on our end.

  • Vimeo can be played with the current configuration (tablets only presentation)

    I'm working on a site with configurations desktop, tablet or phone. I have a Vimeo video in all versions, my problem is in the presentation of the tablet. I have a message on the video who said: it can be played with the current configuration. Everything works fine (desktop PC and telephone) in the online site. I don't know what I need to make changes. Appreciate help with this. Thank you, Alan

    PS tried changing the Vimeo with a YouTube video, always get an error on the site online.

    It seems that it was not software based on the Web service.  I published the site from home tonight and everything works perfectly.

  • vmrun return "this operation is not supported with the current permit.

    Hello

    I just installed the 5.1 esxi and I have 2 vm windows works well.

    I use the vSphere client to manage the hypervisor.

    I have not installed vCenter stuff, so it is just bare hypervisor os.

    When I ran the following:

    «vmrun t h 10.10.0.9:443 u vpxuser Pei xxx list esx»

    He returns with "this operation is not supported with the current permit.

    In fact, I have installed esxi5 on hypervisor licensing, do not know why I get this error message.

    Access the esxi5 through the sphere client works very well (I could create vm, take snapshots, etc.).

    Please let me know if I missed any steps. Thank you

    -antony

    Welcome to the community,

    with the free license of the hypervisor, access to vSphere API is restricted, which is most likely causing this issue. To unlock the API, you must have a paid license. Unless your host has already exceeded the 60-day evaluation period, you could try to revisit the evaluation mode to see if the command works as expected.

    André

  • GoTo PDF named destination link with the current zoom level

    Hello

    I created the PDF file of 3B2 software with a lot of links and bookmarks, links with documents created with the bookmark named destination names.

    When I click the link to navigate the document with, it will be the location of the bookmark goto and zoom level will be changed to "ADJUST to WIDTH" but I want to go through the document with the current zoom level from the link where I clicked.

    For this process, I tried a method which is javascript in link action.

    Using the properties of the links of

    Action-> Add Action-> Action of selection (running Javascript)

    Script


    main()

    main() function

    {

    Zoom var = this.zoom;

    This.gotonameddest ("BK1");

    This.zoom = zoom;

    }

    By this method, I get what I'm looking for, but I'm having a problem.

    First I'll goto who book a page marked with and after that only it fits its current zoom level, so when I go to previous view it will be zoom goback "ADJUST to WIDTH" level, if this method does not.

    And also I am not able to change all the links in my PDF document by manually.

    So please advice me which is just way to browse the document with the link current zoom level where I clicked.

    Note:

    The output PDF document will contain 100 number of links, so I want to update all the links with my requirement by automation.

    Is there a way to manage this process by Acrobat SDK with c#, .NET

    Respect of

    Thirusanguraja V

  • quickly create with filter-date and initialize it with the current date

    Oracle BI 11 g

    Hello!

    I need to create guest of dashboard with filter-date and initialize it with the current date. How can I do?

    I tried to create the repository initialization block and add a variable. But I don't know what should I write to DataSource? I tried using the Current_Date, Now(), sysdate functions (for example, SELECT Now() FROM tbl_Calendar) but without results - when I pressed the button "Test"... "I have errors - something like 'Now() is unknown function' or 'incorrect syntax near keyword Current_Date.

    After that, I made to use presentation Variable in the command prompt, but also without success (())

    Please, help me.

    Use "Server Variable.

  • compare the value of previous line with the current value

    I need to compare the previous value with the current value. All Oracle functions could there be to do?
    Something similar as a result.
    If previous (Amt {}) > Current (({Amt}) then 0 Else Null.)

    Something like that?

    SQL> WITH test_data AS
      2  (
      3          SELECT 107019 AS ID, 1583 AS AMT FROM DUAL UNION ALL
      4          SELECT 107019 AS ID, 1572 AS AMT FROM DUAL UNION ALL
      5          SELECT 107019 AS ID, 1572 AS AMT FROM DUAL
      6  )
      7  -- END SAMPLE DATA
      8  SELECT  ID
      9  ,       (CASE
     10                  WHEN LAG(AMT,1) OVER (PARTITION BY ID ORDER BY ID) = AMT THEN NULL
     11                  ELSE AMT
     12          END) AS AMT
     13  FROM test_data;
    
            ID        AMT
    ---------- ----------
        107019       1583
        107019       1572
        107019
    
  • Mathematical calculations with variables

    I am using Captivate 4.  I need to create a series of slides that allow the user to enter a number.  Based on the number entered, one of the two slides will show (this action advanced I've written successfully) giving them a response.  I need help is the next step.  The mathematical calculations.  The necessary action will take numbers entered by the user, by the number of 40 and a second number to multiply by 8 and then add the two numbers.

    I've named my variable fields where the user will enter the number, but do not know how to write the script for my response.  Any help is greatly appreciated.

    I can provide additional details, you need, just ask

    Thank you!

    Hello

    You must create the user variables to have available in the drop-down list, use the Variables tab in the dialog box with the advanced actions and create v_result. For the most part, I prefer setting the variables, also those of use with first of the ETB. Don't forget to associate the appropriate variables (v_one and v_two) with the ETB under the Advanced tab in the properties of TEB.

    On the other issue, I'll try to create it, but am a little pressed for time. And I almost forgot how to use the interface in CP4, it's so much better to CP5. I made the blog a lot about variables and advanced actions. Take a look at the comments of two introductions to the variables (examples are for CP5, but can be achieved in CP4 too):

    Curious about variables (part 1)

    Unleash the power of variables (part 2)

    Lilybiri

    Sorry, think you're asking on how to trigger the action: you will need to attach to an event. This event can enter a slide or a button, click box.

  • The previous/next Page number is showing that the current page number

    I'm trying pages numbers with previous Page number and the current Page number, then it is and shows that reason 002-003, but for some they are both appearing as the number of courses, so 003-003. The same thing happens if I try to insert the next Page number.

    I have this set up in the master page in a document issued in March and it works great - when I add new pages they are automatically numbered correctly. However, in a new document, or if I add a new text box to my old document, the Page number previous shows that the current Page number.

    Any idea of what is the cause? I use the latest InDesign on a Mac with os x 10.11.12. My colleague is having the same problem on his Windows PC.

    I am waiting to start a conversation with Technical Support, so I'll post the results.

    Hey Willi

    Thanks for your reply, we are both halfway there, it isn't fair for the lines break...

    I just checked my old document and there was a block of empty text hidden under something else on the previous page, which is linked to the image on the next page that holds page numbers. I need to insert a Page break at the beginning of the first text box to force the numbers on the following page. Now my second text box displays the previous and current page numbers.

    Problem solved!

  • I can not open a new tab anyway... by clicking on the button new tab bar tabs, or ctrl/T or file/new tab, or by clicking on the link on the current page.

    On Windows7 Home Premium Edition, I can't get a new tab to open no matter what I try. Occasionally, if I click on a link on the current page, a second tab opens, but 99% of the time I'm stuck using the first tab for everything and using the back button. I tried ctrl/T, tab file/new, right mouse click / New tab and the new button tab in the tab to the right of the current tab bar.

    Uninstall the Ask Toolbar. It can cause this problem.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • URL address box does not display the current page.

    With the 4.0.1 update, the URL address box does not display the current page.

    All that shows is the text: «Go to web site»

    To now see the url of the current page, you need to make a right click the empty space is the address box and press the button "esc".

    Is there a way to display the url of the current page?

    This problem may be caused by an extension that is not working properly.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • When I open a new tab, I stay on the current page, even though I have changed my preferences to focus on the new tab.

    When I open a new tab, I stay on the current page, even though I have changed my preferences to focus on the new tab.

    You have this problem when running in Firefox SafeMode?
    http://support.Mozilla.com/en-us/KB/safe+mode
    Do not choose anything at the moment, just use 'continue in safe mode.

    If this is not the case, see this:
    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+theme...

    You probably have an installed extension that has a conflict with another extension.

Maybe you are looking for

  • HP TouchSmart 23 ENVY: the fake HP support

    I recently had problems with my PC. and I get calls to an 800 number that I responded to and it took me a number of HP.  I have taken note of this number and added to my contacts.  I was called this morning from this number and I answered. I was told

  • Desire X 2: Reset password for Bios

    Want X 2 with Win 8.1. Had a bios password known with 10 digits. Had to enter each time you start. Updated to win 10. Now the bios asks for the password, but only allows to 8 digits. Crazy. I need the new pw for the disabled Sys error Halt: (67240450

  • N300 not see the Lan cables

    Hello world! After the oath to a customer support agent, I decided to turn to the community that might better support than support Netgears AWEFUL! I tried a modem LAN cable connected to my PC, but nothing lights up on the modem telling me its plugge

  • Data analysis for peak max after sampling offsets

    In the attached VI, each channel is to measure a point of acceleration, which appears as a global maximum on the chart. Ideally, what I want to happen is for both tables to search for their highlight (global max) and the difference in time between th

  • Replaced the hard drive recovery disks don't work

    Had the HDD out on my laptop DV6710. Replace it with the exact type. Order recovery dvd from HP. When I try to restore using the first disk, I get the message "no media found. It is the second disc to the dvd player is ok. I changed the boot order an