Generate chapter minitoc

Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
shudson310
Posts: 156
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

Generate chapter minitoc

Post by shudson310 »

Does Chemistry support the minitoc like the standard PDF OT transform? If so, how do we enable it?
Scott Hudson
Staff Content Engineer
Site: docs.servicenow.com
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: Generate chapter minitoc

Post 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
Costin Sandoi
oXygen XML Editor and Author Support
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: Generate chapter minitoc

Post 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
Costin Sandoi
oXygen XML Editor and Author Support
shudson310
Posts: 156
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

Re: Generate chapter minitoc

Post 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.
Scott Hudson
Staff Content Engineer
Site: docs.servicenow.com
julien_lacour
Posts: 496
Joined: Wed Oct 16, 2019 3:47 pm

Re: Generate chapter minitoc

Post 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
shudson310
Posts: 156
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

Re: Generate chapter minitoc

Post 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.
Scott Hudson
Staff Content Engineer
Site: docs.servicenow.com
shudson310
Posts: 156
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

Re: Generate chapter minitoc

Post 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?
Scott Hudson
Staff Content Engineer
Site: docs.servicenow.com
shudson310
Posts: 156
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

Re: Generate chapter minitoc

Post 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!
Scott Hudson
Staff Content Engineer
Site: docs.servicenow.com
julien_lacour
Posts: 496
Joined: Wed Oct 16, 2019 3:47 pm

Re: Generate chapter minitoc

Post 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
Post Reply