Nested Styles with InDesign

Posted by in Design, InDesign, Mapbook

Nested Styles in InDesign is a pretty cool feature. Using nested styles, you can tell InDesign to automatically apply specific styling upto or until a certain character (and that includes hidden characters) then another style up to the next character and so on. So instead of highlighting the first line, enlarging the type size, changing the typeface and changing the color manually, you can set up a nested paragraph style. With a nested style you select a text box and apply the paragraph style to automatically format a series of character styles to your text. The source text needs to be designed and formatted in a way that matches the settings of the nested paragraph style properly which can be tricky but I’ll show you how I’ve set up an example from my work.

I have used nested styles with hidden characters in maps, map indexes and other documents to create a consistent and useful style that saves major amounts of time and saves me from some tedious cartography/typography work. Imagine needed to style text on one hundred different pages manually. This technique is especially useful for a map series where there are many separate occurrences of text that need the same formatting.

Here is the example I will be working with. I am using InDesign CS4 in these examples. This text reflects a nested style that has been applied in InDesign, this nested paragraph style consists of three different character styles (you can download the source/example files at the end of this article).

 

 

Here’s the same text showing the hidden characters.

 

 

You can see that there is a line break character (not a paragraph return) at the end of the first header line, then there is body text, a line break, the Actions heading, then more body text only after the end of this sequence is there a paragraph return which tells the nested paragraph style to restart. There are three different character styles incorporated into the nested paragraph style. There is one character style for the blue header [RP Event Header], one for the body text [TEXT – 8 – A,n – RB] and one for the Actions header [RP Header]. This nested paragraph style applies these character styles based on the positioning of hidden characters. The sequence defined in the nested style is [RP Event Header] up to the first line break, then [TEXT – 8 – A,n – RB] up to the second line break, then [RP Header] up to the next line break, [TEXT – 8 – A,n – RB] until the paragraph return, after which the nested style is repeated with the same sequence.

To build the nested style you must first build the character styles utilized in the nested paragraph style. A character style controls typeface, leading (line spacing) color and a few other things. Here’s how the header character style is set up in the example (to access character styles in InDesign go to Window>Type & Tables>Character Styles; to create a new character style hit the character styles flyout

and choose new character style).

Once you’ve added a new character style you can either double click the name in the list or click once to highlight the name then hit the character styles flyout and choose Style Options…. Under the general tab, you can rename the style to something descriptive. You can see the name I have been referencing here [RP Event Header].

In the Basic Character Formats tab, you can see the properties of this character style including the typeface used, the size, leading, kerning and case settings.

The only other tab with settings for this character style is the Character Color tab where the typeface color is set to cyan.

The remaining character styles needed to complete the nested paragraph style should be created in the same way. Once the character styles are ready, you can move on to the paragraph style. I usually keep notes on how I want my nested style to work so. Having notes and a plan will help get the proper results when you are building the nested style.

To start the nested style, open the paragraph styles window (same procedure as the character style window but choose paragraph styles). Next, create a new paragraph style the same way you created a new character style – but in the paragraph style window. Now visit the Drop Caps and Nested Styles tab. This is the control center for the nested style and you can pretty much ignore the other tabs. You will see there are many settings for paragraph styles and I encourage you to explore them but I will focus on the Nested Styles tab here.

This is how the nested styles are set up for the text in this example.

To add a style in the nested style configuration hit the New Nested Style button. This will bring up the list of Character Styles in your document. Choose the character style to use then tell InDesign how far to take it. You can see for this nested style the [RP Event Header] is applied up to the first forced line break character. There are similar settings for the remaining character styles. Notice that the [RP Header] must be set at up to 2 Forced Line Break though it looks as though it should be up to 3 Forced Line Break. I believe the count is from the previous nested style, which means the [RP Header] is applied from the end of the previous nested style (forced line break 2), counting that Forced Line Break character, up through the next Forced Line Break character. I don’t think the counting here quite make sense, which can get frustrating, so it may take some trial and error to set up a working nested style.

To apply the nested style, place a text file with the appropriate hidden characters using File>Place or Ctrl+D on the keyboard.

You will notice that the text file may have a character style applied and you must change it to none. Then you can apply the nested style to see the formatting in action. If there is a character style applied to your text then you apply your nested style, the text will reflect the character style – make sure there is no character style applied when using a nested paragraph style.

You can download the files that I have used in the example to try this yourself. The zip includes an InDesign CS4 file with character and paragraph styles preloaded along with a properly formatted rich text file for use with the nested style.

 

Nested Styles Examples.zip

 

 

Here’s a visual explanation of how the nested style is set up.

28 Comments

  1. Sue Spade
    July 8, 2013

    I’m not finding how to create leading between forced line breaks anywhere! Could you advise me on how to lead out between forced line breaks, please?

    Reply
  2. Brian
    July 22, 2013

    Hi Sue, if you are using nested styles, you should be able to control this in the character styles.

    Reply
  3. Ashok Panda
    August 8, 2013

    Hi Everyone, I have a table header with 2 words and i just want to break the words into 2 lines through styles, means the 2nd word should go to next line. Can any one help me out in this through styles.

    Reply
    • Brian
      August 8, 2013

      Can you post a pic of what you’ve got and what you’re trying to get? There might be a couple of ways to approach this..

      Reply
  4. amino prime cost
    October 11, 2014

    What’s Going down i am new to this, I stumbled upon this I’ve
    found It absolutely useful and it has helped me out loads.

    I hope to give a contribution & aid different users like its helped me.
    Great job.

    Reply
  5. Riky
    January 15, 2015

    wow thanks for this great article, learned something new from this 🙂

    Reply
  6. Kristeen Keena
    June 2, 2016

    Hi there, I do think your website could possibly be having browser compatibility issues. Whenever I take a look at your web site in Safari, it looks fine but when opening in I.E., it’s got some overlapping issues. I simply wanted to provide you with a quick heads up! Besides that, wonderful website!

    Reply
  7. Joanne Weatherwax
    June 2, 2016

    Can I simply say what a reduction to search out someone who actually is aware of what theyre speaking about on the internet. You undoubtedly know how one can convey an issue to gentle and make it important. Extra people must read this and perceive this aspect of the story. I cant believe youre not more in style because you undoubtedly have the gift.

    Reply
  8. agen pepek
    February 18, 2020

    When some one searches for his vital thing, so he/she wants to be available that in detail, therefore that thing is maintained over here.

    Reply
  9. Qurbaan Huaa
    March 21, 2020

    Wonderful article! We are linking to this great
    article on our site. Keep up the good writing.

    Reply
  10. gastric band operation
    March 30, 2020

    I always was interested in this subject and still am, appreciate it for putting
    up.

    Reply
  11. sex porn videos,
    April 5, 2020

    Thankfulness to my father who shared with me on the topic of this website,
    this blog is actually remarkable.

    Reply
  12. food item
    April 8, 2020

    There is noticeably a bunch to realize about this.

    I think you made some good points in features also.

    Reply
  13. Ronnie
    April 16, 2020

    Fantastic site. A lot of useful information here.

    I’m sending it to several friends ans also sharing in delicious.
    And of course, thanks in your effort!

    Reply
  14. Fanduel deals
    April 17, 2020

    Why users still make use of to read news papers when in this technological globe the
    whole thing is available on net?

    Reply
  15. Effie
    April 29, 2020

    Most effective entrepreneurs began out as accountants. The knowledge they gained in this job at some point settled as well as they are currently continuouslying
    develop a business realm. If you too would wish to become like many of the effective accountants today, after that you
    will desire to know the skills needed in accounting.

    Reply
  16. Mildred
    May 2, 2020

    Several nursing agencies are offering international nursing jobs
    with exceptional assignments, competitive pay rates, and free accommodation.

    Reply
  17. hgf
    May 6, 2020

    What’s Going down i’m new to this, I stumbled upon this I’ve found It positively helpful
    and it has aided me out loads. I hope to give a contribution & aid
    different users like its aided me. Great job.

    Reply
  18. Togel Online
    May 16, 2020

    Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates.
    I’ve been looking for a plug-in like this for quite some time and
    was hoping maybe you would have some experience with something like this.
    Please let me know if you run into anything. I
    truly enjoy reading your blog and I look forward to your new updates.

    Reply
  19. situs judi slot freebet tanpa deposit
    May 17, 2020

    Thank you for some other informative site. Where else may
    I get that type of information written in such a perfect approach?
    I have a project that I’m simply now working on, and I have been on the glance out for such information.

    Reply
  20. penomet pump
    May 22, 2020

    Superb blog! Do you have any tips for aspiring writers?
    I’m hoping to start my own site soon but I’m a little lost on everything.
    Would you recommend starting with a free platform like WordPress or go for
    a paid option? There are so many options out there that I’m totally overwhelmed ..
    Any recommendations? Thank you!

    Reply
  21. drudge report
    May 31, 2020

    Hello there, You have done an excellent job. I’ll definitely digg it and personally
    suggest to my friends. I’m sure they will be benefited from this website.

    Reply
  22. Klara
    June 2, 2020

    Audit or book-keeping is one of the ideal professions offered today.
    In accountancy, you will certainly see that there
    are great deals of things that you can benefit from.

    Right here, you will certainly see that it will be able to help you acquire experience in the field of audit as well as
    discover a whole lot regarding the internal operations
    of businesses. If you also would certainly want to end up
    being like many of the successful accounting professionals today, then you will desire
    to understand the skills required in bookkeeping.

    Reply
  23. bandar togel hongkong
    June 2, 2020

    of course like your website but you have to check the
    spelling on several of your posts. A number of them are rife with spelling issues
    and I to find it very bothersome to inform the truth
    on the other hand I’ll surely come back again.

    Reply
  24. poker online
    June 4, 2020

    If some one needs expert view on the topic of blogging afterward i advise him/her
    to go to see this webpage, Keep up the nice job.

    Reply
  25. 그레잇게임
    August 17, 2020

    I was pretty happy to find this web site. I wish to thank you for once just for this wonderful read!! I most definitely really liked all it and also i also have you book-marked to look into new details on your site.

    Reply
  26. keluaran hk
    April 13, 2021

    Having read this I believed it was very informative. I appreciate you finding the time and effort to put this informative article
    together. I once again find myself personally spending a lot of time both reading and leaving comments.
    But so what, it was still worth it!

    Reply
  27. karabük yurt
    October 18, 2021

    karabük spor

    Reply

Leave a Reply