As long as he chapter, section, and subsection headings are each using different paragraph styles this is no problem. What you are trying to do is similar, I think, to this:
This TOC uses three different paragraph styles for listings, with varying formatting and indents, along with different number positions for chapter heads and sublevels. In the dialog you can see that I've included a number of different heading paragraph styles from the text, and that I've assigned the TOC Level 1 paragraph style to be used to format TOC entries that are picked up from paragraphs in the text that use the Chapter Head paragraph style. The key is to create a set of styles to use inside the TOC itself and to map your various heading styles to these TOC entry styles.
So I can place a paragraph title direct-aligned behind the title? So, I can make my toc design like pictured in the question above?
With the page numbers in front?
Your hand-drawn sketch is a little hard to read, and I'm not sure if you have each type of heading on its own line (easy), or if you want something like:
Pg# Ch# Chapter Title Pg# Section# Section Title Pg# SubSec# Subsec Title
all on the same line (maybe doable with Run-in entries, but I suspect not with multiple subsections, and also,, in my opinion, very hard to read).
If each is on a separate line, then you need three styles for entries with varying left indents. Numbers can be before the entry if you like. You did mention automatically updating when you add a chapter, and that won't happen with ID's TOC module, you have to update manually (choose the update TOC command) when you make changes. Since building a TOC is usually one of the last things you would do, this isn't a big problem.
I know how to place text beneath a chapter. Only I don't know how to place chapters and paragraphs behind chapters, etc.
This does not look like something that ID can do automatically in a single TOC (but we have some very clever people here, so don't give up). My inclination would be to make three tables of contents in three frames, then at the end adjust spacing to get the vertical alignment required (perhaps by breaking the lists into multiple threaded frames for each block).
Thank you. Than I will just wait for other responses.
Could we have the basic TOC file after its generation and no other intervention and a file of the result you would want to get?
Question: where are?
About the 2nd point, you just pressed enter on the keyboard? So, after generating the toc I could press enter.
That's means their is no way to let it generate it automatically?
You did that with Grep?
Yes! If you want, send me your TOC file after generation with fonts and, maybe, if time in the WE, I send you the good regex for you to do it in one click using MFC of course! ;-)
[ sent from iPad ]
We suppose you could "normally" generate one TOC. So we'ld have:
As Peter and you seem to go is the generation of 3 TOC… and you get:
To do it, you've manually created 3 stories, one per level (3 levels) as:
Imho, it's not a very good way to do it (of course, without script).
After seeing the file you sent to me, I propose you to play the game with a "Table structure".
… and I can tell you it's cool!
To do it, I've created a table style named "TOC" with 3 cell styles because we have 3 columns (TOC1, TOC2 and TOC3).
1/ We suppose the global TOC has been basically generated:
2/ We need a first Multi-Find/Change set [15 simple regex] to prepare the "Table" conversion:
[ I know: the result is awful! ;-) ]
3/ Conversion to table "TOC":
[ I know: the result is always awful! ;-) ]
4/ We need a second Multi-Find/Change set [7 simple regex] to finish the "Table" conversion:
[ Wow! It almost looks like a small miracle! ;-) ]
5-6-7/ At last, 3 little things to do:
• Apply the 2 other good columns styles TOC2 and TOC3 [TOC1 is by default] with the good widths - To do this, as I've already done it, I've saved the 3 widths [See AutoSpalte2.jsxbin written by Gerald Singelmann].
• finally [Sorry!], you'll have to make some "manual fusions" on column 1:
Exactly done in … 57 seconds! … Of course, it takes to me more time to explain to you!
Imho, it's a quick tip!
Super awesomeness! Thanks you very much, it's looks great!
Only 57 seconds!? With this guide it makes everything very easy. Cool!
To play: ID files (.indd ID CC 2015 + .idml), PDF and the 22 Regex used, in 2 MFC sets!
Why the column 1 cells merging is interesting? It'll give the op a layout better control if the TOC runs on several pages!
As my friend pixxxel schubser always say, Enjoy!