Changes

Jump to navigation Jump to search
Add disabling hyphenation section
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>definebreakpoint</syntax>
== [[Help:Reference|Syntax]] ==
An illustration of a custom breakpoint of type 5:
<texcodecontext source="yes">
\definebreakpoints[test]
\starttext \showframe
xxxx?xxxx?xxxx?xxxx?xxxx?xxxx?xxxx?xxxx\par
\stoptext
</context>
 
== More Examples ==
 
=== Hyphenate at any character ===
 
In some cases, you might need not to break at a hyphen or other breakpoint, but don't have a chance to put {{cmd|unhyphenated}} explicitly. In this case, you may omit the second argument and activate the following breakpoint set instead.
 
<texcode>
\define[2]\mycommand{
\startxrow
\startxcell cmd #1 \stopxcell
\startxcell #2 \stopxcell
\stopxrow
}
\starttext
 
\setupxtable[width=5cm]
\startxtable
\mycommand{A}{lsfkgjfk-gshgkhigewhgajkdkfkalhfdklahfkhaakfakfh}
\stopxtable
 
Now setting no specific breakpoint character set:
 
\definebreakpoint[mybreaks][][type=1]
\setbreakpoints[mybreaks]
 
\setupxtable[width=5cm]
\startxtable
\mycommand{A}{lsfkgjfk-gshgkhigewhgajkdkfkalhfdklahfkhaakfakfh}
\stopxtable
 
\stoptext
</texcode>
57

edits

Navigation menu