Copy link to clipboard
Copied
Hello all, I'm attempting to style a large amount of titles (formatted in the style shown below)
I need to change them into the following styles.
So it should end up looking like this
It's always in the same style, (number | title | country | date | creator) and I was curious if there was a way I could do this using GREP, I'm pretty sure it's possible, I just can't work out the right sequence. I suppose I would need to be able to specify which | I was referring to. Any ideas?
Thanks
1 Correct answer
IMO, nested styles is enough:
Copy link to clipboard
Copied
IMO, nested styles is enough:
Copy link to clipboard
Copied
Hi,
More complicated if the " | " uses the same font weight (para style default!)!
(^/)
Copy link to clipboard
Copied
(^/)
Copy link to clipboard
Copied
Do you know how to work with nested styles?
Copy link to clipboard
Copied
I do! I didn't realise you could specify characters though, I thought you could only use words/letters etc.
Thank you both!
I've realised a slight obstacle may occur at some instances in the book where no date or location is known. What would be the best way to circumnavigate this? A separate paragraph style for each instance e.g. one for missing date, one for missing location?
Copy link to clipboard
Copied
Dative wrote
A separate paragraph style for each instance e.g. one for missing date, one for missing location?
The most obvious solution, I guess.
For entries with no date you can search using regex "find occurrences that do NOT contain 4 digits in a row". Something like this: ^.(?!.+\d{4})
Not sure if it's possible to automate find of missing locations.

