Changes

Jump to navigation Jump to search
714 bytes added ,  12:26, 14 September 2017
add link to \startTEXpage
== Cropping text ==
There are some rare cases in which it is useful to crop truncate a givenline of text line and loose part discard some of its informationit.
=== <tt>\doboundtext</tt> ===
|<context>\ss\x\limitatefirstline{\underbar{In a bar, under the sea}}{31mm}{...}</context>
|}
 
== Fitting text ==
You can fit text into a box by:
 
<texcode>
\def\HowStrange#1{#1\ifx#1\blankspace\else\allowbreak\fi}
 
\framed
[width=2cm,align={normal,verytolerant,stretch}]
{\handletokens There are some rather long titles that needs to be typeset.\with\HowStrange}
</texcode>
 
<context>
\def\HowStrange#1{#1\ifx#1\blankspace\else\allowbreak\fi}
 
\framed
[width=2cm,align={normal,verytolerant,stretch}]
{\handletokens There are some rather long titles that needs to be typeset.\with\HowStrange}
</context>
 
There is also similar facility for verbatim text in [[Verbatim_with_line_breaks]] section.
 
== See also ==
 
* If you meant to crop a page ''to'' some text, see {{cmd|startTEXpage}}
 
{{Getting started navbox}}

Navigation menu