Problem with TOC in PDF

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Boreas
Posts: 86
Joined: Wed Feb 09, 2011 10:43 pm

Problem with TOC in PDF

Post by Boreas »

Hello,
When I generate a PDF from a Dita map, some topic titles displayed in the TOC are too long to fit on one line. I end up with the text of the long title overlapping the next line. The TOC becomes unreadable. Is there a way to force a line brake in the TOC when there is to much text to be displayed on one line?


Thanks
Radu
Posts: 9447
Joined: Fri Jul 09, 2004 5:18 pm

Re: Problem with TOC in PDF

Post by Radu »

Hi,

In the OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/xsl/fo/toc.xsl XSLT stylesheet there is a:
<fo:inline xsl:use-attribute-sets="__toc__title"......

Just remove the keep-together.within-line="always" attribute.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Boreas
Posts: 86
Joined: Wed Feb 09, 2011 10:43 pm

Re: Problem with TOC in PDF

Post by Boreas »

thank you, it solved the problem.
:D
Boreas
Posts: 86
Joined: Wed Feb 09, 2011 10:43 pm

Re: Problem with TOC in PDF

Post by Boreas »

Hello,

The long line in the TOC breaks properly but it is not aligned with the first part of the line. How can I get it to be properly aligned on the left side.

Best Regards

Carole
Radu
Posts: 9447
Joined: Fri Jul 09, 2004 5:18 pm

Re: Problem with TOC in PDF

Post by Radu »

Hi Carole,

I do not really know, maybe you can look in the XSL-FO specification to see what attributes can be set on a "fo:bookmark-title" element, maybe one of them will do the trick.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply