Updating Table of Contents

I would really like to have the option to update just the page numbers vs. the entire table of contents...

Hi Dominic & Mark,
The podcast i suggested show how to set up an index and table of contents and have them update across a book as you change the content of the book including page numbers and chapter setup. I definitely think the solution to Marks problems is in these podcasts but like me the first time i looked at them as I was doing my project that I have just finished I had to go over it more than once before I got everything to do what It did and what I wanted it to do. There is "Generate/Update command" as part of the booklet but I can't/don't explain it correctly thats why it is better to look at the podcasts. I remember something about Nested Styles as part of it as well. It has been a while since I did it and I don't get to do large project like that that often.
Regards Bj.

Similar Messages

  • How to update a table of contents when the feature "update table of contents" is unavailable?

    Hello folks,
    I've been struggling all morning with this issue and am completely desperate.
    First, some info:
    - I am making a spanish versions of an english documents: everything in the original doc was then edited, including TOCs. What I got at first, was a first spanish document already filled with spanish content.
    - I was not the primary creative of the document I'm workin on and am unable to get in touch with whoever that can be.
    - My document is a 200 pages text only document, with 12 chapters and, at the beginning of each chapter, a specific TOC for that very chapter.
    - Inside each chapter, there are only Sections and Subsections, no other style. Those are the two levels in the TOCs.
    - There is also a General TOC at the beginning of the document: that one only shows the Chapter names and the page number where to locate them.
    My problem:
    - Somewhere along the way, from one doc to another, the TOCs stopped to update the page numbers automatically.
    - Now I have sections and subsections that are shown in one page (for instance 204) but they actually are on page 135.
    - When I try to update the TOCs, I stand on the TOC itself as I was told in many tutorials, but the "update table of contents" feature is unavailable, even in the main TOC at the very beginning of the doc.
    It is like if I wasn't standing in the actual TOC, but there is no actual TOC anywhere that I could refer to.
    What can I do? I am changing the wrong page numbers manually but, of course, that is not ideal... and it may become more and more tricky while I keep producing new documents each based on the previous one.
    Any help will be much appreciated.
    Warm regard from sunny Paris, France!
    Sasha

    You've just confused me.
    My understanding of how this is set up is that either:
    This is a book, and there is a master TOC that includes all book documents and a document-specific TOC in each component file, or
    This is a single file and there is one master TOC that includes all sections and a section-specific TOC that includes only the individual section.
    In the first case, I think you would want two TOC styles set up, one that includes the chapter heads (if I understood how you said this worked) for the for the master, and you would include all docs in the book when you generate it, and a second style for the individual chapters, with the subheadings you want to include.
    In the second case, it would be similar, but instead of only one style to cover the section TOCS, I think you would need to create a unique set of pargraph styles for the headings in each section (they can all be the same format, based one section, just with unique names), and then make a TOC style for each section that includes only the styles from that section.
    OK,  wait a sec. I just reread what you said: "Another thing: when the numbers are "linked" and updating well, they  display indide a little box. Not a text box, but a kind of little frame  around the numbers. That frame makes it imposible to delete just one  number: when the TOC says that Section 6.1 is in page 135, for example,  you cannot delete just the 5, it deletes, not just the 3 numbers, but  also the doted tab."
    I think these are NOT normal TOCs created by using Layout > TOC (but you could replace them with ones that are, if you set up your styles properly and the text you want to include is appearing on the pages). Those little boxes you mention sound like cross-references, which should update automatically without any intervention at all. Unfortunately, cross-refs can be flakey, especially if they point to another document. I'd open the cross-refs panel and see if you need to recreate a bunch of links.

  • Error Message When Updating Table of Contents

    I am working in FrameMaker 8. I am updating a generated table of contents that was created by another person. When I update the TOC, the updating is completed successfully in the TOC, but I am getting the following book error message:
    I believe that this TOC was originally generated in the previous version of FrameMaker.
    How can I resolve this issue concerning print settings for color and color definitions?
    Brenda George
    Desk: (724) 720-8491
    [email protected]

    The console message is indicating that the colour settings are inconsistent between the various files in the books, perhaps they're set to different colour models or have different overprint settings - many reasons. The fastest way to fix it is to import the Color settings from the first file in the book to the rest of the files in the book.

  • InDesign CC crashing updating Table of Contents

    Keep getting the pictured error and InDesign crashing when I tick the "Make text anchor in source paragraph" to create an ePub compliant TOC.
    You want the logs too?

    This is a new feature in InDesign CC. It could be a bug. Does this happen in just one file, or in other files? What operating system?
    Most of us haven't had a chance to use this feature yet.

  • Table of Contents vanishes when trying to update or regenerate in CS6

    I'm working with InDesign CS6 on Windows 7 Pro 64-bit
    This is an old, legacy document. Today, I needed to remove two pages, so of course, I need to update my table of contents and index. I had no problems with the index - it regenerated just fine. The TOC is another matter. I clicked Layout > Update Table of Contents. I got the message stating that the contents was updated. However, what actually happened was the TOC text vanished! And, it actually is gone because I can see two empty paragraph markers where the TOC used to be. I've tried regenerating it instead of doing the update. Same result - it's gone.
    I'm still fairly new to InDesign, so I'm not sure what I can do to troubleshoot this. Any suggestions would be appreciated.

    Sounds like ID doesn't think there are any paragraphs with the style names you've selected for inclusion.
    But I'm not a fan of direct conversion of legacy files because these sorts of things, or worse, happen a lot. Try this: Remove minor corruption by exporting

  • CS6 Table of Contents Update Greyed out

    I have one long indesign cs6 document I'm using to create an ebook. Right now, it is one long story, and the Update Table of Contents option is grey, along with the option "Replace existing Table of Contents" in the create Table of Contents menu. My cursor is on the Table of Contents page, doesn't matter, still grey.
    Is this happening because I have one long document instead of having a different "story" for each chapter?
    I've tried:
    creating a new Table of Contents with different names
    renaming the book
    renewing indesign preferences
    Thanks in advance for any help you can offer.

    Thank you Peter for all your help.
    I read the answer somewhere, but can't remember where, so thank you to the person who had the correct answer, even though I can't remember who or where you are!
    Place the Table of Contents on a hidden layer. I now have the entire book file on one layer, and the TOC at the beginning of the long doc on a 2nd layer that is hidden, and everything is working perfectly. They are two separate "stories," because when the TOC is part of the main "story," the TOC prints regardless of what the articles panel says (what DOES that articles panel do, anyway? So far I've found it to be pretty ineffective).
    Uploaded a book to pubit last night, waiting to hear on errors, but I didn't have to touch the html... not yet at least.
    I will report back if there pubit finds errors.
    Thanks again!

  • Finished script: Use grep find/change to fill in a supplied table of contents

    This script is now complete, and has been the subject of most of my previous posts. Just in case anyone wanted to know what the finished script ended as, here it is.
    Thanks so much to all. A lot of really helpful folks on this board are very responsible for the success of this task. This script is to be one of hopefully many in the creation of our records. But it's a huge leap forward. Thanks again to everyone that helped.
    Cheers,
    ~Nate
    Task:
    Automatically find town names in listings, and fill in table of contents template on page 2 accordingly.
    Example of page 2 toc, initially:
    Example of a page of content. The town names are what need to be referenced on the TOC:
    Example of page 2 toc once script is finished:
    Because of the need to include the transaction dates on the TOC (comes as a provided, tagged-text file), a simple Indesign-generated TOC can't be used alone.
    This script uses an Indesign-generated TOC that's on a master page called "T-tocGen" ... It then uses grep search and replaces to grab the needed information, and insert it into the page 2 TOC.
    The script will update a generated TOC and then search for an instance of a page number, and town name. The generated toc lists all included towns in the following format:
    (line start)## tab townName(line end)
    In Grep, this would be (please note, extra \ for \d and \t ... javascript needs that for some reason):
    ^\\d+\\t(.*)$
    After the script gets the info it needs from a found instance of the above, it replaces that line with "---", to prevent that line from being picked up once again.
    The script with then place the needed page number in it's rightful place on page 2, replacing the XX.
    A while loop is used to repeat the above process until there are no longer any instances of "^\\d+\\t(.*)$" present.
    Not every town runs every issue, so once the script is done, it removes all remaining instance of "XX" on the page 2 TOC.
    FINAL CODE:
    TOC replace
    This script will use grep find/change methods to apply page numbers in
    tocGen to the XX's on page2TOC.
    // define the text frame of generated TOC
        var tocGenFrame  = document.masterSpreads.item("T-tocGen").pages.item(0).textFrames.item(0);
    // udpate generated TOC ... store contents in tocGenStuff
        var tocGenStuff = updateTOCGen();
    // set variable for while loop
    var okGo = "1";
    // while okGo isn't 0
    while(okGo.length!=0)
    // get town info from tocGen
    getCurrentTown();
    // replace XX's with tocGen info
    replaceTown();
    // grep find ... any remaining towns with page numbers in tocGen?
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "^\\d+\\t(.*)$";
    // set current value of okGo ... with any instances of above grep find in tocGen
    okGo = tocGenFrame.findGrep();   
    // grep find/change all leftover XXs in page2TOC
    app.findGrepPreferences = app.changeGrepPreferences = null;       
    app.findGrepPreferences.findWhat = "^XX\\t";
    app.changeGrepPreferences.changeTo = "\\t";
    app.activeDocument.changeGrep();  
    // clear grep prefs
    app.findGrepPreferences = app.changeGrepPreferences = null;
    //  functions                  //
    function getCurrentTown()
    // grep options   
    app.findChangeGrepOptions.includeLockedLayersForFind = true;
    app.findChangeGrepOptions.includeLockedStoriesForFind = true;
    app.findChangeGrepOptions.includeHiddenLayers = true;
    app.findChangeGrepOptions.includeMasterPages = true;
    app.findChangeGrepOptions.includeFootnotes = true;
    // grep find:  startLine anyDigits tab anyCharacters endLine
          app.findGrepPreferences = app.changeGrepPreferences = null;
          app.findGrepPreferences.findWhat = "^\\d+\\t(.*)$";
    // get grep find results      
    currentGen = tocGenFrame.findGrep();  
    // store grep results content into currentLine
    currentLine = currentGen[0].contents;
    // match to get array of grep found items
    currentMatch = currentGen[0].contents.match("^\\d+\\t(.*)$");
    // second found item is town name, store as currentTown
    currentTown = currentMatch[1];
    // change current line to --- now that data has been grabbed
    // this is because loop will continue as long as the above grep find yields a result
           app.findGrepPreferences.findWhat = "^\\d+\\t"+currentTown+"$";
                  app.changeGrepPreferences.changeTo = "---";
                tocGenFrame.changeGrep(); 
    function replaceTown()
    app.findChangeGrepOptions.includeLockedLayersForFind = true;
    app.findChangeGrepOptions.includeLockedStoriesForFind = true;
    app.findChangeGrepOptions.includeHiddenLayers = true;
    app.findChangeGrepOptions.includeMasterPages = true;
    app.findChangeGrepOptions.includeFootnotes = true;
    // find: XX currentTown .... replace with: currentLine
        app.findGrepPreferences = app.changeGrepPreferences = null;
        app.findGrepPreferences.findWhat = "^XX\\t"+currentTown+" \\(";
        app.changeGrepPreferences.changeTo = currentLine+" \(";
    app.activeDocument.changeGrep();   
    function updateTOCGen()
    //set vars ... toc text frame, toc master pag
        var tocGen  = document.masterSpreads.item("T-tocGen").pages.item(0).textFrames.item(0);
        var tocGenPage  = document.masterSpreads.item("T-tocGen").pages.item(0);
    //SELECT the text frame generatedTOC on the master TOC
        tocGen.select();
    //Update Table of Contents by script menu action:
        app.scriptMenuActions.itemByID(71442).invoke();
    //Deselect selection of text frame holding your TOC:
        app.select(null);
    //store contents of toc text frame in variable
        var tocGenText = tocGen.contents;
    //return contents of tocGen
        return tocGenText;

    Thanks for the reply.
    You are correct but the problem is there are three rows, One row is 100% black, the second is 60% black and the third is 40% black. I want to change the black to blue, the 60% black to an orange and the 40% black to a light shaded blue. In the find/change option you can select the tint you want to find and replace but yea.. does work on table cells.. oddly enough.

  • Microsoft Word-Table of Contents-Update Page Numbers

    I am having trouble updating my page numbers within the Table of Contents in a Microsoft Word document. On a Windows machine, I would click to the left of the table and then click F9. On an Apple, that adjusts the brightness of the screen or modifies the screen if I accompany the F9 with the Apple or Function button. Does anyone know how to update the page numbers without creating a new Table of Contents?
    Lisa

    In Mac OSX it is possible to change or create keyboard shortcuts for all applications as well as the system itself.
    Go to +System Preferences > Keyboard and Mouse > Keyboard shortcuts+
    Select the menu item for whatever application, in this case Dock, Exposé and Dashboard, click on the keyboard shortcut and change it to whatever you would like.
    It will then work the next time you launch the application. If it is a menu item the name of the shortcut must match the menu name exactly.

  • What is the code for updating a table of content?

    I'm looking online and not finding a command list or something helpful. I'm also on a government computer so a bunch of sites are blocked for security or something. I am making a script that does a few things and one needs to be updating the TOC but I cant find the command.
    I wish this software had something simular to a program called MAYA has. "echo all commands" in the script editor so anything you do shows all code being exicuted.

    Theoretically, if you are using Adobe's own ESTK to write your scripts, all commands can be found in the Help menu. Then again, searching in there is needlessly made difficult (i.e., you have to know exactly what you are searching for before you can find it). So (modest cough) ... Adobe InDesign CS6 (8.0) Object Model JS: Table of Contents
    The command you are looking for is not in the "Table of Content Suite" since that only describes the format of the contents. It is a Document method: Adobe InDesign CS6 (8.0) Object Model JS: Document -- look for createTOC (this stupid editor doesn't show it but the link already points to the correct place -- perhaps this editor was written by "We Also Brought You The ESTK").
    Searching through the thousands of pages is easier if you download the CHM version and use a good CHM viewer. Check out
    http://www.jongware.com/idjshelp.html

  • I can't get the page numbers in my table of contents to update when I update the book.

    I'm using Framemaker 11 and I have two TOCs in my book: one in English and one in French. Each TOC links to different documents in the same book. The reference page for each TOC is set and correctly displays the heading 1 and 2 I've told it to display, but the numbers do not update when the content in my document files changes to a different page. I've checked the conditional text settings in my document files; they are correct. When I update the book, I choose to update Numbering, All Cross-References, All Text Insets, OLE Links, Generate Table of Contents, Lists, and Indexes. What am I doing wrong? Thanks.

    I just tested this out and saw the same result as Rick - a book with child books ignores all generated files within the child books. This applies to adding content from them (e.g. their titles) to actually including them in the output. This applies to all versions of FM since v.9!
    However, there is a workaround for this. You need to use the hierarchical book structure in the parent book and create Folders for each book that you want to add. Then manually add the generated files (TOC, IX, List of..., etc.) and book to the respective folder. This is what it looks like for two child books in a parent book:
    Note that the child book generated files (TOC, IOR) show as just regular files at this point in the parent book. To get the page numbering to be continuous throughout the parent book, you will need to make a couple of passes. First set folder, files and books to have the Numbering continue from the previous (if you want all sequential page numbers). This will set the page numbers correctly except for what they were in the respective book TOCs. You will need to use the starting page number of the child TOC files in each folder (it shows in the Book status bar when click on the TOC file in the master/parent book).
    To set the individual book TOCs to be correct in the parent book, open the child book and set the TOC Numbering to start at the page stated in the parent book (status bar). Now update the child book to set the correct (parent book) page numbers in the child TOC. [This is a necessary manual step, as the page number assigned in the parent book is ignored when th child book is individually updated and FM uses 1 to start off the sequence in the child book.]  Repeat for each child book in the master/parent book.
    The final step is to Update the parent book and create the PDF. You should now have all of the files included in the PDF and the child TOCs should show the correct page numbers of the master book.
    This whole process of books within books seems a bit borked and one shouldn't have to be jumping through hoops to include child generated files. Please report this as a bug via: https://bugbase.adobe.com/index.cfm

  • How do I update only the page numbers of a table of contents in Indesign CS6?

    Hi there!
    Please help! I'm making a medical book with more then 1300 pages and about 40 different table of contents.
    I want to update only the page numbers on all the table of contents. But I only see the option to update the complete table of contents.
    I saw on other forums that this is a familiar and very old problem. Did Adobe already fixed this?

    hahaha thanks no I won't Using cross-references in the future! but sending the request anyway; nothing ventured, nothing gained!
    Thanks again!

  • Why can't I update a table of contents in Windows InDesign CS 5.5?

    I have clicked in a table of contents frame, but on my layout menu, "udpate table of contents" is grayed out.
    I have "moved" my table of contents from an InDesign doc I created weeks ago into a new doc. I can update it in the old doc, but when it's copied into the new doc, the update option is no longer available.
    Why can't I updated it once it's in another doc so I can use its TOC styles & layouts rather than having to redefine those all over again?
    Thanks!

    Loading the TOC style gave me the fonts I wanted, but not the dots & the page numbers that were in the doc from which I loaded the styles.  My TOC has no page numbers now, but I do like the font.
    Is there a trick to getting the page number display with the dots to show up?

  • Multiple tables of contents -- any updates?

    I've searched the Pages help topic and came here look to see if I could find any help. I'm writing my dissertation in Pages, and I need to have multiple tables of content: one for the chapters, headings, sub-headings, etc., one for a list of figures, and one for a list of tables.
    I found one thread on this topic that was already closed, and it looks like multiple tables of contents was not possible at that point. Are there any new updates or workarounds that would allow this feature?
    I'd hoped to complete my entire dissertation in Pages but alas, it looks like I'll have to export it to Word and struggle with learning to to TOCs in Word. Bleah.

    Karen,
    Sorry to disappoint but you aren't going to easily achieve what you want with the current version of Pages. Hopefully a newer version will do this. You might want to experiment with NeoOffice in the meantime. It's free and IMHO a less of a struggle than Word.
    In any event, concentrate on the content of your dissertation. When you have the text, the formatting will be a breeze no matter what applications you have at your disposal by then.
    Good luck!

  • Updating table contents more efficiently

    Dear forumers,
    I have a situation as elaborated below. Is there a more efficient way in updating table contents (itab D) more efficiently?
    loop at itab A.
      execute FM using fields from itab A.
      FM returns itab B.
      loop at itab B.
        populate itab C containing fields from itabs A and B.
      endloop.
    endloop.
    copy contents from itab D to itab D_temp.   " ***1
    clear itab D.
    loop at itab C.
    populate itab D containing fields from itabs C and D_temp.   " ***2
    endloop.
    Reason this codeline (***2) is implemented:
    The key fields in the initial itab D ***1 is different than the key fields in the end result of itab D ***2.
    ***1
    Key fields: AUFNR, OBKNR, WERKS, EQUNR, SERNR, MATNR
    ***2
    Key fields: DOCUMENTTYPE, DOCUMENTNUMBER, DOCUMENTVERSION, DOCUMENTPART, EQUNR, SERNR, MATNR
    Structure in itab C (key fields in ***2):
      equnr           TYPE viaufkst-equnr
      sernr           TYPE objk-sernr
      matnr           TYPE objk-matnr
      documenttype    TYPE zzdoc_data-documenttype
      documentnumber  TYPE zzdoc_data-documentnumber
      documentversion TYPE zzdoc_data-documentversion
      documentpart    TYPE zzdoc_data-documentpart
      description     TYPE zzdoc_data-description
    Structure in itab D:
      aufnr           TYPE viaufkst-aufnr
      equnr           TYPE viaufkst-equnr
      obknr           TYPE viaufkst-obknr
      qmnum           TYPE viaufkst-qmnum
      auart           TYPE viaufkst-auart
      werks           TYPE viaufkst-werks
      sernr           TYPE objk-sernr
      matnr           TYPE objk-matnr
      documenttype    TYPE zzdoc_data-documenttype
      documentnumber  TYPE zzdoc_data-documentnumber
      documentversion TYPE zzdoc_data-documentversion
      documentpart    TYPE zzdoc_data-documentpart
      description     TYPE zzdoc_data-description
    Many thanks for any inputs here at all.

    TRY THIS
    CLEAR li_ord_sln_tmp.
      li_ord_sln_tmp = i_ord_sln.
      SORT li_ord_sln_tmp BY equnr sernr matnr.
      DELETE ADJACENT DUPLICATES FROM li_ord_sln_tmp
        COMPARING equnr sernr matnr.
      CLEAR i_ord_sln.
      IF ( li_ord_sln_tmp[] IS NOT INITIAL AND
           i_docs[] IS NOT INITIAL ).
        SORT i_docs[] BY equnr sernr matnr.
      ENDIF.
    LOOP AT i_outgoing into w_outgoing.
        CALL FUNCTION 'ZZ_GET_ACTIVE_DMS'
          EXPORTING
            matnr      = w_outgoing-matnr
            werks      = w_outgoing-werks
            sernr      = w_outgoing-sernr
          TABLES
            i_doc_list = li_doclist
          EXCEPTIONS
            OTHERS     = 1.
        IF sy-subrc = 0.
          LOOP AT li_doclist INTO lw_doclist.
          CLEAR .
          MOVE-CORRESPONDING w_outgoing TO w_ord_sln.
          READ TABLE li_ord_sln_tmp
            INTO lw_ord_sln_tmp
            WITH KEY equnr = w_docs-equnr
                     sernr = w_docs-sernr
                     matnr = w_docs-matnr
            BINARY SEARCH.
          IF sy-subrc = 0.
            w_ord_sln-werks = w_docs-werks.
            w_ord_sln-aufnr = lw_ord_sln_tmp-aufnr.
            w_ord_sln-obknr = lw_ord_sln_tmp-obknr.
            w_ord_sln-qmnum = lw_ord_sln_tmp-qmnum.
            w_ord_sln-auart = lw_ord_sln_tmp-auart.
            APPEND w_ord_sln TO i_ord_sln.     " (i.e. this is itab D)
          ENDIF.  
        ENDIF.
      ENDLOOP.
    Regards
    Sajid
    Edited by: shaik sajid on Jul 20, 2009 8:52 AM

  • How to update alt layout tables of contents

    I'm having trouble with alternate layouts and tables of contents.
    After creating a 6 page document, I created an alternate layout. The content from the primary document was linked to the new layout.
    Some modifications were made to the alternate layout, which involved positioning some paragraph styles onto a different page.
    When the alternate layout was exported as an interactive PDF, the table of contents indicated it was hyperlinked because the mouse cursor would change to a hand when hovering over the respective table of contents entry, however when clicked, the PDF simply remained on the same page.
    As one potential solution, I created an additional table of contents and made certain to use the heading styles that were relevant to the alternate layout.
    When I would generate a new table of contents for the alternate layout, only the table of contents title appeared and no additional paragraph styles were included in the table of contents.
    Is there a special way that I need to get the table of contents to work properly using an alternate layout.
    I am a Lynda.com subscriber, so please feel free to refer me to a video that may answer my questions.
    I have been looking through the Adobe help, and if the answer to my question is there, I'm overlooking it because I'm overwhelmed with information (and possibly the stress of the print deadline which is later today).
    Any help would be greatly appreciated.
    Thank you,
    Buck

    I am doing my final project. It uses the publish-subscribe mechanism. Publishers publish the messages and subscribers can get the messages by subscribing the topic they am interested in. When the subscriber get the messages , I built a java swing application to simulate a public screen to display these messages. That means this swing application is not interactive to the user. The swing window is just for displaying the information.( Imagine in the airport hall, you can look at the flight informaiton on the public screen).
    What I want to achieve is that the swing window can automatically repeatedly display the messages. If the amount of messages is too much to display only one page, how it can be implemented to alternatively display multi-pages in one window? Scrollpanel is not useful for this aim. I think maybe I can use java.swing.timer. But this is the first time I try to use it. Some ideas?
    I hope this is clear now.

Maybe you are looking for