* [NTG-context] line breaks within *section title
@ 2025-06-14 7:46 Damien Thiriet via ntg-context
2025-06-14 8:32 ` [NTG-context] " Pablo Rodriguez via ntg-context
2025-06-14 8:35 ` Hans Hagen
0 siblings, 2 replies; 3+ messages in thread
From: Damien Thiriet via ntg-context @ 2025-06-14 7:46 UTC (permalink / raw)
To: ntg-context; +Cc: damien
Hi,
My presentations are using the luciole font
(https://luciole-vision.com/), a font designed for eyed-impaired people
and big sizes. It is quite appreciated by my pupils. However, some
titles are overboxed. There is certainly a way to force line break and
avoid such breaks, but I don't know it (although I attended Hans and
Mikael's brilliant speeches about \penalty ).
I designed a MWE reproducing this with Latin Modern Sans.
\setuppapersize [S3]
\setupbodyfont [sans,24pt]
\setupalign[nothyphenated]
\setuptolerance[verytolerant,stretch]
\starttext
\startsection[title={Don't be hyphenated, no overfullboxes}]
\input ward
\stopsection
\stoptext
Thanks,
Damien
PS: For those interested in Luciole, my typescripts:
%\starttypescript [luciole]
% \definefontsynonym [Luciole-Regular] [file:Luciole-Regular]
% \definefontsynonym [Luciole-Italic] [file:Luciole-Regular-Italic]
% \definefontsynonym [Luciole-BoldItalic]
[file:Luciole-Bold-Italic]
% \definefontsynonym [Luciole-Bold] [file:Luciole-Bold]
%\stoptypescript
%
%\starttypescript [luciole]
% \setups [font:fallback:sans]
% \definefontsynonym[Sans] [Luciole-Regular]
[features=default]
% \definefontsynonym[SansItalic] [Luciole-Italic]
[features=default]
% \definefontsynonym[SansBoldItalic] [Luciole-BoldItalic]
[features=default]
% \definefontsynonym[SansBold] [Luciole-Bold]
[features=default]
%\stoptypescript
%
%\starttypescript [luciole]
% \definetypeface [luciole] [ss] [sans] [luciole] [default]
%\stoptypescript
%
%\usetypescriptfile [luciole]
%\setupbodyfont[luciole,sans,24pt]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* [NTG-context] Re: line breaks within *section title
2025-06-14 7:46 [NTG-context] line breaks within *section title Damien Thiriet via ntg-context
@ 2025-06-14 8:32 ` Pablo Rodriguez via ntg-context
2025-06-14 8:35 ` Hans Hagen
1 sibling, 0 replies; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2025-06-14 8:32 UTC (permalink / raw)
To: ntg-context; +Cc: Pablo Rodriguez
On 6/14/25 09:46, Damien Thiriet via ntg-context wrote:
> Hi,
>
> My presentations are using the luciole font
> (https://luciole-vision.com/), a font designed for eyed-impaired people
> and big sizes. It is quite appreciated by my pupils. However, some
> titles are overboxed.
Hi Damien,
`\setuphead[section][align={right, broad}]` may be your friend here
(even without `broad`).
> PS: For those interested in Luciole, my typescripts:
I never created typescripts, since this works fine for me:
\definefontfamily[whatever][rm][Luciole]
\setupbodyfont [whatever,24pt]
Just in case it might help,
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* [NTG-context] Re: line breaks within *section title
2025-06-14 7:46 [NTG-context] line breaks within *section title Damien Thiriet via ntg-context
2025-06-14 8:32 ` [NTG-context] " Pablo Rodriguez via ntg-context
@ 2025-06-14 8:35 ` Hans Hagen
1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2025-06-14 8:35 UTC (permalink / raw)
To: ntg-context
On 6/14/2025 9:46 AM, Damien Thiriet via ntg-context wrote:
> Hi,
>
>
> My presentations are using the luciole font (https://luciole-
> vision.com/), a font designed for eyed-impaired people and big sizes. It
> is quite appreciated by my pupils. However, some titles are overboxed.
> There is certainly a way to force line break and avoid such breaks, but
> I don't know it (although I attended Hans and Mikael's brilliant
> speeches about \penalty ).
just don't justify:
\setuphead[align=flushleft]
> I designed a MWE reproducing this with Latin Modern Sans.
>
> \setuppapersize [S3]
>
>
> \setupbodyfont [sans,24pt]
> \setupalign[nothyphenated]
> \setuptolerance[verytolerant,stretch]
>
> \starttext
> \startsection[title={Don't be hyphenated, no overfullboxes}]
> \input ward
> \stopsection
> \stoptext
>
> Thanks,
>
> Damien
>
> PS: For those interested in Luciole, my typescripts:
>
> %\starttypescript [luciole]
> % \definefontsynonym [Luciole-Regular] [file:Luciole-Regular]
> % \definefontsynonym [Luciole-Italic] [file:Luciole-Regular-Italic]
> % \definefontsynonym [Luciole-BoldItalic] [file:Luciole-Bold-Italic]
> % \definefontsynonym [Luciole-Bold] [file:Luciole-Bold]
> %\stoptypescript
> %
> %\starttypescript [luciole]
> % \setups [font:fallback:sans]
> % \definefontsynonym[Sans] [Luciole-Regular]
> [features=default]
> % \definefontsynonym[SansItalic] [Luciole-Italic]
> [features=default]
> % \definefontsynonym[SansBoldItalic] [Luciole-BoldItalic]
> [features=default]
> % \definefontsynonym[SansBold] [Luciole-Bold]
> [features=default]
> %\stoptypescript
> %
> %\starttypescript [luciole]
> % \definetypeface [luciole] [ss] [sans] [luciole] [default]
> %\stoptypescript
> %
>
> %\usetypescriptfile [luciole]
> %\setupbodyfont[luciole,sans,24pt]
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry
> to the Wiki!
>
> maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/
> ntg-context.ntg.nl
> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___________________________________________________________________________________
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-14 9:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-14 7:46 [NTG-context] line breaks within *section title Damien Thiriet via ntg-context
2025-06-14 8:32 ` [NTG-context] " Pablo Rodriguez via ntg-context
2025-06-14 8:35 ` Hans Hagen
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).