Right align page numbers which is found to the left of the table of contents entries

I posted a similar question a while ago I think that substances or Peter replied, but darn if I can find the thread. At that time, they provided a script that does a GREP search, find a sentence that starts with a number and its replacement by a tab. I still have the script, but for some reason, it does not properly with my new table of contents page layout. It must insert a tab on the left page number (page numbers are to the left table of contents entries) and force the numbers right aligned so that a single-digit right page number aligns with the right edge of a two-digit page number.

Find: ^ (\d+)
Change to the: \t$1

What is happening in the new table of contents, this is the script is a figure and inserts a tab to the left of the page number. Page numbers are moving to the right, but they do not align right. They are further to the right, but they themselves numbers correspond to the left.

I'm puzzled as to why the script does not work on this new layout. Now I use CS4 and it still works on the former route. Nothing terribly different about the new layout except that the column is much closer, and there are several columns threaded in the TOC instead of a long column and the chapter titles do not have page numbers (but all other entries have page numbers.)

We should probably set the tabulator in your paragraph style: a tab aligned right for the numbers, followed by a tab stop that is aligned to the left to the text that follows this number. (I guess that there is a tab after the number.)

Peter

Tags: InDesign

Similar Questions

  • Page indent the problem with the table of contents entries...

    I have a few entries of table of contents running on more than one line. I would like the text to be indented from the establishment right indent/margin so that text does not as far as the Page numbers on the right margin of the text TOC block extend existing. I put a tab on the right so that the page numbers are tabulated on the right edge of the frame, but if I bring you the right margin with several (currently 5 mm) indenting, I can't have a tab stop to the page outside of the right margin.

    If I insert soft-return/new line tanks they wil get lost every time I have rebuild the table of contents (there will be a lot of it!)

    Any ideas, I'm sure it happens all the time for designers of the book.

    The same way you have a withdrawal of first line, on the left there is a final withdrawal of the straight line. You can set the right two inches (for example) withdrawal and removal of stretch to neutralize two thumbs, all on a single line will go completely to the right of the frame, and any point edge requiring line breaks will break two inches to the left of the right edge of the frame, while the last line will go to the right edge.

  • Paragraph numbering does not appear in the table of contents

    I'm working on a book with several chapters. Within each chapter, I have heading styles that use autodial (position 1 watch 1.1, 1.2, etc.;) Heading 2 is 1.1.1 1.1.2 etc. ; Heading 3 is 1.1.1.1, 1.1.1.2, etc.). These figures show in chapters, but I can't to the appear in the generated table of contents. I tried to add < $chapnum >. < $sectionnum >. < $subsectionnum > to reference the table of contents page, but that only seems to show the chapter TOC number, rather than the chapter title is actually in. I tried auto numbering in the table of contents, but that no longer works. Is it possible to show the numbering of the chapters in the TOC?

    This is what it looks like now:

    Workshop 3: Adding redundancy in a component

    Purpose ........................................... 7 - 1

    Functional objectives... 7 - 1

    Setup .............................................. 7 - 1

    Code files for this workshop... 7 - 2

    This is how I want it to look:

    Workshop 3: Adding redundancy in a component

    7.1 Purpose ........................................... 7 - 1

    7.2 business objectives... 7 - 1

    7.3 Setup .............................................. 7 - 1

    7.4 code files of for this workshop... 7 - 2

    If anyone can help me, I would really appreciate it!

    Thank you!

    I tried to add <$chapnum>.<$sectionnum>. <$subsectionnum>to the reference TOC page,...

    You do that on reference Page Table of contents of the YourDocNameTOC.fm file,

    or in the body file?

    I just tried:

    for a title 1 with auto-numbering format from:

    <$chapnum>. \t

    and a Heading1TOC format of:

    <$paranum>. <$paratext> <$pagenum>

    on the TOC TOC RP.

    It generated a table of contents entry of:

    2.1 title text 13

    for sample 1st section on page 13 of the file declared Chap 2 and start the p13.

    I didn't even have to add <$chapnum>.

    It's FM7.1 WinXP32.

  • Page numbering and the Table of contents

    I have a book containing 23 document files. Document files contain the page numbers in the footer.

    One of the document file is a generated table of contents (TOC). Unfortunately, the generated page

    the number in the table of contents do not match the numbering of the pages in the files. Here are the details:

    • The title page, in a file by itself, is not numbered
    • The frontmatter, distributed in five cases use lowercase Roman (i - xvi)
    • The body of the text in the remaining 17 files is digital (1-243)
    • The generated TOC uses cardinal numbers of the book as a whole. For example,.
      Chapter I is numbered correctly in the footer from page 1. However, he is listed in the table of contents
      as starting on page 19, because this is the file real 19th in the book. I put the document numbering
      This file from 1 properties and properties of Page numbering for the book as a whole to
      be "continue."
    • The style of the table of contents entries is correct. In other words, the frontmatter uses a tiny Roman and the
      chapters use Numeric

    I tried to regenerate the table of contents, but this did not help.

    Does anyone have suggestions on what is the way prescribed to do?

    OK, I continued to read and this is what I found:

    Set the numbering style in the document, and not in the book that we told you. Format > Document > numbering. Choose Arabic or digital. Repeat for the various chapters.

    Save and close the chapters. In the book file, click with the right button on each chapter and choose Configure XXX. This is where tell you the book to continue the page numbering or restart at the 1.

    Once this is done, update your address. From there, if there are issues, we rely on the logic of the Fm we use every day, and each of us can help you solve.

  • text too close to page number in the table of contents

    Most of the time I can take care of unattractive line breaks in the table of contents by putting in the nonbreaking spaces in a paragraph.

    However, sometimes I have a situation where a table of contents entry text is too close to the page number right. The text is so close to the page number as in some not case of presentation of points of the leader, or show only one or two points of leader.

    Writing and its adjustment page number on one line, then putting in the nonbreaking spaces won't solve the problem. I could put in a soft return (SHIFT-ENTER) in the table of contents entry to force a line break, but it is not effective because I have to put in the soft return manually every time the table of contents are updated.

    If someone has a tip on how to effectively manage this problem, I would like to know about it.

    Jay,

    Some time ago, someone posted a solution to make the line nice breaks in the index entries. It's setting values of the minimum and maximum word spacing in the paragraph Designer. The values validated it did not worked for me, so I played a little with it and use the following syntax:

    In the paragraph format for table of contents entry, set the maximum word spacing of 325% and oral minimum spacing to 275% and the optimal spacing to 100%. Note the fact that the optimum is NOT between the minimum and maximum values. I don't know the algorithm that Frame uses to decide where the line break, but I'm guessing he first decides to break the line to fill the max and min requires, breaks the line, but changes the spacing back 100%, which is what you want then, in other words, we don't want large spaces.

    The causes of values above a line break about an inch or two to the right margin. If you want to close, try 225 percent and 175 percent. I found that over these two issues of line breaks occur further from the right margin.

    This method does not have to enter the manual line breaks and gives a nice line break, even for those rows that could fit on a single line.

    Good luck

    Van

  • The Bookmark Script list align Page numbers on the right

    Hello

    I have a script that lists the names of bookmark, and then the Page number after the bookmark as follows:

    Bill Smith #1

    Jeffrey Jones Page #5

    Christopher James Page #8

    What I would like the script to achieve is to list the bookmarks and then align Page numbers to the right of the pdf instead of mixed together.

    Please can someone tell if it is possible to do it in javascript?

    The existing code is as follows:

    / * All bookmarks in the list * /.
    / * Work recursive l‟arbre bookmark * /.
    function PrintBookmarks (bm, nLevel)
    {
    If (nLevel! = 0) {/ / do not print the root}
    bmReport.absIndent = bmTab *(nLevel-1);
    BM. Execute();
    bmReport.writeText ("" + bm.name + "Page"+ (bm.doc.pageNum + 1) ");

    }
    If (bm.children! = null)
    for (var i = 0; i < bm.children.length; i ++)
    PrintBookmarks (bm.children [i], nLevel + 1);
    }
    bmTab = 20;
    bmReport = new Report();
    bmReport.size = 2;
    bmReport.writeText (this.title);
    bmReport.writeText("");
    bmReport.size = 1.5;
    bmReport.writeText ("list bookmarks");
    bmReport.writeText("");
    bmReport.size = 1;
    PrintBookmarks (this.bookmarkRoot, 0);
    global.bmRep = bmReport;  do global
    global.wrtDoc = app.setInterval)
    "Try {'} '.
    +' reportDoc = global.bmRep.open ("list bookmarks"); "
    "+' console.println ("open Executed");"
    + "app.clearInterval (global.wrtDoc);"
    +' delete global.wrtDoc;'
    "+' console.println ("App.clearInterval Executed");"
    + "reportDoc.info.title = 'Bookmarks lists';"
    + "reportDoc.info.Author ="Bookmark Sequence list";"
    {+'} catch (e) {console.println ("Meanwhile...:" + e) ";}"}
    (100);

    Any help will be much appreciated

    The purpose of the report is seriously flawed. Beside the known bug page break in version 9 there are many other issues, such as the issue of alignment.

    The best solution I found that it was to place the page numbers on a new line then align them with dash and raise.

  • How to get page numbers in toc shift to the right

    Hello

    I'm working on a table of contents and try to get the (3, 4, 5, 7) page numbers against the level 1 and level 2] headers to the right. I don't know how to proceed. I would appreciate your help.

    Lee is the screenshot:

    toc.PNG

    Thank you

    You should have a tab between the number of para and text entry, as well as between the text and the page number, but do not display your text symbols (Type > show hidden characters) so I can't see them. Assuming they are there and the two paras TOC use header level 1 and level 2 header by styles (just uncertain of the page, but if I have a para tag names wrong, just replace the good):

    1. Click on the first line of the table of contents.
    2. Type > tabs.
    3. Set a left tab align the left edge of the text entry and a tab right-align by a point of the leader of the page number. (To add: select the type of tab in the tab at the top on the left, then click on above the rule.) You can drag them left/right to move. A selected tab is highlighted in blue or orange, and you can add the point of leading to a selected tab.)
    4. With the cursor on the first line, right-click on the name of the style and redefine the style so that the other 1-level headers are updated.
    5. On the second line, drag the left triangle below to indent the line (the upper triangle comes along for the ride). Adds a tab on the left for text entry and a right tab by a point behind the leader for the number of page, under step 3 above.
    6. Level 3 header and Style to redefine a right click.
    7. Fact!

    For more information, see create a table of contents in Adobe InDesign and set tabs and indents in Adobe InDesign .

  • Chapter numbers will appear in the table of contents with page numbers...

    First of all, thank you all so much for the display of the answers.  This forum is wonderful.

    I have a doc that needs to have chapter numbers appear with the page numbers in the table of contents.

    I insert the < $chapnum > and < $currentpagenum > in the footer and I get 1-1 appears.

    To include 1-1 in the table of contents, do I have to edit the referring Page, or is there another way.

    Thank you very much for your help!

    Change the reference to the table of contents page to use the building block as well as the first page, which is <$chapnum>chapnum.<$pagenum>

  • I have Windows XP, her border is my home page, when I click on a story, Yahoo page appears, 404 not found, sorry, the page you requested has been

    I have Windows XP, the border is my home page, when I click on a story, Yahoo page appears, 404 not found, sorry, the page you requested

    not found.   If I go to Google Chrome, it works perfectly!   I do not use Chrome because their title stories are not up-to-date.

    http://answers.Yahoo.com/question/index?QID=20080118090732AAeKoF1

    Border is powered by Yahoo, try the thread above, see if it will solve your problem.

  • Has anyone who has worked with doc us MIL - STD and generated with the success of the page numbers in the table of contents?

    I'm creating a template using FrameMaker 7.2.

    MIL - STD dictates works package (such as chapters) page numbers in the format: 0001-1, 2-0001, 0002-1 and 2-0002, etc.

    The problem I encounter draws in this format of the page number in the table of contents generated.

    I used a variable on the Master Page, and generate page numbers in each package to work properly.

    I know that in point 7.2 of the FM, you cannot include a variable in a table of contents generated.

    So I tried changing the variable on the Master Page to text using a paragraph tag (WPnumber), but have not gotten it either works.

    Tried all the other stuff I could think of, too.

    In my view, a part of the problem is that FM cannot have leading zeros when you set the page number or chapter (understandable 99.9% of the time).

    If anyone has suggestions or solutions, I am very interested to hear.

    Thank you.

    1Editor - and puzzled

    I already manually put the zeros.

    I just want to be clear that strikes the zeros directly on the master page does NOT have to include in the table of contents. You then type in the context of the reference to the table of contents also. In addition, you must have separate template and reference pages for chapters 10, 11, etc., in order to obtain the number of zeros correctly.

    With my method, the zeros are introduced as part of the chapternumber itself, in the chapter number of the TEXT. You still have to type but only once for each file.

  • How we can print the page numbers for the shape of the TABLE OF CONTENTS when her excluded from the form page count?

    Hi Experts,

    We have the TABLE OF CONTENTS, followed by 100 forms totally 215 pages.

    We checked in the exclusion of the option of number of form page SUMMARY form at the level of the group.

    Followed forms of TABLE OF CONTENTS forms all use FORMSETPAGENUM rule at the bottom of page.

    the first form followed by TABLE OF CONTENTS form the number starts page 1 of 215 and the last form closes at 215 215.

    Now, I want to print the Page number of SUMMARY form only.

    How can do us?  Any thoughts?

    Kind regards

    RAMAN C

    Hello Raman,

    I guess that you included "Exclude the number of pages" option in the form of table of content (TOC).

    There is a limitation in the studio. The functions of page number (PAGE NUM OF FORM / FORMSET PAGE OF NUM) will be ineffective when we choose the option "Exclude the number of pages" in the form of table of contents. Therefore, you was not able to print many pages of form as a table of contents.

    The only way to print the number of pages is to deselect the option "exclude the number of pages. Then you can print the number of pages in the table of contents in the form of table of contents normally. However, this number of pages in the table of contents will add to the Total number of pages form set. The number of pages all forms can be controlled by Postransdal using the script [FORMSET PAGE NUM = TotalPages() - 1]

    Kind regards

    Mahesh

  • Find/change the question numbers and create the Table of contents

    Hello! I need help to find all my item numbers and apply a paragraph style so I can use them to create a Table of contents page.

    The sample numbers

    #12345

    #12345-5

    #12345-20

    #12345-ABC

    #12345/N

    I tried to enter #^? ^ ? ^ ? ^ ? ^ ? in the search/replace and but it is exactly 5 characters after the sign #. I wonder if you can find all characters starting by # and up until the last characters.

    Once I found all item numbers, how can I apply the paragraph style to have these characters after the sign #? Because I only want to show item numbers without the # sign on the Table of contents/Index page.

    In addition, I have InDesign CS2, which have no function GREP maybe I can do this without the GREP?

    I really appreciate any help. Thank you very much.

    Are your numbers by themselves in a separate paragraph? OTHERWISE you can not USE the table of contents feature to list all the numbers.

    If are, then just look at # in find/replace, then set it to change formatting a new paragraph style (you must create this style in CS2) that you want to include in the table of contents, then as you say, you can use find/replace once more on the history of the TOC to remove the # of all numbers.

  • Pages is wrapping the row number in the table of contents

    So, I have a document with two paragraph styles I want to include in the table of contents.  A style with page numbers and the other without.  So I insert a table of contents (it's in its own section, because I want the table of contents to be their own style page numbers) and I get the table of contents, but instead of text that is labeled with the style of the paragraph to the left and right page numbers, I get the text containing the tag with the style of the paragraph to the left and then click the line below (no paragraph don't symbols even if it's on the next line) a blue arrow pointing to the right in the middle of the table of contents box, then on the next line (once more no paragraph symbol), to the left I get the page number.

    Anyone know what is happening or how to get the right page number on the same line as the text?

    Thank you

    John Engstrom

    Something that I did not mention what may be important - paragraph styles are two styles of personalized paragraph that I created for this document.

  • How to display a complete tree of the table of contents in the body of a page instead of the sidebar?

    How to display a full (project) TOC tree in the body of the pages of the section instead of the default sidebar (left pane)? Is there a simple way to do this in the application? I have not yet discovered a way to do it, but I can't get to the right place. Any suggestions?

    I don't think you can view the table of contents on a page, and even if you could, the sidebar would always be there for indexing and search. The only possibility I can think of is to create a page where you create links arranged to act as a TOC, then maybe iFrame this page in. Each book might be a drop-down list to view links to topics.

    Maintenance would be horrible and she barely meets your requirement to be simple.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Is Acrobat Pro just for us. We have an employee handbook that needs editing. A part is current pdf, some of an earlier version. You want to get all in a manual, the table of contents automatically adjust and links to specific pages of the table of content

    Is Acrobat Pro just for us. We have an employee handbook that needs editing. A part is current pdf, some of an earlier version. You want to get all in a manual, the table of contents automatically adjust and links to specific pages of the table of contents.

    Acrobat Pro is certainly not the right tool for editing. You want to change the manual using the source - MS Word files for example. Once you have the full changes including OCD work as you want, Acrobat Pro is the tool to convert the source document to PDF format, and ensure the accessibility requirements of 508 - and preferably ISO 14289 (PDF/UA) - are met.

Maybe you are looking for

  • Can't play videos youtube in HD since the upgrade to 24.0 FF

    Hi, since I upgraded FF 23.0 to 24.0 FF, I am unable to change the video quality in Youtube in HD. The video plays on the low quality default setting, but if I change to 720 p or 1080 p, a black screen appears and it will not play. When I hover over

  • New HD - no restore disks

    Hi, I have an ideapad Z570, who recently had a HD change (the old one just died) I don't have the disks to restore the operating system, is there any way I can order them? The laptop is out of warranty, but I would still keep my copy of OS. Thank you

  • ogtk file extension

    I am trying to open a LabVIEW program that someone told me, however, when I try to open it, LabVIEW can find several vi with "ogtk" as part of their name.  I have installed LabVIEW 2012, with the basic package and DAQmx.  Can someone tell me where I

  • Trial version of the Windows 7 operating system

    Currently I am using windows vista professional. But I met a lot of problems with vista. I want to upgrade my operating system to windows 7. But before you buy this OS I want to have a version track Wndows 7 for some time to experiment and to determi

  • When I do a boot on AVAST scan I get this CAB 42127 ARCHIVE is corrupted \_RESTORE C SYSTEM VOLUME INFORMATION

    Original title: I get to start scan cab archive is corropted c system error 42127 When I do a boot on AVAST scan I get this CAB 42127 ARCHIVE is corrupted \_RESTORE C SYSTEM VOLUME INFORMATION