Line wrapping inconsistency with tolerance, alignment and framed
![](https://secure.gravatar.com/avatar/13bc5842f0b785acdb8f02c38b78439d.jpg?s=120&d=mm&r=g)
Hi, I have an (admittedly carefully crafted) example, see below. My question: Why is the line wrapping different for this case within a framed and outside of a framed? How can I control the amount of space left on a line before breaking the line within and without a framed consistently? Any insight is welcome. Christoph MWE: \setuptolerance[horizontal,stretch,verytolerant] \defineframed[myframe][align=flushleft,frame=off,offset=0pt] \starttext \def\super{supercalifragilisticexpialidoc} \startalignment[flushleft] \unhyphenated{\super\ + \super\ + \super\ + \super} \stopalignment \myframe{\unhyphenated{\super\ + \super\ + \super\ + \super}} \stoptext
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Christoph Reller mailto:christoph.reller@gmail.com 18. Juni 2015 16:25 Hi,
I have an (admittedly carefully crafted) example, see below. My question: Why is the line wrapping different for this case within a framed and outside of a framed? How can I control the amount of space left on a line before breaking the line within and without a framed consistently?
Any insight is welcome.
Christoph
MWE:
\setuptolerance[horizontal,stretch,verytolerant] \defineframed[myframe][align=flushleft,frame=off,offset=0pt]
\starttext
\def\super{supercalifragilisticexpialidoc} \startalignment[flushleft] \unhyphenated{\super\ + \super\ + \super\ + \super} \stopalignment
\myframe{\unhyphenated{\super\ + \super\ + \super\ + \super}}
\stoptext The frame resets the tolerance settings and you have to set the values again for it.
\defineframed[myframe][align={flushleft,stretch,verytolerant},offset=0pt] BTW: You can also disable hyphentation with the “nothyphenated” keyword for \setupalign (and the align key). \starttext \startalignment[flushleft,stretch,verytolerant,nothyphenated] supercalifragilisticexpialidoc + supercalifragilisticexpialidoc + supercalifragilisticexpialidoc + supercalifragilisticexpialidoc \stopalignment \startframed[align={flushleft,stretch,verytolerant,nothyphenated}] supercalifragilisticexpialidoc + supercalifragilisticexpialidoc + supercalifragilisticexpialidoc + supercalifragilisticexpialidoc \stopframed \stoptext Wolfgang
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 6/18/2015 4:25 PM, Christoph Reller wrote:
Hi,
I have an (admittedly carefully crafted) example, see below. My question: Why is the line wrapping different for this case within a framed and outside of a framed? How can I control the amount of space left on a line before breaking the line within and without a framed consistently?
Any insight is welcome.
alignment settings are local in a framed (and similar cases) \defineframed[myframe][align={flushleft,horizontal,stretch,verytolerant},frame=off,offset=overlay]
Christoph
MWE:
\setuptolerance[horizontal,stretch,verytolerant] \defineframed[myframe][align=flushleft,frame=off,offset=0pt]
\starttext
\def\super{supercalifragilisticexpialidoc} \startalignment[flushleft] \unhyphenated{\super\ + \super\ + \super\ + \super} \stopalignment
\myframe{\unhyphenated{\super\ + \super\ + \super\ + \super}}
\stoptext
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Christoph Reller
-
Hans Hagen
-
Wolfgang Schuster