Page 1 of 1

Generate chapter minitoc

Posted: Wed Jun 27, 2018 5:12 pm
by shudson310
Does Chemistry support the minitoc like the standard PDF OT transform? If so, how do we enable it?

Re: Generate chapter minitoc

Posted: Thu Jun 28, 2018 10:46 am
by Costin
Hi,

This is not possible in the current implementation of Chemistry.
However, we already have an improvement request logged in our internal improvements tracking system, so our developers will try to implement this functionality in a future release.

We will notify this thread as soon as this will get implemented.

Regards,
Costin

Re: Generate chapter minitoc

Posted: Tue Apr 09, 2019 4:05 pm
by Costin
Hello,

I just wanted to update this thread as the minitoc feature was implemented in the latest internal nightly build and will be included in the next official release of the Chemistry engine / next version of oXygen.

Kind Regards,
Costin

Re: Generate chapter minitoc

Posted: Thu Mar 19, 2020 7:52 pm
by shudson310
Is there a way to generate the page numbers in the minitoc, as is done in xsl:fo? For printed output, it is imperative that we provide the page numbers with the chapter minitoc.

Re: Generate chapter minitoc

Posted: Fri Mar 20, 2020 10:30 am
by julien_lacour
Hello Scott,

You can find all the information inside this topic: Table of Contents for Chapters (Mini TOC).

If content is missing there, you can ask for more details. If necessary we will update the content.

Regards,
Julien

Re: Generate chapter minitoc

Posted: Fri Mar 20, 2020 5:48 pm
by shudson310
I don't see any information in the documentation for adding page numbers to the minitoc? This would be similar to how the main TOC displays page numbers and leaders.

Re: Generate chapter minitoc

Posted: Fri Mar 20, 2020 6:28 pm
by shudson310
I tried adding a style like:

Code: Select all

/* The dotted line between the topic name and the page number. */
*[class~="chapter/minitoc-links"] *[class~="topic/link"]:after {
    content: leader('-') target-counter(attr(href), page) !important;
    color: navy;
}
Doesn't seem to work. Suggestions?

Re: Generate chapter minitoc

Posted: Fri Mar 20, 2020 6:36 pm
by shudson310
I figured it out:

Code: Select all

/* The dotted line between the topic name and the page number. */
*[class~="chapter/minitoc-links"] *[class~="topic/link"] a:after {
    content: leader('.') target-counter(attr(href), page) !important;
}
Just had to look at that merged-html a little more closely!

Re: Generate chapter minitoc

Posted: Fri Mar 20, 2020 6:45 pm
by julien_lacour
Hello,

As you surely noticed, your example did not work because of this selector:

Code: Select all

*[class~="chapter/minitoc-links"] *[class~="topic/link"]:after {
	display:none;
}
But it works by moving the selector on the <a> element like you did.

Regards,
Julien