Forum Replies Created
-
AuthorPosts
-
Michel Allio for FRIdNGE
ParticipantJust For Fun:
Simple if the user uses a new text frame for each page, 2 Grep styles:
1/
Grep code: ^.+?:
Char Style: Green2/
Grep code: \A^.+?:\K\H+\H+
Char Style: Italic(^/) The Jedi
Michel Allio for FRIdNGE
ParticipantFirst, you’re surely not the only one to be perplexed about the use of Grep here! …
Then, nothing to see with auto-num.
Finally, using e.g. Multi/Find-Change, you will just need 1 click and could avoid to use a script.(^/)
Michel Allio for FRIdNGE
ParticipantYou can simply do it if you consider that play “1 click” is not too much work!
I don’t talk about a script [even if I prefer this way] but 3 simple regex play in 1 click:
1/ reset the space before the list,
2/ apply a space before the fist para of the list,
3/ apply a space after the last para of the list.(^/) The Jedi
Michel Allio for FRIdNGE
ParticipantIf 2 or 3 paras in these specific text frames, it seems to me simple to style (I would use para styles).
My 3 para styles are: PS_1, PS_2 and PS_3.
Regex 1:
Find: \A.+\r(.+\r)?.+\z
Replace by format: PS_2[This first regex will only catch text frames with 2 or 3 paras!]
Regex 2:
Find: \A.
Find Format: PS_2
Replace by format: PS_1Regex 3:
Find: .\z
Find Format: PS_2
Replace by format: PS_3Of course, using a queries launcher, you just need 1 click!
(^/)
Michel Allio for FRIdNGE
ParticipantDo you mean:
I have text frames! Some have just 3 paras I only want to style! [that excludes text frames with 1, 2, 4 or more paras!]
(^/) The Jedi
Michel Allio for FRIdNGE
ParticipantAbout “no, there’s no way to use find/change to find & convert to outlines.”!
David, by Script of course like here (in a little more sophisticated way):
(^/) The Jedi
[It’s just a personal comment without ulterior motive (not sure about the right translation! =D ), like when you say: “Today, the weather is sunny in town! …”]
June 10, 2021 at 3:16 pm in reply to: Edit script to convert certain paragraph-style to sidenotes. #14340079Michel Allio for FRIdNGE
ParticipantSee above!
(^/)
Michel Allio for FRIdNGE
ParticipantDavid,
I just confirm you: “all things are possible with scripting”!
But with a small (or big…) difference … and surely more work: I did it!;-)
(^/)
Michel Allio for FRIdNGE
ParticipantJust For Fun! …
(^/)
Michel Allio for FRIdNGE
ParticipantSimple:
Grep Find: ~I.
Replace by format: condition “index entry view”Don’t use a char style but a condition!
(^/) The Jedi
Michel Allio for FRIdNGE
Participant… The problem could be now the “page bottom” and text between pages!
But it’s again simplistic to play in another way: “1 click, 1 script!”
(^/)
Michel Allio for FRIdNGE
Participant… I’m back:
Just add an “invisible above para rule” to shift the para to the bottom!
(^/)
Michel Allio for FRIdNGE
Participant[from my car! …]
… So simplistic (and obvious) that you will surely ask me! ;-)
[Of course, we talk about the “top” of the text frame!]
(^/) The Jedi
Michel Allio for FRIdNGE
ParticipantWhen I talk about “anchoring”, I mean: type the header text in an anchored text frame at the beginning of the first subtitle placed outside the page (on the pasteboard) and use a variable to define the header on a master page.
(^/)
May 16, 2021 at 9:01 am in reply to: GREP query:find multiple carriage returns, but NOT a page break, column break #14339357Michel Allio for FRIdNGE
Participant1/
Find ~P
Apply a condition2/
Find ^\r+ without condition
Replace by nothing3/
Find \r(?=\r)
Replace by nothing4/
Find condition
Replace by “no condition”Of course, using a queries launcher, you just need “1 click”!
(^/) The Jedi
-
AuthorPosts
