Forum Replies Created
-
AuthorPosts
-
Peter Ulvatun
MemberHi again Vinny. My GREP overlord guru magician,
Thanx for the speedy reply. I almost got it to work with using just instead of the {2}. I only have one tab. But then I realized that I have manually inserted line breaks (shift+return) in the chapter headings, i.e. the line break will not occur after x number of characters. This makes it much easier and the GREP string now reads: .{10,}\D\K\d+
– The .{10,} part is needed since the first line contains a word “nyckel” followed by the chapter number
Yet another – VERY BASIC – question:
I want to use a TOC header including the header and then “Page” right aligned on top of the page numbers. I must be blind but I cannot figure this one outPeter Ulvatun
MemberI’m back if anyone is still listening in on this post (Vinny?). If not I will post a new one.
The book was put on hold shortly after the last update but is now VERY close to printing.
The (final) issue I am currently facing is that sometimes my chapter name is quite long and needs two rows but I would REALLY like my page number to stay on the first row.
Normal layout:
‘Chapter’ ‘Chapter number’ ‘Chapter header’………………page #
‘Sub Header’ – ‘Sub Header’ – ‘Sub Header’ – ‘Sub Header’In case of a long chapter name:
‘Chapter’ ‘Chapter number’ ‘Chapter header [start]’…page #
‘Chapter header [end]’
‘Sub Header’ – ‘Sub Header’ – ‘Sub Header’ – ‘Sub Header’Today I am getting: ‘Chapter’ ‘Chapter number’ ‘Chapter header [start]’
‘Chapter header [end]’…page #Peter Ulvatun
MemberHmmm, thanx but that sounds awkward. It goes relatively quickly to generate a PDF where I can easily see the entire book but I consider this more of a work around than a preferred way of working. I thought that there would be an easy way when you quickly want to browse in order to get an overview.
Peter Ulvatun
MemberHi Claudio,
Yes, that is what I have done (although I failed to explain it properly in my post). I actually have three paragraph styles linked. A sub header which is followed by the non-indented which is followed by the indented which is followed by itself, etc.
Another way of doing this is to do a search/replace using GREP to locate the empty rows and then change the paragraph style of the following paragraph but it is a bit clumsy. I thought there was a way to fully automate it.
Peter Ulvatun
MemberI now have the final TOC in place. In order to ensure a line break even though I didn’t have any sub chapters I added yet another paragraph style which IS present in all chapters. The giant tick.
At the end of all chapters I have a rather big tick marker (I’m not 100% sure what it is called in English but if you have a checkbox you tick it with something that looks like an extravagant v). In order to implement it I used my newly acquired GREP skills and made two search/replace queries (REALLY annoying but I cannot see how this can be done using formatting or even only one s/r operation).
The first finds the end of the chapter (article) and adds a carriage return and the letter P. Search ($)\Z Replace: $1P The second changes the style of the paragraph in order to convert the P to a tick (Wingdings 2) and to get a paragraph style I can use to fix the TOC problem. Search: (^P$) and then the new paragraph style.
I am getting to the point where I need to write a manual for the InDesign book I have created in order to remember all the fancy stuff I have used. I am well aware of the dangers of being too inventive but it is very much fun :)
Peter Ulvatun
MemberHahaha,
Didn’t see your second post. I fixed the tabs and everything works swell!!!
I will get back to you on how my other idea went
Peter Ulvatun
MemberThat 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
Peter Ulvatun
MemberHi Vinny,
Oh, oh, oh, so close. I used IndyFont to create my own font replacing the semicolon with a neat little paw print. That part is done although I found a new issue which I will get back to in a minute.
I read up A LOT on GREP styling (I love it) and I created a new paragraph style where I Switched character format on the word “Nyckel” and yet another on any digits thus using only one paragraph style for the two lines (paragraphs). In the TOC I did a similar paragraph styles. Thus still leaving me with the issue of the semicolon and the page number between the two. How do you hide that with styling? https://imgur.com/gallery/6CbZJ
The new issue I found was the chapter 2 actually doesn’t contain any subchapter. The current work around is to add an empty paragraph with the proper styling but I don’t know if it can be handled in a better way. If I don’t add id chapter 3 will end up on the same row as chapter 2 which is kind of ugly.
Looking forward to your response
Peter Ulvatun
MemberOh! I now read your question again and realized that I got your question wrong. No, the training tips will not always be last in a chapter.
I just had a word with the author and actually there will be two TOC’s. First the regular one (not including the training tips) followed by one only including the training tips showing the page number for each training tip. That was very easy to do.
To sum up, I still have two issues
1) To get ‘Chapter’ ‘Chapter number’ ‘Chapter header’………………page # on one row correctly formatted
2) Have the sub chapters appear in a horizontal sequence with a separator of some sort. For now a dash will doPeter Ulvatun
Member…and now I noticed your videolink :) It goes a bit too fast for me to keep up and the French menu’s doesn’t help either ;) but it seems like you managed to solve the issue of adding each sub chapter and training tip horisontally and separating them with a dash.
The book is still far from finished and I am in no hurry but I am still very eager to see you explain this Thursday.
Peter Ulvatun
MemberYes, the Subheaders comes first and then the training tips. There will always be subheaders in a chapter but not necessarily any training tips
Peter Ulvatun
MemberI finally came around and got some screenshots together and posted them at https://imgur.com/gallery/kUDLg
The pictures are to be viewed bottom up
4) Extract from chapter 3 (or “Key” number three as they are called in this book(“Nyckel” = “Key” in Swedish)
3) The wanted look of the TOC
2) This is the current design of the TOC
1) Chapter 1 in the TOC has been manually updated to look like I wantWhat do you think? any way to automate the final part?
A new question: I realized that I don’t want the period marks leading up to the page number but although I removed them from the Paragraph style they still appear!?! Any ideas?
Peter Ulvatun
MemberI would love to post a screenshot or two. One tiny problem though. I haven’t figured out how to attach screenshots in this forum. I can’t paste and there is no ‘upload file’ button.
Peter Ulvatun
MemberThank you David for the quick reply. Then I know there is no need to pursue a fully automatic version of the TOC. What I have so far is quite OK and I will just have to format the final parts just before print.
Related question… Is there a way to only update the page numbers in the TOC without affecting the layout? It would be a bummer if the formatting resulted in one page less and I get stuck in a Catch 22 situation.
-
AuthorPosts
