ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: [NTG-context] dirty tricks
Date: Sun, 28 May 2023 23:01:05 +0200	[thread overview]
Message-ID: <8c44e51b-75fc-2718-3777-249b7a3d6733@freedom.nl> (raw)

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
___________________________________________________________________________________

                 reply	other threads:[~2023-05-28 21:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8c44e51b-75fc-2718-3777-249b7a3d6733@freedom.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@freedom.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).