Generate chapter minitoc

shudson310
Posts: 142
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

Generate chapter minitoc

Post by shudson310 » Wed Jun 27, 2018 5:12 pm

Does Chemistry support the minitoc like the standard PDF OT transform? If so, how do we enable it?
Scott Hudson
Staff Content Engineer
Site: servicenow.com

Costin
Posts: 700
Joined: Mon Dec 05, 2011 6:04 pm

Re: Generate chapter minitoc

Post by Costin » Thu Jun 28, 2018 10:46 am

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
Costin Sandoi
oXygen XML Editor and Author Support

Costin
Posts: 700
Joined: Mon Dec 05, 2011 6:04 pm

Re: Generate chapter minitoc

Post by Costin » Tue Apr 09, 2019 4:05 pm

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
Costin Sandoi
oXygen XML Editor and Author Support

shudson310
Posts: 142
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

Re: Generate chapter minitoc

Post by shudson310 » Thu Mar 19, 2020 7:52 pm

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.
Scott Hudson
Staff Content Engineer
Site: servicenow.com

julien_lacour
Posts: 102
Joined: Wed Oct 16, 2019 3:47 pm

Re: Generate chapter minitoc

Post by julien_lacour » Fri Mar 20, 2020 10:30 am

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

shudson310
Posts: 142
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

Re: Generate chapter minitoc

Post by shudson310 » Fri Mar 20, 2020 5:48 pm

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.
Scott Hudson
Staff Content Engineer
Site: servicenow.com

shudson310
Posts: 142
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

Re: Generate chapter minitoc

Post by shudson310 » Fri Mar 20, 2020 6:28 pm

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?
Scott Hudson
Staff Content Engineer
Site: servicenow.com

shudson310
Posts: 142
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

Re: Generate chapter minitoc

Post by shudson310 » Fri Mar 20, 2020 6:36 pm

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!
Scott Hudson
Staff Content Engineer
Site: servicenow.com

julien_lacour
Posts: 102
Joined: Wed Oct 16, 2019 3:47 pm

Re: Generate chapter minitoc

Post by julien_lacour » Fri Mar 20, 2020 6:45 pm

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

Post Reply