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@xs4all.nl>
Subject: new upload: --secure and 'dk' unit
Date: Sun, 26 Sep 2021 17:27:53 +0200 [thread overview]
Message-ID: <2aaf1c26-257a-b19c-45e6-efc627bdb3d4@xs4all.nl> (raw)
Hi,
I uploaded a new version. The lmtx installer should now accept --secure
(but one has to update the installation script) in which case curl is
used when available on the system.
There are no other chnages apart from the outrcome of an 'extension
evening session' we had last week:
/*tex
We support the Knuthian Potrzebie cf.\ \url
{https://en.wikipedia.org/wiki/Potrzebie} as |dk|
unit. It was added 2021-09-22 exactly when we crossed the season
during a evening session at
the 15th \CONTEXT\ meeting in Bassenge (Boirs) Belgium. It took a
few iterations to find the
best numerator and denominator, but Taco Hoekwater, Harald Koenig
and Mikael Sundqvist figured
it out in this interactive session. The error messages have been
adapted accordingly and the
scanner in the |tex| library also handle it. One |dk| is 6.43985pt.
There is no need to make
\METAPOST\ aware of this unit because there it is just a numeric
multiplier in a macro package.
From Wikipedia:
In issue 33, Mad published a partial table of the \quotation
{Potrzebie System of Weights and
Measures}, developed by 19-year-old Donald E. Knuth, later a famed
computer scientist. According
to Knuth, the basis of this new revolutionary system is the
potrzebie, which equals the thickness
of Mad issue 26, or 2.2633484517438173216473 mm [...].
*/
This is a follow up of a suggestion by Hraban (on the meeting attendents
list): a new unit. We have 'sp' for an unscaled unit (kind of the
internal one, also used at the lua end), 'ex', 'em', 'px' as relative
units (the handy ones), 'mu' for math (sort of relative and adaptive
too), which leaves 'cm', 'mm' (popular and valid SI), 'pt' (natural to
typesetting), 'bp' (related to postscript and pdf, the unit that
competing-to-tex programs use), 'dd' and 'cc' (for Tomas Hala), 'in'
(for stubborn non SI users) and now also 'dk' (for Don Knuth fans).
So, Hraban (who organizes next year meeting) can now do:
\setupbodyfont[dejavu,1dk]
\starttext
1dk = \the\dimexpr1dk = \the\dimexpr2.2633484mm
{\definedfont[Mono*none @ 6pt]test}
{\definedfont[Mono*none @ 1dk]test}
\stoptext
And in case one wonders: this few line addition doesn't harm performance.
Hans
-----------------------------------------------------------------
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 / 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
___________________________________________________________________________________
reply other threads:[~2021-09-26 15:27 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=2aaf1c26-257a-b19c-45e6-efc627bdb3d4@xs4all.nl \
--to=ntg-context@ntg.nl \
--cc=j.hagen@xs4all.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).