Changes

Jump to navigation Jump to search
503 bytes added ,  08:11, 8 September 2005
m
argument (<tt>sentinel</tt>) is appended. As much text as possible is printed.
An example:
<texcode>
\framed{\doboundtext{My entire inheritance goes to my beloved cat Pussy!}{62mm70mm}{...}}
</texcode>
 
and it's result
<context>
\framed{\doboundtext{My entire inheritance goes to my beloved cat Pussy!}{62mm70mm}{...}}
</context>
<texcode>
\framed{\limitatetext {Pussy is the name of the cat!}{50mm}{...}}\par\framed{\limitatetext {Pussy is the name of the cat!}{-50mm}{...}}
</texcode>
 
leads to
<context>
\framed{\limitatetext {Pussy is the name of the cat!}{50mm}{...}}\par\framed{\limitatetext {Pussy is the name of the cat!}{-50mm}{...}}
</context>
Both commands have their range of application.
<tt>\limitatetext</tt> is more robust(using grouping tokens like<tt>\underbar</tt> is possible), while <tt>\doboundtext</tt> worksbetterbetter on text that cannot be hyphenated. In ConTeXt versions newer than 07.09.2005 there is also a commandcalled <tt>\limitatefirstline</tt>, which acts like <tt>\doboundtext</tt>,but at a more robust level.
TODO<texcode>\limitatefirstline {text} {width} {sentinel}</texcode> Example:  <texcode>\limitatefirstline {\underline{The gardens version of \CONTEXT is too old.}{65mm}{\unknown}</texcode> <ttcontext>\limitatefirstline{\underline{The gardens version of \CONTEXT is too old.}}{65mm}{\unknown}</ttcontext>
37

edits

Navigation menu