Difference between revisions of "Command/definebreakpoint"

From Wiki
Jump to navigation Jump to search
(Created page with "{{Reference |name={{subst:SUBPAGENAME}} |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd...")
 
Line 52: Line 52:
  
 
== Description ==  
 
== Description ==  
{{cmd|definebreakpoint|1=[''setname''][?][...=...]}} defines a breakpoint at {{code|?}}, and makes it a member of a set that can be activated with {{cmd|setupbreakpoints|[''setname'']}}. The set must be initialized with {{cmd|definebreakpoints|[''setname'']}}.
+
{{cmd|definebreakpoint|2=[''setname''][?][...=...]}} defines a breakpoint at {{code|?}}, and makes it a member of a set that can be activated with {{cmd|setupbreakpoints|[''setname'']}}. The set must be initialized with {{cmd|definebreakpoints|[''setname'']}}.
  
 
== Example ==
 
== Example ==

Revision as of 18:39, 20 April 2013

\definebreakpoint

Syntax

\definebreakpoint[...][...][...=...]
[...] name of breakpoint set to add to
[...] character at which to break
language two-letter code: language for which this breakpoint applies
nleft number: minimal characters to left to allow breaking' here'
nright number: minimal characters to right to allow breaking here
type ???
middle ???
left ???
right ???

Description

\definebreakpoint[setname][?][...=...] defines a breakpoint at ?, and makes it a member of a set that can be activated with \setupbreakpoints[setname]. The set must be initialized with \definebreakpoints[setname].

Example

This is how the compound breakpoint set is defined in typo-brk.mkiv

\definebreakpoint [compound] [+] [nleft=3,nright=3,type=1]
\definebreakpoint [compound] [-] [nleft=3,nright=3,type=1]
\definebreakpoint [compound] [/] [nleft=3,nright=3,type=1]
\definebreakpoint [compound] [(] [nleft=3,nright=3,type=2]
\definebreakpoint [compound] [)] [nleft=3,nright=3,type=3]

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: