Copy link to clipboard
Copied
hi Everyone
see attached image. How can I generate table of content as attached image?
: notice Style No. and Style Name are paired. But they are two different paragraph style. I can only associate one paragraph style to the page No. inside the TOC dialogue box.
Any ideas ?
thank you
=
Copy link to clipboard
Copied
Can you ad a screenshot of a product page to see what you are working from?
Copy link to clipboard
Copied
One way would be to define both styles to be gathered, which would end up with double lines of text for the page entries. Let them generate two differently-named paragraph styles in the completed ToC. Then, as a second phase, you could do a Find/Change to find the digits followed by a hard return and change them to none (or a tab character). Limit the search to one of the two paragraph styles. This would cause the first and second lines of each page entry to merge into one paragraph style that could be styled like your example screenshot.
Copy link to clipboard
Copied
If the content pattern in the file is Style No and then Style Name (repeated) you could be tricky and set the Style Name TOC style to have 0 leading (so it pulls up to the same line as the Style No) and use a left indent to push it over to the right.
You'll also have to set Style No to not have a page number added.
Copy link to clipboard
Copied
hi Everyone not exactly like what Dan suggested but inspired by it: I resolved this issue by nesting a character style (Style No.) into the Paragraph Style that contains Style Name. Later it took some planning and thinking to finally get it organized to the way I wanted.
thank you -
Copy link to clipboard
Copied
It is hard to see what you have done as long as we don't see any difference in appearance of the levels of the ToC.
You will do best to have a Paragraph Style for each level of hierarchy. Don't forget to view more options to see all the options.
Dan Gives you some good advise. Take it in stages though.
First get the Style No and the Style Name to line up in the proper rows, then you can set the Style Name to learning zero.
You will have problem if there are multiple rows of Style Name.
It is hard to foresee any other problems that may pop up.