* keep text strictly inside box
@ 2021-06-07 20:57 Hans van der Meer
2021-06-07 21:07 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Hans van der Meer @ 2021-06-07 20:57 UTC (permalink / raw)
To: NTG ConTeXt
[-- Attachment #1.1: Type: text/plain, Size: 626 bytes --]
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
[-- Attachment #1.2.1: Type: text/html, Size: 2058 bytes --]
[-- Attachment #1.2.2: Screenshot 2021-06-07 at 22.33.26.png --]
[-- Type: image/png, Size: 35263 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: keep text strictly inside box
2021-06-07 20:57 keep text strictly inside box Hans van der Meer
@ 2021-06-07 21:07 ` Wolfgang Schuster
2021-06-08 6:42 ` Taco Hoekwater
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2021-06-07 21:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: keep text strictly inside box
2021-06-07 21:07 ` Wolfgang Schuster
@ 2021-06-08 6:42 ` Taco Hoekwater
2021-06-08 20:47 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2021-06-08 6:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
> On 7 Jun 2021, at 23:07, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: keep text strictly inside box
2021-06-08 6:42 ` Taco Hoekwater
@ 2021-06-08 20:47 ` Wolfgang Schuster
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2021-06-08 20:47 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
[-- Attachment #1.1: Type: text/plain, Size: 469 bytes --]
Taco Hoekwater schrieb am 08.06.2021 um 08:42:
>> On 7 Jun 2021, at 23:07, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> 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
[-- Attachment #1.2: Type: text/html, Size: 1095 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-06-08 20:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-07 20:57 keep text strictly inside box Hans van der Meer
2021-06-07 21:07 ` Wolfgang Schuster
2021-06-08 6:42 ` Taco Hoekwater
2021-06-08 20:47 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).