Page 1 of 1

Problem with TOC in PDF

Posted: Wed Feb 09, 2011 11:09 pm
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

Re: Problem with TOC in PDF

Posted: Thu Feb 10, 2011 1:41 pm
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

Re: Problem with TOC in PDF

Posted: Thu Feb 10, 2011 3:51 pm
by Boreas
thank you, it solved the problem.
:D

Re: Problem with TOC in PDF

Posted: Tue Sep 20, 2011 4:51 pm
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

Re: Problem with TOC in PDF

Posted: Wed Sep 21, 2011 10:37 am
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