A loop Nested Styles - a number of paragraphs of body text Variable

In a loop of nested styles, which is the trick that allows a variable amount of paragraphs signaling front InDesign to move to the next Style?

I got nested style sheets a loop well enough for a report format that I'm trying. Group headers and management work well, but I can't get my nested styles to work with varying amounts of text. Some sections may have a single paragraph (and my grand of work styles nesting!), whereas most of the sections have more than one paragraph (in this case, my nesting styles do not work correctly).

I tried to use a special character to indicate where the paragraph ends - as a tab on the right - but this has not worked for me. Any other suggestions?

Example:

Directorate A header

Group header 1

Group 1 leader name

Group 1 body text

Group header 2

Name of the head of Group 2

Group of 2 body text

Group of 2 body text

Group of 2 body text

Group header 3

Name of the head of Group 3

Group of 3 body text

and so on up to the...

Direction B header

Group header 1

Group 1 leader name

Group 1 body text

and so on...

Thank you!

No, you're right, each paragraph would need a style. I believe that the word styles also have a following style attribute, but the problem would be the same here trying to loop.

But this is how text is supposed to be delivered - completely style, but not necessarily with the correctly defined styles. You can redefine the style in the code. I understand that the authors do not know how to use Word and do not have any idea of styles, but if you have people clean the text to add the styles part of the cleaning process, including adding character to the bold and italic styles, etc..

Tags: InDesign

Similar Questions

  • style character or paragraph to the text of my body?

    Which should I use, style of character or paragraph to the text of my body? When I first import text in my document, which should I apply?

    Don't we just cover it with you, or was it someone else?

    Paragraph styles are the first level of formatting and are applied to all the text in a paragraph. They include fonts specifications. Character styles are in 'special' situations where you need to a single character or a word or group of words, to have a feature that has a different shape, the basic text attributes applied in the paragraph style. Character styles can be as simple as changing type of italics, or by adding a line of underscores, regardless of the police, or can include police information that will always force this particular text to be in a certain face, weight, size and even if you reset the paragraph style of the text that surrounds (you could do this for a brand name of the product).

    You don't want to apply a character style to an entire paragraph.

  • nested - style hair the last characters in a paragraph?

    Hi peoples INDD!

    I learned so much the last time I asked a question here that I had to let my brain cool for a while. But now I'm back with another!

    Thanks to collective intelligence here, I work more efficiently with nested styles.

    But I am stumped on trying to assign a nested style to the last x number of characters in a paragraph. Previously, people here taught me the full magic of a collection of the first characters of the nesting, but I can't understand how to specify characters.

    More specifically: I use a particular font that includes a couple of icons "Closed Caption". I try to use a nested style to assign only the police to just the last character of a title style. Most of the time, it's just the last character. Sometimes, however, it's the last two... (here all suggestions are welcome, too)

    See attached screen Cap...

    Thanks for any clarification necessary!

    Mr. Toastey

    I think you can do this with GREP style.

    Set a cahracter style to use which includes your special fonts, then in your Style of paragraph definition go to the pane styles GREP. The channel you want is. $ (the point is a wildcard for any character and the dollar sign is the paragraph end marker, so that search for a character at the end of the paragraph). You will need to use the number of points you want character of style rather than. + who would find the whole paragraph.

    Peter

  • Do tabs in a paragraph based on a style where a nested style ends

    Hello world

    I work at a list containing "BOLD" leaders using a nested style. I want to do is have my line of plaintext upward with the line above. However, I can't just create a regular in the style tab because my "BOLD" leaders are of different lengths.

    Is it possible to configure the paragraph style so that the text on the line under the first line indentera to where the light text has started on the first line?

    Screen Shot 2016-08-23 at 12.13.52 PM.png

    In the above example, I want my text on the second line indented for where is the red line. Note that the "BOLD" leadership in each paragraph are of different lengths. I know that this can be done manually, but I want to try to do this with a paragraph style.

    Please notify.

    Thank you all!

    Not with a style of paragraph, but you could use find and replace to add an indicator of withdrawal here after the colon and space.

    Which would allow all of your paragraphs to keep the same style, but move your withdrawal based on the implementation of this marker in each element.

    No need to tab stops.

  • Paragraph return vs forced in a nested style line break

    I need some clarification, if I want a style to run through a paragraph return, the forced line break accomplishes the same thing?

    In other words, he broke no option to return a line break in the nested only Style dialog box.

    Am I missing something?

    It seems to me that you don't need the second nested style. Your paragraph style must be consistent in any case, and the reason that it seems to operate through forced, even line break if there isn't one, is that the second nested style is applied until the end of the paragraph. Think of it this way: you set your style of paragraph like what you want to look like the whole paragraph, and you use a nested style if you need a discrepancy with the paragraph at the beginning of the paragraph style, two styles nested If you need two differences at the beginning and so on. -You don't need nested character styles to describe the entire paragraph, that what should look like different from the paragraph style.

    If you kill the second nested style, what happens to your layout?

  • Problem with nested styles

    Relatively new user of InDesign tries to follow the instructions contained in the help files on creating nested styles, and something weird is happening that I can't understand.

    The goal: create a paragraph for paragraph style, after a break from the scene in a novel with no hyphen and the first [number] of words in capital letters.

    I have the paragraph style and the character in the format style. Each style individually works as expected. But when I select the Style Options > drop caps and Styles nested > new Style nested > choose the character style > via > 4 words > OK, the paragraph begins with the first three words in the normal case and caps are applied to the four words of the first line. Nothing I've tried puts the caps at the beginning of the paragraph and begins to count the number of words from there.

    I'd appreciate any help to ease my frustration. Thank you.

    Tosh

    OK, Peter responded before me in a few seconds, I guess.

    Thank you, Peter

  • Nested style were not applied

    In InDesign CS4 (6.0.6) I have a problem with nested styles, returning to the main paragraph style. The nested style is set to apply for a period, but it's randomly switch back on the font used in the paragraph style. Some paragraphs have the nested style applied and others do not (see table).  Unknown yet, the paragraph Styles Panel does not show the substitutions to the style (or is erase replacements an option in the dialog box) but if I option click on the style, the number will return to its true nested state.

    I thought it might be a conflict of fonts, but I already checked the editors of machines (we have an InCopy workflow) as well as mine and nobody has no substitute fonts in use.

    Is this a known bug? Anyone had this problem before? We had this question pop up at random before but never this close a date press option so usually just click on even though we do not know how it goes. We're a little freaked out. Any help would be appreciated.

    Screen shot 2012-02-09 at 1.10.54 PM.png

    Screen shot 2012-02-09 at 1.15.54 PM.png

    Screen shot 2012-02-09 at 1.16.07 PM.png

    Out of curiosity, I decided to do a search/replace for the STAGE of paragraph Style RECIPE and replaced by the STAGE of RECIPE of paragraph Style. Interestingly, I've corrected in fact the nested style when I would click on change. It makes me wonder if something in InDesign was not recognizing as paragraphs with this style applied?

    For the purposes of closure, I'll mark the thread as answered, even if we discover the technical problem at the origin of the problem. In my opinion, is just a bug (not a feature).

  • How to apply several styles of one-sentence paragraphs?

    I'm using paragraph styles, but is not useful because I am applying 2 different styles in the same sentence that does not work.

    To make it work, I selects the sentence, apply the style, for example 'xfont-regular"then I select the word in the sentence that I want to have a different style and I choose in the list perhaps italic police so that it looks like 'something like this'

    Of course, in doing so, I lose all the benefits of the use of styles p and of course, it's so your time. Is it possible to break down the sentence, now in the same line, so that I can apply different styles to it? and always keep the benefits to go just to styles and make the changes to the entire document that this style is applied.

    Thank you

    pchinique wrote:

    I'm using paragraph styles, but is not useful because I am applying 2 different styles in the same sentence that does not work.

    To make it work, I selects the sentence, apply the style, for example 'xfont-regular"then I select the word in the sentence that I want to have a different style and I choose in the list perhaps italic police so that it looks like 'something like this'

    Of course, in doing so, I lose all the benefits of the use of styles p and of course, it's so your time. Is it possible to break down the sentence, now in the same line, so that I can apply different styles to it? and always keep the benefits to go just to styles and make the changes to the entire document that this style is applied.

    Thank you

    As Diane King mentioned, nested character styles may work for your need. His example was an initial capital of fall (multiline first one or several letters of a paragraph.) Dropped caps are a particular type of nested style - always the very first one or more characters in a paragraph, high on two or more lines.

    To use the general type of nested style, you must be able to identify the words in the paragraph which gets the nested character style. For example, the third word, or the first two words after the first semicolon. If there is no model of Word (s) that can be identified by the post office or the sequence, it is possible that a GREP style can be used to find a common pattern of characters and apply a style of character to it, for example a phone number, the date, or the amount of currency that is identified by a dollar sign book, or yuan.

    Search Help for InDesign and Google "Style nested InDesign', 'InDesign grep Style' and similar (without the quotes) terms for more details. There has been many discussions of GREP on this forum.

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

       
  • Dilema nested Style

    Hello

    Ok... I have this nested style, I've been using call letters in our catalog. Basically, there are 3 styles of character: body and 2 additional for the kerning amount before the letter of appeal and after the period of the call letter just before the description. Here's an example: I enclose a real test file, so perhaps someone could watch my nested styles.

    Basically, here's what works:

    A. Bowling ball. B. tennis racket of. C. ring of superman. D. Golf Club. E. Soccer ball for children. F. ladies espadrilles. G. socks men. H. frogs jump. I. small fish. J. water bottles. K. Snoopy dolls.

    It works very well... unless we have a line of type before the first call letter, like this:

    Check out these great gifts. A. Bowling ball. B. tennis racket of. C. ring of superman. D. Golf Club. E. Soccer ball for children. F. ladies espadrilles. G. socks men. H. frogs jump. I. small fish. J. water bottles. K. Snoopy dolls.

    Basically I have the body through 1 character style sheet., then I have the smaller main character through 1 character style, then I will go back to the body for 1 character style sheet., then the 2nd sheet of character style for the largest amount of kerning by 1 character then again the style of characters in the body through 1. and then again the style of character through 1 character... etc etc etc...

    But, once I add a copy to the front, it's a mess.

    Is it far from isolating just call letters to a certain style before it and after it? perhaps through GREP, if not through this?

    Please let me know if I clouds provide more information. I also noticed that I have lack of nested styles I might add... I think that there is a limit? At the moment I am the letter k, I might add that no more too to keep it going.

    There, any suggestions are greatly appreciated. Yet once, there is a file attached for better view.

    Thank you

    Babs

    I'll assume that you're using CS4.

    I will first answer the limited number of nested styles.  You make it too difficult. You should only define the 4 first nested styles based on what I saw in your document.  On the 5th nested style, set it on [Repeat] 4 latest styles. This will repeat the series of styles nested until the end of the paragraph.

    Then, in order to resolve your dilemma with the sentence that leads to the list, create a paragraph second, based on the first style. Add a new style nested until the beginning of the list, the value [no] through 1 sentence.

    Apply any paragraph style is appropriate based on the content.

    -mt

  • Nested styles and tab leader?

    Hi all

    I'm working on a directory of members. All sections are arranged simply enough, but this one section gives me a headache. I would like to automate creating a nested style, but I didn't understand how to set up the text to work with the nested style. I guess it's something simple and I'm just not see it. You know, so I thought that I would like to tender hand.

    What I have is a trade name, the right leader points (set in the palette tab) tab, and phone number. The name and telephone number must be "BOLD". The points of the leader must be light (because the "BOLD" points seem too big for me).

    So, I have a paragraph to bold text style. I've implemented a character style with the lightness of my regular police. I want to nest the points of light leading in the paragraph "BOLD". The trick is that the names of the companies are all different lengths. Character use to say to apply, then of the Nations United-apply the character style light?

    The document will have about 40 pages of these lists, so I'd really like to be able to automate it as much as possible.

    Thanks - d

    I would recommend an underline instead of a leader in the tab for this kind of work dashed - points begin and end more systematically:

    This, to a style of characters something like this:

    .. .and nested it in the paragraph style something like this:

  • How can I configure nested style None?

    Hello.

    I have a paragraph style, which contains two nested styles (char).

    var psBody = myDocument.paragraphStyles.add({  
        name: "ps Body",
        appliedFont: "Cambria",  
        fontStyle: "Bold",  
        pointSize: 24,  
        justification: Justification.centerAlign,
        keepWithNext:1});
        psBody.nestedStyles.add({
            appliedCharacterStyle: ,//<=============
            delimiter: NestedStyleDelimiters.anyWord,
            inclusive: true,
            repetition: 1});
        psBody.nestedStyles.add({
            appliedCharacterStyle: csBlue,
            delimiter: NestedStyleDelimiters.anyWord,
            inclusive: true,
            repetition: 1});
    

    How can I 'say' I want my first style nested to be none?

    Any help would be appreciated

    Hello

    It's a simple way to set to [None] without dependence on the locale.

        psBody.nestedStyles.add({
            appliedCharacterStyle: "$ID/[No Character Style]",
            delimiter: NestedStyleDelimiters.anyWord,
            inclusive: true,
            repetition: 1});
    

    Thank you

    mg.

  • Drop caps and nested Styles does not

    For reasons that escape me, it seems, the drop caps and Nested styles does not work for me. I am confident, I have followed the correct steps of there exactly: Nested styles to heavy users. Adobe InDesign tutorials CC

    Yet somehow the style preview and paragraph simply do nothing for me.

    I wonder what I'm missing.

    NestedStyles_NotWorking.JPG

    You have manually applied 1 character Style to the whole paragraph. THT is a priority.

  • Nested style help

    I want a header style that is a character style for however many words is typed, then a space, then a rule that fills the rest of the column. I tried several ways, but I can't make it work. The rule ends up being visible through it all.

    Instead of nested styles, this can be done with nets of paragraph. Rule here is paper, rule above is the color of the text (or whatever color you want). Adjust the size of the rule and the offsets to work with your text size.  (this example has been 40 pt)

     

  • nested styles xml

    Me again, but as everyone seems to be motivated, will try my supplementary question

    You have any advice or managed resources nested Styles to Xml?

    For example:

    italic/bold text italic text bold text

    If I am first marking italic tag just "BOLD", the result will be:

    < i > italic text < /i > < b > text in italic/bold text in "BOLD" < /b > (and it is of course not what I need!)

    So, you are looking for ideas for:

    1. Find a style (it's ok with findText)
    2. test if an xml tag is already applicable on all or part of the findText result
    3. Otherwise, apply the xml tag
    4. If so, find where the 2 styles are both present and apply to all the two and where only the new is apply and him only to find
    5. start over from 1 to all the additional styles
    6. not with 2000 lines of code

    The goal is to get:

    < i > text in italics/i <>< i > < b > bold/italic text < /b > < / i > < b > bold < /b >

    I know I will get crazy, but it's for a good cause

    Crazy life

    By combining and adapting the different ideas of Uwe (. + grep search) and Ariel (function backToNoStyle), I found a pretty easy fix. Need to test more but first try to make sure that it is stable work.

    Here is the code for those who are interested. I just give the "Italic" part but copy/paste (or better put in a loop) the lines in bold to manage other properties (smallcaps, exhibitor...).

    The basic idea is to remove the formatting all the markers of tags you add. In doing so, the findGrep results are cut into large pieces that cannot have multiple nested styles.

    function caraToXml() {
        app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
        app.findChangeTextOptions.caseSensitive = false;
        app.findChangeTextOptions.includeFootnotes = app.findChangeGrepOptions.includeFootnotes = false;
        app.findChangeTextOptions.includeHiddenLayers = false;
        app.findChangeTextOptions.includeLockedLayersForFind = false;
        app.findChangeTextOptions.includeLockedStoriesForFind = false;
        app.findChangeTextOptions.includeMasterPages = false;
        app.findChangeTextOptions.wholeWord = false;
        // italic conversion
        // need to be developed for other styles
        // pay attention to nested xml tags problems
        app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
        app.findGrepPreferences.findWhat = ".+";
        app.findGrepPreferences.fontStyle = "Italic";
        var myFindTexts = myDoc.findGrep();
        var myShift = 0;
        if (myFindTexts.length > 0) {
            for (var j = 0; j < myFindTexts.length; j++) {
                var myText = myFindTexts[j];
                var myStartIndex = myText.characters[0].index;
                var myEndIndex = myText.characters[-1].index;
                myXmlElement = myXmlElement.xmlElements.add({markupTag:"i", xmlContent:myText});
                myXmlElement = myXmlElement.parent;
                backToNoStyle(myText.parent.characters[myStartIndex]);
                backToNoStyle(myText.parent.characters[myEndIndex+ 2 + myShift]);
                myShift+=2;
            }
        }
    }

    //
    function backToNoStyle(xmlMarker) {
        xmlMarker.fontStyle = "Regular";
        xmlMarker.capitalization = Capitalization.NORMAL;
        xmlMarker.position = Position.NORMAL;
        xmlMarker.underline = false;
        xmlMarker.strikeThru = false;
    }

  • nested style notes rose as if there is a missing font (?)

    setting up a new document here and try to make the first character in each paragraph use body 01 INITIALS character style. in this screenshot I put it for the first three characters for the tests (never mind the term drop caps; try to use the nested here style).


    No matter what I put the cast in in the character style, it doesn't appear as nested. What would cause this?

    nested_question.JPG

    There is a hierarchy of styles. First of all, the paragraph style is applied to all types in the paragraph, including the nested character styles that are part of the definition of paragraph style. Then the character styles are applied, which substitutes assigned in the paragraph of the bet style shaped and finally, updates in shape that you apply locally by selecting the text and changing the settings is applied, and that substitutes at all.

    Formatted local / see room for selected text as a sign of more after the name of the style in the paragraph Styles Panel. You see the sign when you select your text? I do not suspect. More likely, you applied a default character style to everything, so no matter what settings you have in your paragraph style they are crushed by the character style applied. As I said before, character styles are used only for the selected text. They are used for the "special" text must be different in some way from the other text in a paragraph - formatting of basis for the whole paragraph is defined in the paragraph style.

    When you select an entire paragraph should NOT be a character showing style as applied as well. The character style must be [none], indicating that no text has a derogation applied character style, or it should be empty, which indicates that some of the text has an applied character style, but not the whole paragraph.

    End of the line, select any text, make sure the character style is set to [none] before you start adding text and only apply styles of character with Nested, line, or GREP styles in your paragraph style, or by selecting a specific text and manually applying the style. Manually applied character styles survive changes in the paragraph style and are actually the most useful if they are generic enough, apply just a color or bold or italic, but without specifying a face or size, so they left the face and size change to match any changes made to the paragraph style - you want usually 9 pt minion "BOLD" that suddenly appears in the middle of a paragraph that you changed to 12 PT Helvetica, unless it's a brand product. Instead a style that says only "BOLD" will give you 12 pt Helvetica Bold.

Maybe you are looking for