keep text strictly inside box
![](https://secure.gravatar.com/avatar/be49110e195f5eac47c04570251121c1.jpg?s=120&d=mm&r=g)
As can be seen in this screenshot, the text overshoots on the right side the boundary of the fairly narrow \framedtext. My intent is to not hyphenate the names, even if that means a ragged edge on the right side. But at the same time the text must absolutely stay within the confines of the framedtext. I played with \raggedright, \tolerance, \looseness, \emergencystretch but no combination of them seems sufficient fto force all gtext inside. Is there another solution to force the text inside the box or do I have to insert linebreaks manually (a nuisance to be avoided, of course.) dr. Hans van der Meer
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
Hans van der Meer schrieb am 07.06.2021 um 22:57:
As can be seen in this screenshot, the text overshoots on the right side the boundary of the fairly narrow \framedtext. My intent is to not hyphenate the names, even if that means a ragged edge on the right side. But at the same time the text must absolutely stay within the confines of the framedtext. I played with \raggedright, \tolerance, \looseness, \emergencystretch but no combination of them seems sufficient fto force all gtext inside.
Is there another solution to force the text inside the box or do I have to insert linebreaks manually (a nuisance to be avoided, of course.)
Use the align key. \starttext \startframedtext[width=10cm,align={flushleft,nothyphenated}] Martinus, zoon van Johannes van Zonnevelt en Johanna Teikenbort: getuigen Adrianus van Zonnevelt en Anna van Oostbroek. \stopframedtext \stoptext Wolfgang
![](https://secure.gravatar.com/avatar/d4db251f6da966f841fc5b1a9822eb56.jpg?s=120&d=mm&r=g)
On 7 Jun 2021, at 23:07, Wolfgang Schuster
wrote: Use the align key.
\starttext
\startframedtext[width=10cm,align={flushleft,nothyphenated}]
Also, ‘verytolerant’ helps:
align={flushleft,nothyphenated,verytolerant}]
Best wishes, Taco
Martinus, zoon van Johannes van Zonnevelt en Johanna Teikenbort: getuigen Adrianus van Zonnevelt en Anna van Oostbroek. \stopframedtext
\stoptext
Wolfgang ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
Taco Hoekwater schrieb am 08.06.2021 um 08:42:
On 7 Jun 2021, at 23:07, Wolfgang Schuster
wrote: Use the align key.
\starttext
\startframedtext[width=10cm,align={flushleft,nothyphenated}] Also, ‘verytolerant’ helps:
align={flushleft,nothyphenated,verytolerant}]
Another option is to add‘broad’ when you have ragged or centered text, e.g. align={flushleft,broad,nothyphenated} Wolfgang
participants (3)
-
Hans van der Meer
-
Taco Hoekwater
-
Wolfgang Schuster