-
How can I force line-break for the tableofcontents? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
That's a bug actually, due to the fact that PDF links (in which we wrap ToC entries) cannot be line-broken yet in SILE... sile-typesetter/sile#1239 (tentative PR sile-typesetter/sile#1334) So currently, the ToC line will overflow the page as observed, if PDF links are enabled. A fix for this issue is not fully sufficient (we'd still have to reserve the space for the page number, i.e. to break line at an earlier point that the frame edge), but for now, until it gets a solution, I've refrained considering it. In other terms, disabling PDF linking ( |
Beta Was this translation helpful? Give feedback.
That's a bug actually, due to the fact that PDF links (in which we wrap ToC entries) cannot be line-broken yet in SILE...
sile-typesetter/sile#1239 (tentative PR sile-typesetter/sile#1334)
So currently, the ToC line will overflow the page as observed, if PDF links are enabled.
A fix for this issue is not fully sufficient (we'd still have to reserve the space for the page number, i.e. to break line at an earlier point that the frame edge), but for now, until it gets a solution, I've refrained considering it.
In other terms, disabling PDF linking (
\tableofcontents[linking=true]
) will somewhat work, but is not perfect either.