I don't understand what you mean!
for the first example, there would need to be an Index entry for just Nivea. As long as all the text is threaded, and the paragraph style for the first occurrence of Nivea is not used again until the next brand name, the page range would be entered by setting the type to To Next Use of Style. The second-level entires have the type set to Suppress Page Number.
The result, after setting different paragraph styles for the index listings, is this
OK! [ nice way to treat the question! ]
In fact it doesn't work. I can't make 2nd line Suppress page Range, because as I am changing that, the first row change's to it as well, so I am still stuck with my problem
When i change it to Suppress Page Range, I don't have page number anywhere, either on subheading or heading.
You need separate index markers. (see my example).
The one for Nivea has a page range, the ones with Nivea and a subheading have it suppressed.
As long as the spelling on the Nivea only marker and the Nivea plus subhead marker are exactly the same, you will get the results that I showed.
Yay perfect it's working ! Can you also tell me if I can get rid of the letters (example underneath)
N <---- get rid of this
and how can I set it by page numbers rather them by alphabetical order ?
Thanks for your help anyway !
There is a checkbox to include (or not) the section headers.
I don't know of a way to get a page-number ordered list out of the index function. That's usually done with the TOC function. I haven't delved deeply into the capabilities of TOC, so I don't know if you could get your nested list with no numbers on the subheads that way.
Actually, you can do most of what you want to do with the TOC, including suppressing page numbers for the subhead style. It won't give you a page range like the index function though. It will make a new entry for every instance of your paragraph style, so you would need to create a unique style for the first appearance of your headline so that it appears only once in your Table of Contents
I might go crazy soon with this whole Index idea.....
So far so good, but still can't get to the end point of it.
First of all I watched some videos about sort by page numbers on youtube, and scripting (Sort Paragraphs Script). Which is working only if you have starting page number (example Clarins pg17), not starting and ending page number in one heading like me. So I still can't sort it out by page numbers.
Another thing is, by some reason it's choosing font that I don't have for my dashes so they are underlined as missing font and I can't change it.. So Frustrating.
And Finally I wish I could adjust all the numbers to the right so they would be align.
Will I ever have this over
The dash has to coming in as the same font as the rest of that line; that font must not have an n-dash in its character set.
You can adjust the numbers to the right one of two ways
1) Set a paragraph style with a right-aligned tab at the end of your line
2) Specify a right aligned tab in your index box -- you can do this by typing ^y in the Entry Separators box in the Index dialog
Its funny but the numbers are "Helvetica" and the dash is always a missing font "Sassoon Infant", and the helvetica have the n-dash in the character set. That's why it seems so strange for me.
Susan [ thanks about your private message! ],
I think about a simple way to sort the index on pages! Playing it with a condition, a simple regex (used twice) and Peter Kahrel's Script "Sort".
At the beginning, we have:
First, with Grep, apply a condition to the carriage-return of paras with Index Level 1 para style applied (if paras followed by a para with Index Level 2 para style applied). Treat all the paras with Index Level 2 para style applied).
Using Multi/Find-Change, 1 click!
Then, "mask" the condition:
Then, play this simple regex to "invert":
Then, play Peter Kahrel's Script "Sort":
Finally, play again the regex to "invert" again and just finish by making the condition visible!
PS: Before "Game Over", mask the condition and play another script of the great Peter Kahrel: "IndexSectionning", then make the condition visible!
Have you a tabulation (\t) before the numbers?
That's the reason!
Ok I manage to invert them, but now where do I get the Peter Kahrel's Script. I seem not to have it, the "sort paragraph" script, doesnt do it properly, it mix all the numbers hah
Thank you, your the best haha.
I manage to do that. Everything is nearly working. Just another problem with subheading appeared
When I either hide or not hide the subheading, they get messed up after scripting
BEFORE SCRIPTING ( Hidden Subheading )
AFTER SCRIPTING ( Subheading turned back on )
Also Because I have \t, I can't align the number to the right side so they would be in a straight line. It's not a big deal really, but is there a way to go around that ?
About the sorting, the difficulty is really here!
You need to "mask" the "Index Level 2" paras and the carriage-return of the "Index Level 1" paras when followed by a "Index Level 2" para.
Before playing it, try manually!
To "mask", you need to use a condition:
You will find its window here:
To apply it, you will Grep Find/Replace!
When applied, just mask the condition (see Condition window).
About the Tab, use a right tab or a "tabulation de retrait à droite" (in French)!
I wish I would have any idea what did you just said there hahaha