At 06:29 PM 11/15/2001 +0100, Tobias Burnus wrote:
>Hallo,
>
> > >I want to ask, if there exists something in ConTeXt like the \sloppy 
> command
> > >from LaTeX.
> > \def\sloppy{What is this command supposed to do?}
>
>
>\def\sloppy{%
>   \tolerance 9999%
>   \emergencystretch 3em%
>   \hfuzz .5\p@
>   \vfuzz\hfuzz}
>
>\def\sloppypar{\par\sloppy}
>
>\def\endsloppypar{\par}

So that's in context:

\unprotected \def\startsloppy
   {\endgraf
    \bgroup
    \setuptolerance[\v!zeersoepel,\v!rek]%
    \dontcomplain}

\unprotected \def\stopsloppy
   {\endgraf
    \egroup}


\hsize 4cm \startsloppy \input tufte \stopsloppy

or nicer with optional arg:

\unprotect

\definecomplesorsimple\startsloppy

\def\simplestartsloppy{\complexstartsloppy[\v!zeersoepel,\v!rek]}

\def\complexstartsloppy[#1]%
   {\endgraf
    \bgroup
    \setuptolerance[#2]%
    \dontcomplain}

\def\stopsloppy%
   {\endgraf
    \egroup}

\protect

maybe we need a module goodies -)
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------

Reply via email to