Nested styles within TOC - a newbie

Hi, I wonder if someone can help with a TOC query. It will involve nested character styles which I've not really got my head around
Currently there are two paragraph styles in the book to appear in the TOC in their own styles (so four paragraph styles in total - Chapter Number, Chapter Name, Chapter Number TOC and Chapter Name TOC).
They currently generate in their simplest form in the TOC as:
Chapter 1
An introduction to your new home ................8
I simply want the chapter name to appear on the same line.
Chapter 1 An introduction to your new home ................8
Thanks for any help anyone.

Peter Spier wrote:
Peter G,
I don't do XML, but I think the answer is basically the same as initially outlined. If it's one paragraph with some sort of magic line break character, that character is going to be carried into the TOC and create a line break there as well, and if it's two paragraphs sepatated by a magic separator, it's going to remain two paragraphs. Break characters don't just disappear on their because we decide we don't want to see them -- they have to be deleted, and styles cannot add or remove text, only change the formatting.
The  neat thing about the No Break style (which never occurred to me before this morning), is precisly that it doesn't depend on any break characters to work, only the supposition that the second part of the paragraph will be too long to fit unbroken on the same line as the first part, and that it will fit on a new line. ID simply breaks the text at that point because it has no better choice. This is not, unfortunately, guaranteed to work for all paragraphs as it depends on column widths and text length to work in combination to force the break.
The No Break approach is a good solution if the TOC text frame and paragraph properties can be made to wrap at the allowed break position.
I was trying to find a counterpart to FrameMaker's run-in paragraph feature, but as you verified, it's not possible. FYI, here's how it looks in FM:
The source document uses ChapNum paragraph format (aka "ID paragraph style" for "Chapter number 1:" which is all in the autonumber part of the paragraph. The ChapTitl paragraph format is used for the "Chapter title" text.
As in ID, the two paragraph formats/styles are designated to be extracted by the TOC process. FM's TOCs are always generated as independent files. In the TOC document, ChapNum format/style becomes ChapNumTOC, and ChapTitle format/style becomes ChapTitleTOC. The *TOC styles can be styled differently from their source paragraphs. So, ChapNumTOC is given the run-in property which allows the next paragraph in the document - here it's the ChapTitlTOC paragraph with "Chapter Title" text - to follow it on the same line. However, you can see the green pilcrow at the end of the ChapNumTOC paragraph, which identifies it as a true paragraph, that happens to lack the property that starts it on a new line. Once the TOC's formatted properly, every subsequent TOC process is completely "hands off," i.e., no manual touch up needed, nothing to forget. This is why I keep submitting an enhancement request for this ability, and also encourage others.
Regards,
Peter
Peter Gold
KnowHow ProServices

Similar Messages

  • Mapping XML tags to paragraph styles that contain nested styles

    I am importing XML into InDesign (CS5.5) and the tag mapping to styles is working fine until I get to a paragraph style that contains a nested style.
    I have a sentence that starts with a number:
    1the dog runs fast.
    In InDesing properly styled looks like this:
         1  The dog runs fast.
    (tab)1(tab)The dog runs fast.
    The number is styled with a character style (Number) and the whole sentence is styled with a paragraph style (Sentence). In order to get the tabs in between the number, I have a nested style within the paragraph style (Sentence). This triggers the tabs when it hits the character style (Number) like this:
    Number up to 2 Tab Characters
    In XML, it looks like this
    <sentencetag><numbertag>1</numbertag>The dog runs fast.</sentencetag>
    Sentencetag is mapped to Sentence paragrph style and Numbertag is mapped to Number character style, but the nested style for the tabs are not displaying. I just get this in IND.
    1the dog runs fast.
    Everything works beautifully until I hit the nested styles, which I do need to get to work somehow. Any help would be much appreciated.
    Thanks in advance!

    It sounds like your tab characters are actually disappearing from content in the XML. Jeff was responding to the fact that they need to be there, and you state that you originally had them in your document, but they are not showing up once imported through the XML.
    The tabs may be disappearing in the XML document due to the "TAB" character in your text editor not being a tab, or at least not properly-formed XML TAB equivalent, OR because you are not "importing whitespace elements" when you import your XML.
    Importing whitespace elements can wreak havoc on other things in your XML structure and styled layout within the Indesign document, so I would put the XML quivalent of TAB everywhere a tab should be in your XML, and make sure NOT to import whitespace (when importing XML using "Merge Content", select not to import whitespace items from the import options).
    I believe the XML friendly character code for a TAB character is "&#9;" or "&#09;" but have not tested this. Don't include quotes when adding the character code, just the ampersand, semicolon, and everything in-between.
    Also, sounds like your tags are mapping ok for you, so your XML should look something like:
    <sentencetag>&#9;<numbertag>1</numbertag>&#9;The dog runs fast</sentencetag>.
    It should't matter where you put the TAB character equivalent in relation to your nested tag.

  • Find/Change problems within a nested style?

    I have a problem with Find/Change (in both CS4 and CS5) not recognizing text within its “find” parameters when text that fits those parameters is part of a nested style. I want to find any instance of italic in the text, regardless of what paragraph or character style it is, but F/C only intermittently finds italics, both within and without that text existing in a nested style. Has anyone come across this issue?
    There is NOTHING different about the text that is recognized by F/C–or not recognized–that shows up in any of the panels or palettes. There are no font conflicts. I’ve replaced prefs and saved data files. If I go into the character palette and change the italic portion of the nested style to “italic” character style (it shows up in character palette as [none], even though it has a nested style), then F/C finds it for sure; but if I don’t do that, then F/C will sometimes find it, and sometimes not, and sometimes in one instance and not in another! There is no hidden formatting that shows up in story editor. I remade another nested para style with the same formatting but with varying results! Help… I’ve tried everything.

    I have a problem with Find/Change (in both CS4 and CS5) not recognizing text within its “find” parameters when text that fits those parameters is part of a nested style. I want to find any instance of italic in the text, regardless of what paragraph or character style it is, but F/C only intermittently finds italics, both within and without that text existing in a nested style. Has anyone come across this issue?
    There is NOTHING different about the text that is recognized by F/C–or not recognized–that shows up in any of the panels or palettes. There are no font conflicts. I’ve replaced prefs and saved data files. If I go into the character palette and change the italic portion of the nested style to “italic” character style (it shows up in character palette as [none], even though it has a nested style), then F/C finds it for sure; but if I don’t do that, then F/C will sometimes find it, and sometimes not, and sometimes in one instance and not in another! There is no hidden formatting that shows up in story editor. I remade another nested para style with the same formatting but with varying results! Help… I’ve tried everything.

  • Pages Tables Doesn't recognize styles for TOC within table.

    It seems to me that the answer is to either tables to get the info OUT of the table (i.e. make several large tables into smaller ones and then pull the titles out of the table and change style), or get Pages to recognize style within table.  Any ideas how to do either?! Thanksx

    Only text in the Text Layer of a Word Processing Template is processed for TOC entries. No amount of manipulating the tables will change this basic behavior.
    Jerry

  • Multiple paragraph styles within one cell?

    Maybe I'm missing something real simple but I'm having a bit of an issue with styles.  What I'm trying to do is have the name of a tool in one paragraph style and the description (separated from the name by "-") in another paragraph style - all within the same cell of a table.  Instead, when I try to change styles it changes all text within the cell.  Even if I go back and highlight the tool name and change it to a different style than the description it changes all text including what is not highlighted.  If anyone has a solution I would greatly appreciate it!

    Thanks, Dave!  Nested styles works perfectly.  I figured the solution would've been something simple like this.

  • How do I create a table of contents with a nested style paragraph?

    I'm having difficulty figuring out how to generate my Table of Contents with a nested style. In this screen shot, "SPECIAL EVENTS" is considered level one and the pink circled "Fittest Firm Challenge" is level 2. Because it is a nested style, it is picking up the entire paragraph. I don't want to put in a paragraph break because that would add too much space in the magazine since there are a lot of other listings like this. I've tried reading through other people's discussions but I'm totally lost with the explanations. Is there a simple workaround or solution to this?

    apricotanna wrote:
    I'm having difficulty figuring out how to generate my Table of Contents with a nested style. In this screen shot, "SPECIAL EVENTS" is considered level one and the pink circled "Fittest Firm Challenge" is level 2. Because it is a nested style, it is picking up the entire paragraph. I don't want to put in a paragraph break because that would add too much space in the magazine since there are a lot of other listings like this. I've tried reading through other people's discussions but I'm totally lost with the explanations. Is there a simple workaround or solution to this?
    You're asking InDesign to do something it's not designed to do, namely, to treat a nested-style section of a paragraph as an independent paragraph. That's called a "run-in paragraph" in Adobe FrameMaker, and it's been a beloved feature there since FrameMaker was introduced in '89, about ten years before InDesign.
    You can make a formal feature enhancement request here: Wishform Many InDesign features have come into being from user requests, so lend your voice, and be patient. Explain why you think a run-in paragraph feature would be useful.
    Others have asked about this, and there are a number of workarounds that may or may not be suitable for you. Let's hope that some of the more-intense forum folks can help you with a useful search term for this forum, so that you can review what's been suggested and tried in the past, and what results you can expect.
    In the meantime, you might consider inserting the second-level heading in an inline anchored text frame in the paragraph. It will be an independent paragraph but you can adjust appear on the same line as following paragraph. Then you can extract it for the TOC.
    Here's an example:
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Using nested styles to break blocks of text into different pages

    Hello everyone,
    I'm treating data collected through a Google Docs form and I've already set it up so that the questions appear on the left and are followed by the respective answers sequentially so that I have a simple way to copy paste the whole information to Indesign. Then I'm going to use nested styles to define individual styles for the questions and answers.
    What I can't do, however... and I'm not even sure if it's possible, is how to tell Indesign to break text that is laid out sequentially into different lines or to break blocks of text so that they start in the beggining of the next page without having to resize the text frames by hand.
    As a visual example this is what the data I've exported out of excel looks like:
    Question 1 (tab) Answer A1 (line break)
    Question 2 (tab) Answer A2 (line break)
    Question 3 (tab) Answer A3 (line break)
    Question 1 (tab) Answer B1 (line break)
    Question 2 (tab) Answer B2 (line break)
    Question 3 (tab) Answer B3 (line break)
    (and so on in groups of 3 questions)
    And I want to turn it into:
    Question 1 (turn the tabs into line breaks)
    Answer A1
    Question 2
    Answer A2
    Question 3
    Answer A3
    (and then start at the beggining of a new page)
    Question 1
    Answer B1
    Question 2
    Answer B2
    Question 3
    Answer B3
    I can't define the size of the text frames so that the next group of questions+answers starts at the beggining of a new page because some of the answers are multi-line fields and thus the number of lines of the answers are variable and they can come short of the text frame edge or pass it.
    Can anyone share some insight of how to do this (or if it is at all possible)?
    Thank you very much!
    MACC

    Thank you very much for your input.
    I'm trying to automate this process as much as possible because I don't want to have to crunch the data manually myself later on, instead just teach someone else how to do it.
    The first search and replace action seems basic enough but regarding the second one I would have to manually assign that paragraph style to the line where the data would break because one can only assign character styles in nested styles, right?
    Also I've heard that ID CS5 automatically creates new pages based on a template when you paste information inside the first page, is that so? That would be great because that way the person wouldn't have to manually create pages and link the contents throughout the document but instead simply open my template and paste the information within the first master page. That's not possible with CS4, is it?
    Thank you very much!

  • Inserting paragraph rules into a nested style.

    Is it possible to create a style which includes a paragraph rule which can be used in a nested style. Character styles do not seem to allow rules, and nested styles seem to use character styles only when they are being built.
    The nested style is removing the paragraph rule at the mo and im struggling to see how to make it work.
    Using InDesign 5.5

    OK.
    The example has been built in InDesign 5.5. We are building an excel data sheet which will be data merged. As i need it to all follow the same style I have given all the elements within the example a style. The blue rule can't be done as a character style so ive had to do it as a paragraph style. When i open up the nested styles pallette to set up how I want it to behave I cant include the paragraph rule. (indesign wont allow me) The rest is working fine as they are character styles.
    Basicly what im trying to do is reproduce the style in the example with an image on the left, Title in blue bar at the top and the part number, description and price.
    I figured a nested style would be the way forward but I cant get the blue bar (Paragraph Rule to display from the nested style)
    I should point out that I rarely need to use nested styles so im sort of bashing about a bit to figure it out.
    Thanks

  • Disapearing nested animation within a IK armature.

    Hello,
    I’m having problems with disappearing animation from a nested symbol within an IK armature. I’m using a character made up of graphic symbols, and an IK bone tool armature to animate it. All facial assets are within the head symbol, which is all fine and dandy. I’ve animated lip sync and facial expressions and have used the ‘properties box’ to sync the animation from the head to the main armatures time line though looping/ playing a single frame etc. (It’s been annoying because each pose requires you to set up the properties box again, which is a really fiddly process, especially when you have a lot of poses!)
    Everything works fine- until I close the project and re open it! All of my synced animation from the head symbol has reverted back to the default ‘Loop- frame 1’. All of my animation is still within the symbol and working- But it wont show on the main timeline from the armature because every pose has reverted back to ‘Loop- frame 1’. This requires me to go through each pose- adjust the property box so it syncs up with the nested symbol again- EVERY time I open my files. This is really a bad workflow and I can’t keep doing it. I’ve saved different versions of the same file and it happens everytime? I’m not sure if it’s a bug with the IK timeline or if there is a way around it? If anyone has any clues or suggestions or knows a way around this- I’d be so grateful!
    I’m using CS5 by the way.
    Thanks!
    ~Bridget

    Wow, ok- I think I've just found the answer-
    http://layersmagazine.com/flash-cs4-motion-tweening.html
    David Stiller comments- "Unfortunately, you can’t use the nested graphic symbol trick in IK either.  IK armatures require (actually, *are*) a special kind of timeline layer, just like new-style motion tweens.  They operate in a different mode from that used with classic and shape tweens, and in this case, it means the same drawback occurs.
    Fortunately, the timeline supports classic tweens, shape tweens, motion tweens, and armatures all at once, so you can mix-and-match to best suit your needs.  Put your character’s arms, legs, and torso in one layer (an armature), then put the head in a series of classic tweens in a separate layer.  That way, you can bone up the limbs to take advantage of IK benefits, while maintaining the nested graphic symbol trick for mouth phonemes."
    So to fix this its probably best to not connect the head to the body armature- that way you can still get all the joys of nested animation and lip sync without it vanishing. That's going to be annoying for things like the hands or even if you wanted to swap symbols though.
    If anyone else has any other ideas though I'd still love to hear them!

  • In Pages (5.5.1) can I create multiple Paragraph Styles within one paragraph?

    In Pages (5.5.1) can I create multiple Paragraph Styles within one paragraph. 
    I need to make a table of contents for my Mater's Thesis and want to use the automatic table of contents feature.  I want the first sentence of a paragraph to have a different paragraph setting than the rest of the paragraph.  Is this possible?
    Thanks!

    Nice of you to be doing this for your Mother's Thesis.
    There are several issues here:
    1. A Paragraph Style is what it says, the style for the paragraph
    2. You can format text within a paragraph by applying a Character Style
    3. Pages 5.5.1 lets you apply formatting to overall text for the T.O.C. but not parts of it and you can not retain that formatting as a Paragraph style
    So in answer to your question, no.
    You will need to create the T.O.C. manually and unfortunately as Pages 5.5.1 can't create bookmarks (just one of over 100 missing features) you will be unable to link the T.O.C. to the referred pages in the list.
    Peter
    Apple's marketing slogan:
    Pages 5.5.1 - Can't Do That!

  • Finding "End Nested Style Here" option

    Hi,
    How to find and replace the "End Nested Style Here" marker through InDesign CS3-JS.
    Thanks,
    P. Ramkumar

    If you use findText, you can find it using ^h
    In findGrep it is ~h
    Dave

  • Creating Styles.. and then nesting styles

    Seems simple enough:
    tell application "Adobe InDesign CS5.5"
    tell active document
      set myCharacterStyle to make character style with properties {name:"Year", size:26.0, fill color:"Paper", stroke color:"Black", stroke weight:0.75, font:"Helvetica", font style:"Black"}
      set myCharacterStyle to make character style with properties {name:"Years", size:18.0, fill color:"Black", stroke color:nothing, stroke weight:nothing, horizontal scale:80.0, vertical scale:80.0, font:"Helvetica", font style:"Black"}
      set myParagraphStyle to make paragraph style with properties {name:"Year"}
      set nested styles of myParagraphStyle to {{applied character style:"Year", repetition:1, inclusive:false, delimiter:any word}, {applied character style:"Years", repetition:2, inclusive:true, delimiter:any word}}
    end tell
    end tell
    The font and the point size do not come through when the style is created. The nested styles also do not come through.
    I tried applied font:"Helvetica" to get 'font family not available'. Also, font:font "Helvetica"...
    What I get right now I is no font defined or size. The rest works.
    So what am I doing wrong here?

    Hi lithodora,
    as Mary Posner wrote a character style doesn't have the property 'font', but 'applied font' and 'font style'.
    "... specified as either a font object or the name of font family."
    just look it up in the dictionary ...
    Try always to work with references.
    tell application "Adobe InDesign CS5.5"
        --you've got to set myHelvetica to your needs!
        set myHelveticas to (font family of every font whose name contains "Helvetica") --will return the helvetica font familiy names
        set myHelvetica to item 1 of myHelveticas --just randomly pick one for my example, hoping it's got a 'black' style ;-) ...
        tell active document
            set myCharacterStyle01 to make character style with properties {name:"test", size:26.0, fill color:"Paper", stroke color:"Black", stroke weight:0.75, applied font:myHelvetica, font style:"Black"}
            set myCharacterStyle02 to make character style with properties {name:"tests", size:18.0, fill color:"Black", stroke color:nothing, stroke weight:nothing, horizontal scale:80.0, vertical scale:80.0, applied font:myHelvetica, font style:"Black"}
            set myParagraphStyle to make paragraph style with properties {name:"nextTest"}
            tell myParagraphStyle
                make new nested style with properties {applied character style:myCharacterStyle01, repetition:1, inclusive:false, delimiter:any word}
                make new nested style with properties {applied character style:myCharacterStyle02, repetition:2, inclusive:true, delimiter:any word}
            end tell
        end tell
    end tell

  • Can you edit an existing nested style in CS5.5?

    In a previous InDesign CS5.5 document, I created a paragraph style containing a nested style. The nested style applied a bold font to the first sentence only, with the rest of the paragraph appearing in a roman version of the same font.
    I'm creating a new document now and would like to use the same paragraph style/nested style combination, only with different fonts.
    Is there some way to edit an existing nested style, or do I have to create a new one for the new fonts?
    Thanks for your help.

    You can load the paragraph style in the new document and then change the font....
    In the new document , Go to Paragraph style panel flyout menu and then choose "load paragraph style"and then choose the file in which you have this nested paragraph style present.

  • What is wrong with my Nested Style?

    Hi guys,
    Frustrating times in InDesign when Nested Styles do not behave as i would like to. I would like to have a highlited text after the Hard Return or ":" a simple Character style Helvetica Bold like here.
    http://www.pixentral.com/show.php?picture=1gFC1qoFDCNkgJy3BmxEYZc3ZEAE0
    I don´t know what i am doing so wrong i get this Morse Code. The highlight stuff is mixing up everything. The highlight is deselected in the character style but keeps appearing...
    Any idea?
    Thanks
    Sebastian
    pd: i know the palettes are in Spanish but i guess is mostly understandable since the locations of things are the same.

    You are totally misunderstanding how nested styles work. Once hit the
    return key you're starting a new paragraph. If you want your text to
    pick up a character style after the colon then use a soft return instead.
    Bob

  • Grep Styles/Nested Styles from the end of the paragraph

    Hi -
    It appears that grep styles, and nested styles only allow you to apply styles from the beginning of the paragraph until the match.
    I'd like to be able to apply styles from the END of the paragraph going back.
    This would allow me to apply a non-breaking character style to the end of a paragraph to control "runts". You could make the last two words of a paragraph non breaking, or set a 15 character threshold.
    This wouldn't work for all cases, but I'm working with centered, non-justified text, so it should work fine. If the feature were there.
    I'm sure there are other things one could do with it as well.
    There's a good discussion, and a MANUAL work-around on
    http://pdsassoc.com/tipsCS/DeruntingParagraphs/index.html
    Tom

    I used your suggestion and reviewed the tutorial again.
    Sometimes a missing piece of info drives you nuts.
    Thanks again.
    My clients will love this enhancement.
    CS rocks.

Maybe you are looking for

  • Question about the E51

    Hey there people I'm a Nokia E51 user. My question is as follows: What theoretically happens if someone calls you while headphones are connected - without the adapter that includes a microphone? I know it's funny I'm asking that because you can just 

  • Why is my airportxpr only working with Itunes and not with another music program

    why is my airportxpr only working with Itunes and not with another music program?? I can not select/see other outputs in my sound selector.

  • How to keep the new modified name when sendind through Mail?

    Is there any way to keep the name I just modified in iPhoto when I send it via Mail directly from iPhoto? I just tried and I see the original dscxxx name in the received email! Thanks

  • Atachement issue

    Hi, MY scenario HTTP to IDOC I am converting the incoming CSV(Comes as attachement) to XML at mapping level(client requirement to do at mapping). I converted CSV to XML and sent to message mapping, but in message mapping is not able o understand the

  • ASKB functionality

    Dear Seniors, What is the functionality of ASKB.  How exactly it picks the figures for the line items. As per my knowledge,  ASKB posts the difference in Depreciation posting of two different books are posted.  Let's say for example, difference in De