Reply To: No line breaks in TOC

#100902

That is brilliant.

I created the “invisible” character style and applied the grep style Q you provided and I still have issues :P I tried to interpret the grep and I am not sure that I am doing such a good job. What I get is a tab after the chapter number and the page number that follows the chapter number is not right indent.

It is looking for the word “Nyckel” followed by a white space, any number of digits and a tab. Then the \K. A little bit of googling tells me that \K is a neater version of Positive Lookbehind (?<=) The actual entry to replace is then any number of digits followed by a semicolon. Is this the correct interpretation? If so, what about the tab preceding the page number, shouldn’t that as well be part of the replacement?

I then tried to switch the ^t to ^y in the TOC and, in order to match the switch, replacing the with a ~y in the GREP to no avail. I am starting to feel bad asking you for help again but we are so close.

The link includes the current look of the TOC both ^t and ^y settings for the page number, the TOC with the chapter header para style highlighted and the Tabulation view of the para style used in for the chapter header. https://imgur.com/a/6ZNSp

As for the missing-subheader-problem I have an idea for a less risky solution that I will try out today

This article was last modified on January 12, 2018

Comments (0)

Loading comments...