\setbreakpoints[compound] with numbers
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.) Best, Denis
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} ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
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.
participants (2)
-
Denis Maier
-
Hans Hagen