IDCS3  TOC want chapter numbers in book TOC

Hi - I'm brand new to this forum so please bear with me . . .
I'm working on a long manual. Each chapter has a TOC, which I've been able to format the way I want it (e.g., Overview . . . . 5-2).
In the TOC for the book, I can't figure out how to include the chapter number. I've read everything I can find about the subject but after spending hours I'm giving up. I've checked the Include Prefix when Number Pages check box for each chapter.
I've tried lots of things in the Between Entry and Number menu. There's no character symbol for chapter number and I've tried copying and pasting it in. That hasn't worked either.
I'm almost ready to resort to copying and pasting in the TOC from each chapter - there are 17. Yikes!
All advice will be greatly appreciated.
Thanks,
Sonya (fed up ID CS3 user in VA)

Hi Sonia,
You can directly use position() instead of storing in variables (Refer Template Builder for Word - TOC marker in foreach loop for an example).
But if you want to you variables for some other reasons, then use xsl context specific variables.
Instead of <?position()?>: <?xdoxslt:set_variable($_XDOCTX,’H1’, position())?> use
*<?variable@incontext:c1;position()?>*
and instead of <?XDOXSLT:GET_VARIABLE($_XDOCTX,’H1’)?>.DEPARTMENT LEVEL: .... use
*<?$c1?>.DEPARTMENT LEVEL: (formatted as Heading1).*
So on the whole it wold be similar to
<?for-each:group_name?>
<?variable@incontext:c1;position()?>
<?$c1?>.DEPARTMENT LEVEL:
Chapter contents
<?end for-each?>
Now update your TOC (right click -> update field).
Now you should be able to see the chapter numbers both in TOC and report body.
Hope this helps.
- Kavipriya

Similar Messages

  • Chapter Numbers in a table of contents

    Hi Experts,
    I'd like to add a table of contents (TOC) including chapter numbers in my template. For example:
    Table of Contents
    1. Title
    1.1 Sub-Title
    1.1.1 SubSub-Title
    To do so:
    •     I created a template with a table of contents.
    •     In the report body, I determine the chapter number using <?position()?>: <?xdoxslt:set_variable($_XDOCTX,’H1’, position())?>
    •     Once the chapter number determined, I write it in the title: <?XDOXSLT:GET_VARIABLE($_XDOCTX,’H1’)?>.DEPARTMENT LEVEL: <?SUBNODE_NM?> - STORE: <?STORE_UNIT_ID?> on which I applied the heading style required
    =>     When I launch the report, the chapter number appears correctly in the report body but not in the TOC. In the TOC, I only get the title chapter.
    Any idea how I could do this?
    Thank you in advance,
    Sonia.

    Hi Sonia,
    You can directly use position() instead of storing in variables (Refer Template Builder for Word - TOC marker in foreach loop for an example).
    But if you want to you variables for some other reasons, then use xsl context specific variables.
    Instead of <?position()?>: <?xdoxslt:set_variable($_XDOCTX,’H1’, position())?> use
    *<?variable@incontext:c1;position()?>*
    and instead of <?XDOXSLT:GET_VARIABLE($_XDOCTX,’H1’)?>.DEPARTMENT LEVEL: .... use
    *<?$c1?>.DEPARTMENT LEVEL: (formatted as Heading1).*
    So on the whole it wold be similar to
    <?for-each:group_name?>
    <?variable@incontext:c1;position()?>
    <?$c1?>.DEPARTMENT LEVEL:
    Chapter contents
    <?end for-each?>
    Now update your TOC (right click -> update field).
    Now you should be able to see the chapter numbers both in TOC and report body.
    Hope this helps.
    - Kavipriya

  • Matching Chapter Numbering in Table of Contents (TOC)

    I have applied the <$chapnum> and <n+> building blocks to the paragraph styles used in my TOC, but instead of displaying the correct chapter numbers, every chapter section starts with "1".
    Could someone please tell me what I need to do in order to match the TOC numbering with the book numbering?
    Thanks in advance,
    Douglas

    douglas131313 wrote:
    I have applied the <$chapnum> and <n+> building blocks to the paragraph styles used in my TOC, but instead of displaying the correct chapter numbers, every chapter section starts with "1".
    Could someone please tell me what I need to do in order to match the TOC numbering with the book numbering?
    Douglas,
    I assume that the chapter numbering works correct through all the chapters, and only the TOC numbering is wrong. Correct?
    In this case you shouldn't have an own (independent) numbering definition in your TOC paragraph styles, but READ the original numbering from the respective paragraphs/chapters. You do this by adding the <$paranum> variable to the TOC reference page, so the entry/entries there should read equal or similar to:
    <$paranum> (Tab) <$paratext> (Tab) <$pagenum>
    Define the tabulators for the TOC paragraph styles as if there was a numbering definition, and the number read from the chapters will appear correctly formatted in the TOC.
    Bernd

  • Chapter NUMBERS? How to include list styles in TOC?

    How does one include chapter numbers!?? I have used a list style with a paragraph style as headings for chapters and paragraphs (Example: 1. Introduction | 1.1. Company X), which I now want to include in the TOC. Using the specific heading in the TOC only includes the text, and not the entire list item (number followed by text). How do I accomplish this list item to be included? Is there a way to (only) tweak the TOC style of a template?

    http://discussions.apple.com/thread.jspa?threadID=2107212&tstart=0
    Yvan KOENIG (Vallauris, FRANCE dimanche 9 août 2009 14:00:22)

  • How to pick up chapter numbers in TOC headings?

    Each new chapter heading is in a one-row, two-column table. Column 1 contains only a large number (numbered style called ChapNum) against a shaded background, and column 2 (unshaded) contains the chapter title (Heading1 -- which is NOT numbered; only the style in column 1 contains numbering.)
    The only exceptions are the Preface chapter (a Heading1) and the TOC itself (which uses TOCTitle so it won't appear in the TOC). For both, the shaded column 1 uses a style called ChapNoNum.
    Page layout has sideheads; first page of each numbered chapter looks similar to this:
    |-----|--------------------------|
    |     |                          |
    | 1   | Heading1                 |
    |-----|--------------------------|
    |     | text text text text text |
    |     | text text text text text |
    |     | text text text text text |
    |     | text text text text text |
    I want the TOC to pick up the chapter numbers like so:
    |-----|--------------------------|
    |     |                          |
    |     | TABLE OF CONTENTS        |
    |-----|--------------------------|
    |     | Preface...............1  |
    |     | 1. Getting Started....3  |
    |     | 2. More Stuff.........5  |
    |     | 3. Troubleshooting....9  |
    But the TOC picks up only the Heading1s, which aren't numbered. How to include the ChapNum in front of the Heading1 in the TOC? (I've tried using graphic boxes on master pages instead of the table rows on the body page but haven't found the answer there.)
    Any help is most welcome.
    Gay (FM 9.0, non-structured)

    Gay Alson wrote:
    Each new chapter heading is in a one-row, two-column table. Column 1 contains only a large number (numbered style called ChapNum) against a shaded background, and column 2 (unshaded) contains the chapter title (Heading1 -- which is NOT numbered; only the style in column 1 contains numbering.)
    The only exceptions are the Preface chapter (a Heading1) and the TOC itself (which uses TOCTitle so it won't appear in the TOC). For both, the shaded column 1 uses a style called ChapNoNum.
    Page layout has sideheads; first page of each numbered chapter looks similar to this:
    |-----|--------------------------|
    |     |                          |
    | 1   | Heading1                 |
    |-----|--------------------------|
    |     | text text text text text |
    |     | text text text text text |
    |     | text text text text text |
    |     | text text text text text |
    I want the TOC to pick up the chapter numbers like so:
    |-----|--------------------------|
    |     |                          |
    |     | TABLE OF CONTENTS        |
    |-----|--------------------------|
    |     | Preface...............1  |
    |     | 1. Getting Started....3  |
    |     | 2. More Stuff.........5  |
    |     | 3. Troubleshooting....9  |
    But the TOC picks up only the Heading1s, which aren't numbered. How to include the ChapNum in front of the Heading1 in the TOC? (I've tried using graphic boxes on master pages instead of the table rows on the body page but haven't found the answer there.)
    Any help is most welcome.
    Gay (FM 9.0, non-structured)
    TOCs capture only specified paragraph formats. Your chapter numbers aren't specified in the TOC, so they're not captured. To capture both the number and the title paragraphs, you need to specify both formats in the TOC set-up. To make the number run into the title, you'll need to assign a run-in paragraph format to the number's entry in the TOC; this will cause the title to follow the number on the same line.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Building Book TOC in CS4-Problem with cross chapter TOC links in Acro pro

    QUESTION: How do I fix the CS4 or ACROBAT v9 Pro Extended problem to fix cross chapter TOC Hyperlinks in BOOKs.
    PROBLEM: When I build a CS4 BOOK TOC, the TOCs show up in the .indd. However when I .pdf the book, the links fail.
    I am an experienced Framemaker v7 Pro. In the last 2 weeks I have had success designing a 10 chapter book in CS4.
    This was very intuitive! Congratulations CS4 developers.
    Thanks CS4 developers and community.
    Mike VV

    HI there,
    I recreated the TOC and now the update works. I think perhaps I edited the previous TOC within the TOC rather than in the actual documents and perhaps that caused the update problem.
    So problem solved.
    Yael

  • Getting chapter numbers to show up in the TOC with the page numbers...

    First, thank you all very much for posting replies.  This forum is wonderful.
    I have a doc that needs to have the chapter numbers show up with the page numbers in the TOC.
    I insert the <$chapnum> and <$currentpagenum> in the footer, and I get 1-1 to show up.
    To include the 1-1 in the TOC, do I have to edit the Reference Page, or is there another way.
    Thank you SO much for your help!!!!!!!!!!!!!

    Thank you VERY much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Got it to work.  However, my TOC will not update with the new building blocks.
    Have played and played with it.  Any suggestions?
    Thank you!!!!!!!!!!!!!!!!

  • How can I create a general TOC using the titles of my books TOCS

    I have a document that includes the information of 6 different books, each one has its own TOC at the beginning of the chapter. The chapter title is only written as the title in the TOC. In the first book I want to create a general index that shows the 6 chapter names. I have tried to create a TOC, but it just appears blank. I think that's because I haven't written the titles, they were created in each chapter TOC by InDesign.  I really think there must be a way to create this general TOC but I just can't figure it out. Can you help me, please?

    Create every TOC with a title paragraph style which is not the same as the title styles in the text.
    Create a new document, assamble all documents in a book fille indb, create a new TOC which reads out the paragraph style of your TOC’s titles, include all book files in the definition of this TOC only.

  • Book - TOC Positioning

    Is this possible to have (DEFAULT)Table Of Contents (TOC) as the 2nd report in the book?
    i.e. presently my editor shows the below reports
    Report A
    Report B
    Report Z
    The PDF output of the book shows as below:
    TOC
    Report A
    Report B
    Report Z
    I want the output as below:
    Report A
    TOC
    Report B
    Report Z
    Is it possible? Please let me know the process. Thanks.

    Hello again
    It sounds as if you simply want to have a book that not only expands to show topics, but also presents a topic in the topic pane when it is clicked? And the topic that appears should have information about the book with links that also point to the same place the pages inside the book in the TOC point?
    If so, that's easy. Just create a topic and add the information. Then right-click the Book and choose Properties. Once you do that you should see a "Book with link" option. Once you enable that, you then choose the topic to link the Book to.
    Cheers... Rick

  • Book TOC wrong order?

    Greetings,
    I've just created an InDesign book with each of its chapters being an InDesign document. Each chapter needs its own TOC and there is a separate chapter for the Main TOC. All works fine but for some reason, an entry in the Main TOC is listed as being on page 1 but yet falls after 3 other entries, one on page 1 and two on page 2. See below:
    Table of contents
    Before you begin
    Getting started ......................................................................................... ........  1
    Read-ahead control codes ...............................................................................  2
    Read-ahead control for macros ........................................................................  2
    Scope ......................................................................................... ....................  1
    'Scope' is the first heading followed by 'Getting started' and so on. I've tried everything obvious but to no avail – can anyone shed any light? Bug?
    Thanks,
    Wes

    Thanks Peter, I'm afraid it's not that obvious. Have a look at the pics if you get chance and see what you think. Basically they are of the two pages the Main TOC is reading from and a snap of the Main TOC in the wrong order.
    SInce opening the thread, I've tried scrapping and creating the paragraph styles and TOC styles again and am getting exactly the same. The most bizarre part is that the Main TOC and the Chapter TOCs all work exactly how they should elsewhere!
    Obviously I can put it right manually but the problem is that I'm developing a template to be used company-wide so I need to get it right.

  • CS3 to CS4/CS5-- Book TOC crashes but not in chapters

    Hi, i'm having a conversion problem again,
    i'm working within a book (like always) and i have a main TOC, that regroups styles from all the documents, in CS3 i had no problem with it, but in CS4/CS5 it makes ID crash and i have no idea why. the thing that is even more strange is that every document inside the book has its own TOC (with more styles) included, and they do not crash my InDesign. It seems to be only the one that "reads" the styles across the book that do so.
    Anybody has an idea why?
    i get this error message :
    Thanks in advance!
    Message was edited by: korinsama

    edit  that needed a bump :
    since my TOC in for the book differs from the TOC in each chapter, i tried importing the one from the chapters (the one that technically doesn't crash)
    ... but once in the book TOC when i check 'include book documents" ... well... it crashed... so i'm guessing it's not the TOC styles that have a problem but the fact that i'm trying to apply it to the whole book ..... which... is really problematic...
    retested the original TOC, just unchecked the "include book documents" and it didn't crash..... i wish there was a detailed crash log so i could understand what's going on... it's kind of ridiculous that i can generate a single document TOC but not the exact same one applied to a book....
    soooo the good news is, i can generate each chapter individually and copy/paste into the main TOC, which is good since in earlier version of INDD, copy/pasting TOC made it crash.. and it doesn't anymore
    Message was edited by: korinsama

  • TOC not generated for FM9 book linked into RH8

    Hi all,
    I have a book, originally authored in FM7.2 and imported into FM9, that is linked into a RH8 WebHelp project. I can't get a TOC generated from the FM TOC within RH8 as advertised.
    The book has a TOC with two levels: chapterTOC and section1TOC, e.g.,
      1. My First Chapter...........1
          Introduction..................1
          More About That..........10
          And So On..................90
    The chapterTOC style uses a font that is both bolded and larger than the section1TOC style, and section1TOC is indented, as can be seen. So I'm expecting good things from RH8 re the TOC, because this is apparently all that is needed for RH8 to correctly parse the TOC.
    In RH8, I linked the book into the project, right-clicked on the book file, checked the "Convert FrameMaker [TOC]" checkbox, and gave "TOC1" as the name of the new associated TOC. Edited the properties of the WebHelp layout so that the TOC used was TOC1. Right-clicked on the book file in the Project Manager and chose "Generate". TOC1 was empty, so I click "Generate Primary Layout". When that's done, the TOC is still empty.
    Any suggestions?
    Thanks,
    -Adam

    An update: the TOC entries are recognized if the styles are formatted in Times New Roman. It turns out that if the font weight has the choices "Regular" and "Bold", then the TOC style is recognized. If the font has choices for weight of "Light", "SemiBold", or "Bolded", the TOC entry is ignored. Hence TOC styles that use Times New Roman work, and styles that use fonts like Elephant and Bookman Old Style do not.
    Good times.
    -Adam

  • How do I show page numbers in my TOC as A-1, A-2 etc for my one Appendix

    My manual has only one Appendix. I have my pages numbered as A-1, A-2, A-3 etc. (A for Appendix). I cannot figure out how to get A-1, A-2, A-3 etc. to show up in my table of contents without doing it manually. How do I set up my paragraph designer? The only way I can figure it out is by calling my title Appendix A. But since I won't have an appendix B, C etc., I want to name it simply Appendix. Any help would be appreciated

    Arnis,
    When I put A:Appendix <$chapnum> in the numbering dialog, my appendix title reads: Appendix 9 (Chapter 9 is the last chapter in my book).
    Can you please tell me where I set the Chapter number building block value to Alphabetics. All of the pages in my chapters have the format chapternumber-pagenumber. Thanks, Sally

  • RoboHelp 10 - Is it possible to change the TOC icon for just one "book" in the TOC. See the attached screen shot.

    In my current Help project, I have one set of topics that are specific to use of our product in one country.  I would like to change the TOC icon for the specific book without changing all of the "purple book" icons.
    Thanks.

    Whether you can do this depends on how much time you are willing to invest. The easy answer is 'no'.
    Having said that, it is possible to change the script to change the icon for a specific page. For this, you need to change the output files and you must create an exception to the regular mechanism. Best of all, you need to hard code the topic title/url to do this. This is a typical case of 'I offer consultancy for these kinds of things'. PM me if you want to know more.
    Kind regards,
    Willam

  • TOC - one chapter heading, multiple page headings

    Any one know how to automate categories with in a ToC?  I'm trying to get ...
    cars
    item pg1
    item pg2
    item pg3
    trucks
    item pg4
    item pg5
    item pg6
    item pg7 ...
    Right now each page has "Cars(or trunks) | item" in it.  I'm getting ...
    cars
    item pg1
    cars
    item pg2
    cars
    item pg3
    trucks
    item pg4
    trucks
    item pg5
    trucks
    item pg6
    trucks
    item pg7 ...

    Can you show us a couple of pages where these things appear? Use the camera icon on the Web page to embed a screen capture, like this:
    I suspect though, that the simple answer is that your cars and trucks tags appear on each page, and you've set the TOC to find their paragraph style. Is each category in an isolated section, or are they spread around and mixed together? If they're in sections, you can add a "category tag" on the first page of each section, just a frame (and set it to non-printing and make the type big and red so you see it using some unique paragraph style not used elsewhere) with the exact text you want to appear in the TOC for each category, then include that style in the TOC.

Maybe you are looking for

  • How to set default font in Finder?

    I am using OS X Yosemite.  I highlight the Macintosh HD (internal) drive in Finder, then right-click and select Show View Options. I then change the text size and click on Use as Defaults.  I was expecting this to apply the same text size setting to

  • Disable Bluetooth File Transfer - Windows 7

    How do I disable Bluetooth file transfer for Windows 7? I am planning to see if it can be done via Group Policy (custom adm or GPP) or by creating a power shell script. I read the existing questions here but its getting me nowhere. http://social.tech

  • Best codec for export?

    I've always worked on short videos, less than 15 minutes, and could always export as a .mov and burn to a DVD-R. Now I am working on something that will be 40+ minutes long and know it will not fit on a standard 4.7GB DVD without compression. How, an

  • Keyboard and Mouse unresponsive after waking up from sleep mode....

    This morning my trackpad and keyboard no longer work at all. I also had a mighty mouse hooked up via bluetooth and that no longer works (the bluetooth symbol doesn't even show up.) I tried hooking up an external keyboard (i don't have a usb mouse to

  • BlackBerry Desktop Software Uknown Error Reported

    This is what happens when i try to sync or configure sync settings on my BlackBerry 9700... It doesn't really tell me anything so I don't even know where to start looking!!! HELP ME!