-
How can I force line-break for the tableofcontents? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 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.
-
For the record, note that since version 2.3.0, re·sil·ient supports multi-line links (and this became standard too in SILE 0.15), so the above "workaround" disabling links in the ToC should not be necessary any longer, i.e. one would now get line-breaks instead of an entry running "off the typeblock". (The more general discussion on how multi-line ToC entries should eventually show is not addressed fully) |
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.