Which paragraph style options break TOC generation?

Hi,
I've had a problem with generating tables of contents in InDesign CS3 and which persists in InDesign CS4.
After much experimenting I've learned that there's something in the paragraph style settings for the headings I want to include in a TOC that prevent them being included. The generated TOC in CS4 is empty. In CS3 it contains two empty paragraphs.
When I try to create a TOC on the same text, but no style applied to the headings it works.
So can anyone advise if there's any paragraph style settings (e.g. to do with line and page breaking) that will prevent that paragraph appearing in a TOC?
Any advice much appreciated!
Thanks,
Stu

Hi,
Correction to my previous message: I was wrong about the TOC generation working for unformatted headings, it doesn't work then either.
Would some InDesign expert out there be willing to receive a cut-down version of this document to see if they can successfully create a TOC for it? That's probably the easiest way to learn what I'm doing wrong.
Thanks,
Stu

Similar Messages

  • I cannot find the "Add Paragraph Style" option in the TOC inspector

    The Help Center under "Customize the table of contents" indicates that I can add a paragraph style to the TOC items list. However, when I follow the instructions on the help screen and click the "Add" pop-up menu, I can only add back one of the sections I have already removed. There is no option to add a paragraph style.

    For that choice to show, I believe it depends on which template (with which TOC type) you've selected. Some provide it and some don't.
    Create a new book and choose the 'Modern Type' template, then complete the same steps and you should be able to see what Help is referring to.

  • Get UID of Paragraph Style that is edited in Paragraph Style Options dialog

    Paragraph styles can be edited in the "Paragraph Style Options" selectable dialog. I am adding an addition style option panel to this dialog. How can I retrieve the UID of the paragraph style that is currently being displayed in this "Paragraph Style Options" dialog? Can this be obtained in the dialog controller of the additional style option panel (I need to obtain this UID to display and store additional style data)?

    Thanks Dirk
    One more thing, continuing on the previous theme. I got the paragraph or character style using something like this (thanks to you)
    InterfacePtr<IWidgetParent> iWidgetParent(this, IID_IWIDGETPARENT);
    if (!iWidgetParent) break;
    InterfacePtr<ISelectableDialogSwitcher> iSelectableDialog((ISelectableDialogSwitcher*)iWidgetParent->QueryParentFor(IID_ISELECTABLEDIALOGSWITCHER));
    if (!iSelectableDialog) break;
    InterfacePtr<IUIDData> iData(iSelectableDialog, IID_IUIDDATA);
    if(iData->GetItemUID()==0) break;
    InterfacePtr<ITextAttributes> textAttributes(iData->GetItemUID(),iData->GetItemDataBase(),IID_ITEXTATTRIBUTES);
    if(!textAttributes) break;
    However when I am trying to get text attributes for Find Change dialog, the IID_IUIDDATA == 0 and therefor returns nothing when trying to get attributes.
    Now if I try this code
    InterfacePtr<ITextAttributes> textAttributes((ITextAttributes*)iWidgetParent->QueryParentFor(IID_ISAVEDTEXTATTRIBUTES));
    then I get the attributes for the find text or change text even when I am using grep dialog.
    Theoretically I could get attributes from IFindChangeOptions interface, and I could figure if grep or text is enabled using GetGrepFlag function, but how do I know if I'm in find or change. It should be easy since they are different bosses like you mentioned previously, but I cant figure how to find that info in dialog.
    Thanks

  • [CS4/5] [JS] Which paragraph style does the panel context menu action work on?

    Hi all,
    I am trying to write something similar as http://forums.adobe.com/message/2866720#2866720 for the paragraph style context menu. I also would like to find out which paragraph style has been selected when the context menu opens. In the thread there is a "dirty" solution for this, the Edit and Apply options of the context menu also mention the name of the paragraph style. This works as long as the paragraph style is unique.
    In my situation the paragraph style names are not always unique, the same name is used in different paragraph style groups. I thought of an even "dirtier" solution that might work for this. The basic idea behind this is to create a new text, asfaik Indesign will automatically apply the active paragraph style to this text and it is easy to grab this style. The code for this is below:
    var myDoc = app.activeDocument;
    var myTextFrame = myDoc.textFrames.add();
    myTextFrame.contents = "grab the paraStyle";
    var myParaStyle = myTextFrame.paragraphs[0].appliedParagraphStyle;
    myTextFrame.remove();
    In my situation this approach seems to work fine but I am wondering if there is something against creating a new textframe and removing it later? And will the new text always get the current selected paragraph style?
    Best Regards,
    Bill

    I finetuned the snippet above a bit further. In some cases the context menu will be activated (right mouseclick) from a style that is not currently selected. In thoses cases the example above doesn't give the correct information. In order to avoid this I am now applying the paragraph style of the current context menu to an intermediate textframe. The snippet below is placed inside the EventHandler of my custom context menu item.
    var myDoc = app.activeDocument;
    //store current selection
    var mySelection = myDoc.selection;
    //create intermediate textframe
    var myTextFrame = myDoc.textFrames.add();
    myTextFrame.contents = "grab the paraStyle";
    myTextFrame.select();
    //apply the para style of the context menu to the intermediate text
    var contextMenu = app.menus.item("Text Style List Context Menu"); //or "$ID/RtMenuStyleListItem"
    var applyMenuItem = contextMenu.menuItems.itemByID(8488).associatedMenuAction; //Apply "para style for context menu"
    applyMenuItem.invoke();
    //grab the para style of the context menu
    var myParaStyle = myTextFrame.paragraphs[0].appliedParagraphStyle;
    //restore original selection and remove intermediate textframe
    myDoc.selection = mySelection;
    myTextFrame.remove();
    Again this snippet seems to work fine. I realize this approach will only work for para styles in a Document object and not for default para styles defined in the Application (suggestions to solve this?). A further refinement could be to first check if a para style name is unique, if that is the case the solution of Jongware (see http://forums.adobe.com/message/2861568#2861568) can be used and an intermediate textframe is not required.  
    I know this is a dirty solution but are there any issues with this approach?

  • I want to open "Paragraph Style Options" dialogue using Script(jsx)

    Hi,
    I have created a paragraph style using JSX.
    var myDocument = app.activeDocument;
    var myParagraphStyle = myDocument.paragraphStyles.item("myParagraphStyle");
    Now I want to edit my paragraph style using the "Paragraph Style Options" window. How can I open the window for myParagraphStyle using JSX?
    Is there any way to do it? I don't want to manually double click the name in the list to open it.

    @kapoor_aman27 – with a little trick we could select a distinct paragraph style in the Paragraphs Style panel.
    Add a new text frame to the document, add some contents, one character is sufficient. Format its contents with your paragraph style. Set the Paragraph Styles panel to visible. Select the text in the text frame with something like that: app.select(myTextFrame.texts[0]). Remove the text frame; the paragraph style stays selected in the panel.
    The next step would be to invoke the "Paragraph Style Options" panel. The id for the appropriate scriptMenuAction is 8481.
    try{
    app.scriptMenuActions.itemByID(8481).invoke();
    }catch(e){$.writeln(e.message)};
    But unfortunately this would throw an error. Something like this:
    (Error message in German:)
    "Mit der angeforderten Aktion wurde ein asynchrones, modales Dialogfeld geöffnet,
    für das eine Vorschau erstellt werden kann.
    Dies ist nicht mit der Skriptarchitektur kompatibel, daher wurde das Dialogfeld
    mit der Standardschaltfläche automatisch verworfen."
    (Roughly translated to English:)
    "An asynchronous, modal dialog box was opened by this action.
    A preview can be created with that dialog box.
    This is not compatible with the scripting architecture, therefore the dialog box
    with the standard button was automatically rejected."
    So I see no chance to do what you want.
    (Tested with inDesign CS5.5 on Mac OSX 10.6.8)
    Don't know, if that behavior has changed for more recent versions of inDesign…
    Uwe

  • (new to scripting) Only allow certain paragraph styles to break to next column/page

    Hi all,
    As stated, I'm very new to scripting. I've done a few small scripts to automate Photoshop tasks and such. I'm in the process of trying to learn Javascript as much as possible, with the hope of bringing about more efficiency for our small production department. It's a daunting task, but I'm trying my darnedest.
    One of the number one goals I have is the find a way to automate pagination of weekly transaction records. These records run between 32 to 48 pages normally, with each page having 5 columns. Creation of these pages is very systematic, so it would seem that this process should be able to be automated, but there are some challenges I'm having a hard time thinking about how to attack.
    One of the key tasks needing to be figured out is getting the records to go in with headings and subheadings always starting at the top of a page/column. Just about all the copy comes in with predetermined paragraph styles, so a script should easily be able to search for instances of each style. What needs to eb accomplished is only allowing the flow of copy to break on certain styles and not others ... (counties, towns, etc.)
    For example: if you have the following  ...
    Countyland <styled "county">
    Utopiatown <styled "town">
    46 Appletree Lane ...... $500,000  <styled "listing">
    Sold by: Some Guy   <styled "listing">
    Bought by: Other Guy  <styled "listing">
    Mortgage: This Bank  <styled "listing">
    Date: 12/14/11  <styled "listing">
    Dystopia Village <styled "town">
    47 Orangeplant Road ...... $400,000  <styled "listing">
    Sold by: Some Guy   <styled "listing">
    Bought by: Other Guy  <styled "listing">
    Mortgage: This Bank  <styled "listing">
    Date: 12/14/11  <styled "listing">
    If the two records above were to fall near the end of a column, the break to the next column should NOT occur anywhere except:
    - Before the county (causing the county to start at the top of the next column
    - Before the second town (Dystopia Village, forcing that town to the top of the next column)
    - After both (forcing whatever town/county is next to goto the top of the next column)
    So basically, I need to find a way PREVENT column breaks where they should not occur. Inserting column breaks is one thing (I know how to do that). Prevention is the issue though that confounds me.
    Does anyone have any thoughts of how to achieve such a thing? I know there are "non-breaking space" characters ... is there, or could there be, some kind of a "non-breaking return" character? Or would it be more feasible to test for the paragraph style at the bottoms of columns and insert column breaks in once it finds an appropriate match?
    Am I going about this all wrong?
    Again, any help or suggestions are more than welcome.
    Thanks much.
    ~Nate
    FYI .. using InDesign cs5.5

    I am now wondering about a possible solution. It would be one hell of a challenge for me to figure out how to code it, but I at least need to figure out the theory first, then I'll try to figure out how to code it.
    Again, the issue at hand is preventing column breaks for the "listing" style in the following example. Please note, the number of "listing" lines varies. If the following two entries (in a long list of similar entries) were to be near the end of a column, I'm trying to cause the flow of text to break only before a county style, or a town style (if it's not the first town in the county).  Basically, no breaks in the middle of listings.
    Countyland <styled "county">
    Utopiatown <styled "town">
    46 Appletree Lane ...... $500,000  <styled "listing">
    Sold by: Some Guy   <styled "listing">
    Bought by: Other Guy  <styled "listing">
    Mortgage: This Bank  <styled "listing">
    Date: 12/14/11  <styled "listing">
    Dystopia Village <styled "town">
    47 Orangeplant Road ...... $400,000  <styled "listing">
    Sold by: Some Guy   <styled "listing">
    Bought by: Other Guy  <styled "listing">
    Mortgage: This Bank  <styled "listing">
    Date: 12/14/11  <styled "listing">
    Naomi previously suggested messing with the "keep options" in the styles. This will solve the issue of preventing breaks before listing details start. But it won't help in keeping listing details from breaking, since the number of lines can vary.
    I'm now thinking ... might it be possible to have a script search all copy, looking for the last line of listings, and then apply a second listing style with a different keep option setting? The "normal listing" style would "keep next 1 line". The "last listing" style would not, therefore, allowing a break.
    Here's a map of what I'm thinking: (bear with me on the terrible syntax, this is just for illustrative purposes)
    listingNormal has keep with next 1 line applied
    listingBreak does not keep with next line
    if currentLineStyle == listingNormal
    AND
    style of next line != listingNormal {
    currentLineStyle = listingBreak
    Does this make sense? If so, does this sound feasible?
    Thanks any and all.
    ~Nate

  • InDesign CS6: How do I set Character Color to Unspecified/Undefined in the Paragraph Style Options?

    Is there a way to create a Paragraph Style that leaves the Character Color unspecified?  I have a bunch of existing text frames containing characters of various colors. When I apply the Paragraph Style, the text is changed to black. I want the text color to remain unchanged; that is, I want the Paragraph Style's Character Color attribute undefined.  How do I do this?
    All of the text frames in this case have their Character Style set to [None]. The text colors were applied individually, not via the use of Character Styles.

    I have a bunch of existing text frames containing characters of various colors. When I apply the Paragraph Style, the text is changed to black. I want the text color to remain unchanged
    If you apply the color to the characters via Character styles then the colors will be unchanged when the Paragraph style is applied. Like this:

  • Change case in paragraph style option

    I use different types of headng styles in my document. I use ALL CAPS for my first level heading and TITLE CASE for second level heading and SENTENCE FOR third level heading. It will be helpful if I have change case options in paragraph sytle
    Upper case
    Lowera case
    Title case
    Sentence case
    in paragaph style just like "BASIC CHARACTER FORMATS".
    Thanks
    Regards
    arul

    I think that's the wrong paradigm.
    Styles are for changing the look of text -- not the content. the way change case works (in every app I've ever seen) is by changing the encoding of the text.
    FWIW. I have a utility in my "Style Utilities" which can change case based on style: http://in-tools.com/products/plugins/style-utilities/
    Harbs

  • IBooks Author table of contents does recognize paragraph styles

    The video
    https://www.youtube.com/watch?v=n2p08-NmqfQ
    shows that using iBooks Author  I should be able to have text that is formatted with specific Paragraph Styles show automatically in the Table of Contents. But for me that does not work.  My version of ibooksAuthor is version 2.1.1 ( the latest) , under OS 10.9.1 (the latest) on an iMac.
    The video shows the Inspector for TOC as a separate window and shows explicitly, under Sections, the items Copyright, Dedication, Foreword, Section and Section Text. It also has two Paragraph styles listed, Heading 1 and Heading 2. 
    This set of TOC entries is  available for me with templates from Landscape with Portrait but NOT with templates of Portrait. The templates available for Portrait do not  list, in the TOC Inspector, Heading 1 or Heading 2.
    Furthermore, the Portrait templates do NOT allow me to add any Paragraph style to the list (the control for adding Paragraph Styles to the list is grayed out), although the Landscape templates DO allow me to add any Paragraph style.
    However, when, with a Landscape template (e.g. Basic) I format text as one of the paragraph styles Header 1, Header 2, Chapter, Section, it does NOT automatically show up in the TOC, though if I add a new section it does automatically show up. The TOC only lists Chapter and Section if these have been added from the menu bar.
    When I use a Portrait template  (e.g. Basic or any other) and format text as one of the Paragraph Styles Chapter or Section that  text does not show up in the TOC. And the control for adding Paragraph Styles to the list is grayed out: I cannot add Header 1 or Header 2. The TOC only lists Chapter and Section if these have been added from the menu bar.
    No matter what template I use, if I assign a paragraph style to some text, it does not show up in the TOC. And with Portrait templates, which is what I want to use,  I cannot adde any paragraph styles to the TOC Inspector in Portrait templates.

    The iBA Help has info on: table of contents
    Which includes:
    Each book comes with a table of contents that is updated automatically. You can view the table of contents at any time by selecting Table of Contents in the sidebar. The table of contents includes a default set of items, but you can change which items appear. A table of contents can include:
    Chapter and section titles: All chapter and section titles are included in the table of contents by default. If you remove a section from the table of contents, all other sections that use the same layout are removed as well.
    Text that uses specified paragraph styles: By default, the table of contents includes all paragraphs in the book that use the Heading 1 and Heading 2 style, but you can include whichever styles you like. Paragraph styles appear in the table of contents only in portrait orientation. See Format text using styles.
    The way the table of contents looks depends on the current page orientation. In landscape orientation (shown below), each chapter has its own contents page, with navigation buttons at the bottom. In portrait orientation, the entire book’s table of contents is visible as an expandable list.
    Add or remove items in the table of contents
    If the Document inspector isn’t open, click Inspector in the toolbar and click the Document Inspector button.
    Click the TOC button.
    Do either or both of the following:
    To add an item: Click the Add pop-up menu , choose Add Paragraph Style, and choose an option from the submenu.
    To remove an item: Select the item you want to remove and click the Delete button .

  • Trouble with CS5 InDesign Paragraph Styles

    I am creating a new template. I want one style to be "TOC Title", and another to be "TOC Level 1". All my concerns center around the Paragraph Style Options window (Type > Paragraph Styles > Create New Style >(double-click style to modify)  )
    1. No matter what I do, if I stipulate that "TOC Level 1" has leading (Tabs option, enter a "." or period in the Leader box), then InDesign does this for ALL my paragraph styles.
    For the record, under the General option, my "Based On" box is set to "[No Paragraph Style]" for both paragraph styles.
    So either I have to live with the TOC title having leading on it, or the TOC Level 1 having none, and in either case having to do something manually to the TOC everytime I use the template.
    How can I fix this so that TOC Title has no Leader and TOC Level 1 has a Leader of "." ?
    2. How can I set my TOC Title paragraph style so that it centers on the page?
    Edit: Two days later and no reply - I would have gladly supplied more information if I did not make the issue clear enough, and I would have even appreciated a simple "Sorry, I don't know." Since it is highly improbable that nobody out there knows ANYTHING about Paragraph Style tabs in Adobe CS5 InDesign, I must conclude that my issue is simply not "in" enough to be considered worthy of attention from the unnamed scores of elitists which must run this forum.

    I think the only way I'm going to be able to understand the problem is to see a sample file. Please make a sample, even if it has nothing more than your style definitions that are failing, and post a link to it here.

  • IDCS3 Getting the "next paragraph style" to work

    Hi there Adobe Forum.
    If you make a paragraph style there is an option that allows you to choose which paragraph style will follow the current one. But I can't seem to get it to work. If I just select one paragraph in my document and make it have a paragraph style that has got a "next style" option in it, the next paragraph does not change.
    I tried to select all the paragraph and do the same thing, but then they all just got that paragraph style, no next.
    How do you do to make this work? It would be really smart to just select the first paragraph of a text and then choose "ingress paragraph style", which is followed by "first paragraph", which is followed by "normal text". And then be done with it.
    Any clues?

    Select them all then in right click the first paragraph style in the
    paragraph styles panel. Select apply style and next style.
    Bob

  • Where are the paragraph style tools in Indesign CC2014?

    Hi! I've just started using Id through Creative Cloud on a new computer (have been using CC CS6 for two years), and the installer gave me CC2014 rather than CS6. So this is a question only about CC2014.
    Where has the paragraph styles window gone? Specifically, how can I edit, create and organise paragraph styles, and how can I get a window up on the main screen with all the styles laid out? All these things were easy to find in CS6, but I can't track them down in CC2014. The only thing I get (and that with a bit of customization). is a drop-down menu in the main toolbar, which allows me to choose from existing options on an existing document.
    There is no Paragraph Styles option under Windows>Styles.
    There is no Paragraph Styles option under Type.
    The only Paragraph window which appears is designed for editing text as you go along, not for applying styles.
    The Help options all point me back to the entry for CS6, and tell me to go to Type>Paragraph Styles (which doesn't exist).
    I can't get a window up on the main screen to apply styles instantly from a list. I only get that dropdown menu, which has no further options.
    Can anyone either point me to some up-to-date guidelines or explain where all the paragraph options have gone and how I can use them? Alternatively, can I revert to CS6? This was easy and intuitive before, and now it's neither...
    Thanks!

    Yes, that did it. All the old menu options have reappeared. I don't know why they were hidden in the first place - these were things I never needed to set up on either of my previous computers.
    Thank you very much!

  • Add colour background to paragraph styles menus

    I find the ability to colour menus on Indesign CS4 really useful - it may have been on previous versions, but I have just discovered it. But what I would really like is the ability to colour paragraph styles. I work on a couple of magazines and have 30+ paragraph styles per magazine. The list of styles in text form is good, but if I could colour code them it would be even better, since I could highlight different sections of the magazine by colour and find them faster.
    If this could be done, presumably it would be from the Paragraph Styles Options box.
    Of course, it may already be possible and I just haven't found out how, in which case I'm sure someone will let me know.

    Hi, Loic!
    Why not?
    Make a new paragraph style in the UI with your custom bullet and test it yourself in the ESTK:
    _paraStyle.bulletChar.properties.toSource();
    that will give you (all r/w):
    characterValue:
    bulletsFont:
    bulletsFontStyle:
    _paraStyle.bulletChar.characterType //(r/w)
    that will give you alternatively:
    BulletCharacterType.UNICODE_ONLY
    BulletCharacterType.UNICODE_WITH_FONT
    BulletCharacterType.GLYPH_WITH_FONT
    Uwe

  • Suppress highlighting for parent paragraph style

    When one paragraph style is based on another paragrash style, and you click inside the child style with the Type tool, both the parent and child styles are highlighted in the Paragraph Styles panel. This makes it confusing as to which paragraph style is actually applied to that paragraph. Is there a way to change this display so that only the style applied to the active paragraph is highlighted?

    What version of ID and OS X?
    You might want to file a bug: Adobe - Feature Request/Bug Report Form

  • Using the number paragraph style.

    Hi Guys
    Just wondered if there is a way when applying the numbering within the paragraph styles to choose a format that does not put a full stop after the number
    i.e current the number would read
    1.  Say hello
    2.  Say goodbye
    3.  Hello again
    I would just like to have
    1  Say hello
    2  Say goodbye
    3  Hello again
    Thanks for your thoughts
    Steve

    Open paragraph style options dialog.
    Choose Bullets and Numbering category.
    Assumes list type is "Numbers".
    Within "Numbering Style",
    in the field labeled "Number:"
    remove the full stop character.
    original value: "^#.^t"
    modified value: "^#^t"
    Dirk

Maybe you are looking for