Composed words: a simple way without a global replacement to |-|?
Dear list, today I was reviewing the hyphenation and stumbled on the composed word problem, as explained at http://wiki.contextgarden.net/Composed_words and in the ref-manual. Now, the trivial question sounds: is there a way to say to TeX "hey, consider the hyphen inside words a good breakpoint"? If not, I'm going to do a global replacement of ([a-z])-([a-z]) to $1|-|$2 , but somehow I feel I'm doing this wrong (because this will harm to the readability of the source). Any idea? Thanks in advance. -- Marco
Am 27.11.2010 um 16:35 schrieb Marco Pessotto:
Dear list,
today I was reviewing the hyphenation and stumbled on the composed word problem, as explained at http://wiki.contextgarden.net/Composed_words and in the ref-manual.
Now, the trivial question sounds: is there a way to say to TeX "hey, consider the hyphen inside words a good breakpoint"?
For MkIV you can add „\setbreakpoints[compound]“ to your document. Wolfgang
Wolfgang Schuster
Am 27.11.2010 um 16:35 schrieb Marco Pessotto:
Dear list,
today I was reviewing the hyphenation and stumbled on the composed word problem, as explained at http://wiki.contextgarden.net/Composed_words and in the ref-manual.
Now, the trivial question sounds: is there a way to say to TeX "hey, consider the hyphen inside words a good breakpoint"?
For MkIV you can add „\setbreakpoints[compound]“ to your document.
Thanks a lot, you saved my day. I've added the solution to http://wiki.contextgarden.net/Composed_words -- Marco
participants (3)
-
Marco
-
Marco Pessotto
-
Wolfgang Schuster