Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Nested Style text to New Paragraph Style

Return to Member Forum

  • Author
    Posts
    • #1179477
      Mattie Wells
      Participant

      Hi! Currently, my nested style is the first sentence of the paragraph and they are bolded. My client wants them to be subheads instead. I was trying to think of a script, find and change, or other automated way to change them all.

      Thanks for your help! I am new to using scripts and more automated solutions so the easier to follow directions the better :)

    • #14324333
      David Blatner
      Keymaster

      Just to be sure I understand what you mean: you have something like this:

      This is my heading. And here is some more text.

      and you want to change it to:
      This is my heading.
      And here is some more text.

      Yes?

      I’m not sure you can do that with a single find/change, but you can probably do it with two. First, in the GREP tab of find/change, you could search for ^.+?[?!.] and replace it with $0¶\r
      Then switch to the Text tab of find/change and search for ¶ and replace with a space character and also apply the paragraph style.

      (You don’t have to use ¶… you can use any weird character that you don’t use anywhere else.)

      The grep code just means “find the first sentence, up to a question mark, an exclamation point, or a period, followed by a space”

    • #14324331
      Mattie Wells
      Participant

      Thank you! This is exactly what I’m trying to do. I will try it :)

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Forum Ads