6 Replies Latest reply on Mar 28, 2013 4:47 AM by Peter Spier

    Stroke effect (or other) across multiple styles


      I need to apply a stroke effect to some text in the document - but I have multiple styles in use and I want to be able to apply this effect across different styles without changing the rest of the style. 


      Eg:  I have the text "I like eating apples" in five different places, all of which are in a different font / size / italics, etc.   In each of them I want the word Apples to have a 0.5pt black outer stroke.  Can I create a stroke style that preserves the rest of the original text format

        • 1. Re: Stroke effect (or other) across multiple styles
          Eugene Tyson Adobe Community Professional & MVP

          You need 1 style to be the Master of them all.


          You do this by creating the First Style and name it "Text 1" or whatever makes sense for you.


          When you create Text 2 - you need to set that to be based on Text 1.


          Change whatever attributes you need for Text 2.


          Note do not apply the Stroke setting yet


          Do this for Text 3, Text 4, Text 5, etc. basing all Texts on Text 1



          In Text 1 - you can choose a Stroke - and this will filter all the way down to Text 2,3,4,5

          • 2. Re: Stroke effect (or other) across multiple styles
            PaulG1970 Level 1

            Sorry, I dont think I was clear.   A bit more explanation.


            Style 1 = Times New Roman 10pt.   Style 2 = Cosmic Sans 14pt.  For example.   Now within those styles, I need certain parts of it to be a different colour

            So I was hoping I could create Style 3 which changes colour to green, but leaves the font the same


            I think your example with one master style wouldnt work for me, as the two styles are different fonts.

            • 3. Re: Stroke effect (or other) across multiple styles
              Eugene Tyson Adobe Community Professional & MVP

              You can change each individual part of Text 2 to something else, it no longer links that specific part to Text 1.


              For example


              Text 1 - 10pt Times

              Text 2 - 10pt Times

              Change Text 2 to

              Text 2 - 10pt Comic Sans


              Now the Font only will not be linked to Text 1



              But if you have


              Text 1 - 10pt Times Stroke colour Red

              Text 2 - 9pt (no longer links size to Text 1 size) Comic Sans (no longer links to font) Stroke Colour Red


              You can now still cange the Stroke Colour on Text 2 to something else - it just won't be linked to Text 1's stroke colour anymore.



              And if you change the Stroke Width in Text 1 it will change in Text 2.


              To stop the Text 2 from changing Stroke Width with Text 1 - simply change Text 2 stroke width in the Text 2 Paragraph Style.



              Try it out.

              • 4. Re: Stroke effect (or other) across multiple styles
                [Jongware] Most Valuable Participant

                You are using 'styles' to assign attributes to text. Can you clarify whether you are talking about *Character Styles* or *Paragraph Styles* here?

                • 5. Re: Stroke effect (or other) across multiple styles
                  PaulG1970 Level 1

                  Just character styles.  I'm a bit of an InDesign noob, so unfortunately I'm not really following the answers.


                  To make this even simpler, lets say I have some text.


                  "I eat an Apple every day".


                  That text appears three times in my document - each time in a different Sytle. 

                  Style 1 = Times New Roman 10pt. Style 2 = Cosmic Sans 14pt. Style 3 = Minion Pro 18pt.


                  Now, what I want to do is to have the word "Apple" show in Green, and I know I can do this manually, but I want to do it with a style so that when I decide I no longer like Green but want to change it to yellow, I can just change the style.


                  Each time, I want to leave the rest of the text style the same, just change the colour.

                  • 6. Re: Stroke effect (or other) across multiple styles
                    Peter Spier Most Valuable Participant (Moderator)

                    ID uses two types of styles for formatting text, Paragraph and Character styles.


                    ALL text carries a paragraph style unless you've done something special to reveal the [No Paragraph Style] attribute, which seems pretty unlikely in your case as a new user. Paragraph styles include basic type specifications -- face, size, weight, color, etc. -- that gets applied to all text in any paragraph to which that style is applied. The default paragraph style is [Basic Paragraph] unless you define and choose something else (which you really should, but that's a different discussion).


                    Character styles are used to change particular bits of text within a paragraph so they have different or additional formatting, so adding a stroke would be something that could be done very easily using a character style. Character styles can be very specific, including all the font parameters, or very general, like just applying Bold to whatever happens to be specified otherwise. The simpler and more general the character style the more useful it tends to be.


                    There are several ways that you can apply a character style. Select text and apply the style is the most basic (and you can use find/change to do this), but it's not terribly automatic. Nested styles are a way to apply character styles automatically within a paragraph style using some sort of trigger values in the text -- number of words, characters or spaces; or the location of a particular character -- but they don't always work well. You can't use a nested style to find a whole word, for example, by entering the word. Line styles, also part of the paragraph style, are similar to nested dtyles, but they apply your character style to entire lines of text automatically.


                    Fortunately, there's yet one more way to apply chararcter styles automatically that CAN identify not only specific words, wherever they appear in the paragraph, but can find any text string that matches a defined pattern, suc as any workd that starts with a capital letter, or any digit, but only if it is preceded by a lower case letter, etc. These are GREP styles, and they work similarly to GREP find/change, but they cannot replace content, only apply character styles. They also can be stacked on top of other character styles.


                    I know you panicked when I said GREP, but don't. To apply the stroke to the word "apples" in your sample above you would define a character style (named something useful like stroke) that does nothing but apply a .5 pt black stroke, then in your paragraph style definition go to the GREP styles section and add a new GREP style. Delete the sample expression and just type apple, then choose your stroke style, and the word apple will be stroked no matter where it appears in your paragraph.


                    If you need to limit the stroking to that specific sentence, you can do that with a look-behind, but that's a bit more complex and I don't want to get into it if we don't have to yet.


                    Feel free to give us more details about the text and we can give better advice about setting up GREP styles, if you need them, or plain nested styles if they can be set up to work.