18 Sep
2020
18 Sep
'20
8:20 a.m.
Am 17.09.2020 um 19:07 schrieb Hans Hagen:
On 9/17/2020 4:54 PM, Denis Maier wrote:
Hi,
In the texts I'm currently typesetting, I occassionaly have to deal with ISBNs. So, e.g. 978-3-123456-78-9
\setbreakpoints[compound] does not enable automatic linebreaks after or before the hyphens. Is there a way to deal with this? Perhaps something similar like \hyphenatedurl{} or an extended version of \setbreakpoints.
(I currently use zero-width spaces, so I got rid of ISBNs in the margins, but a more automatic solution would be great.)
\unexpanded\def\isbnnumber#1% {\cldcontext{string.gsub("#1","-","\\automaticdiscretionary")}}
\hsize 1mm \isbnnumber{123-456}
Thanks.