* [NTG-context] dirty tricks
@ 2023-05-28 21:01 Hans Hagen via ntg-context
0 siblings, 0 replies; only message in thread
From: Hans Hagen via ntg-context @ 2023-05-28 21:01 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
Hi,
Here is a new dirty trick:
\starttext
% we make sure that we get two passes.
\setupalign[verytolerant]
% we enable some tracing
\tracinglousiness1
% \tracinglousiness2
this gives the breakpoints that tex considers as it progresses
\hsize8cm \lousiness 0 \samplefile{ward}
% let's see what their demerits are
{\tt \the\lousiness}
% and overload one of them (index 11)
\hsize8cm \silliness 11 \samplefile{ward}
% do how about overloading more (index 11 and 8)
\hsize8cm \lousiness 2 11 0 8 200 \samplefile{ward}
\stoptext
As the names suggest, it's a bit weird feature but so is \looseness. It
might evolve from playground into some interfaced feature. Of course
changing the text gives different results. But then, \looseness also
assumes a stable paragraph.
Hans
(a byproduct of more advanced experiments)
-----------------------------------------------------------------
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://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-28 21:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-28 21:01 [NTG-context] dirty tricks Hans Hagen via ntg-context
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).