1,318 bytes added
, 17:35, 20 April 2013
When a word extends beyond the end of a line, it can be broken in the middle and written on two lines, with a hyphen to indicate the breakoff. This is called '''hyphenation'''. ConTeXt has a great many facilities for dealing with hyphenation, both automatically and manually; they are gathered on this page.
=== Change the hyphenation language ===
Use {{cmd|language|[de]}}. NB: this will also alter the marks used for {{cmd|quotation}}, etc.
=== Allow breaking at existing hyphens ===
To allow breaking at hyphens, slashes, etc., write {{cmd|setbreakpoints|[compound]}} at the start of your document.
=== Specify a manual breakpoint globally ===
Write {{cmd|hyphenation|{po-ly-syl-lab-ic}|}} at the start of your document. (This will not be remembered across documents.)
=== Specify a manual breakpoint locally ===
Use the {{cmd|-}} command. {{code|poly\-syllabic}}.
=== Prevent hyphenation locally ===
FIXME.
=== Tune the auto-hyphenation algorithm ===
Use the [[Command/setupalign#Nicer_justification_and_microtypography|{{cmd|setupalign|link=no}}]] parameters concerning justification and hyphenation.
=== Penalize consecutive hyphens ===
To penalize hyphens on consecutive lines, set {{tex|doublehyphendemerits}}. Its default value is 10000; to double that, write {{code|1=\doublehyphendemerits=20000}}.