ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans van der Meer via ntg-context <ntg-context@ntg.nl>
To: NTG ConTeXt <ntg-context@ntg.nl>
Cc: Hans van der Meer <havdmeer@ziggo.nl>
Subject: [NTG-context] right and left arrowfill
Date: Wed, 21 Jun 2023 22:10:45 +0200	[thread overview]
Message-ID: <6CEDB285-1A7B-4614-810C-CBD6379240FF@ziggo.nl> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 360 bytes --]

A few days ago I drew attention to the fact that \rightarrowfill and \leftarrowfill are broken in the latest ConTeXt. Imho that should not happen with basic TeX macro's.
Although one can recreate their definitions from the TeX-book (see the MWE attached), I still do not understand why it should be needed.

yours sincerely
dr. Hans van der Meer

 

[-- Attachment #1.2.1: Type: text/html, Size: 906 bytes --]

[-- Attachment #1.2.2: hboxarrowfill.tex --]
[-- Type: application/octet-stream, Size: 1014 bytes --]

\setupbodyfont[lmodern,10pt]
\starttext
Test \type{\rightarrowfill} and \type{\leftarrowfill}
\blank
\ConTeXt\ \contextversion
\blank
dotfill [\hbox to\textwidth{\dotfill}]
\blank
dotfill [\hbox to5cm{\dotfill}]
\blank
rightarrowfill [\hbox to5cm{\rightarrowfill}]
\blank
leftarrowfill [\hbox to5cm{\leftarrowfill}]
\blank
\blank
hrulefill [\hbox to5cm{\hrulefill}]
\blank
rightarrowfill = \meaning\rightarrowfill
\blank
leftarrowfill = \meaning\leftarrowfill
\blank
Redefine tex{rightarrowfill} from the \TeX-book p.357
\crlf
\def\rightarrowfill{$\mathsurround=\zeropoint \mathord- \mkern-6mu
	\cleaders\hbox{$\mkern-2mu \mathord- \mkern-2mu$}\hfill
	\mkern-6mu \mathord\rightarrow$}
rightarrowfill [\hbox to5cm{\rightarrowfill}]
\blank
Redefine tex{leftarrowfill} from the \TeX-book p.357
\def\leftarrowfill{$\mathsurround=\zeropoint \mathord\leftarrow \mkern-6mu
	\cleaders\hbox{$\mkern-2mu \mathord- \mkern-2mu$}\hfill
	\mkern-6mu \mathord-$}
\crlf
leftarrowfill [\hbox to5cm{\leftarrowfill}]
\blank
\stoptext

[-- Attachment #1.2.3: Type: text/html, Size: 212 bytes --]

[-- Attachment #1.2.4: hboxarrowfill.pdf --]
[-- Type: application/pdf, Size: 15253 bytes --]

[-- Attachment #1.2.5: Type: text/html, Size: 212 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
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-06-21 20:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-21 20:10 Hans van der Meer via ntg-context [this message]
2023-06-22 13:11 ` Hans Hagen via ntg-context
2023-06-22 13:32   ` Hans van der Meer via ntg-context
2023-06-22 15:38     ` Hans Hagen via ntg-context
2023-06-23 10:43     ` Carlos via ntg-context
2023-06-23 11:38       ` Hans Hagen via ntg-context
2023-06-23 13:21         ` Carlos via ntg-context
2023-06-23 14:12           ` Hans Hagen via ntg-context

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=6CEDB285-1A7B-4614-810C-CBD6379240FF@ziggo.nl \
    --to=ntg-context@ntg.nl \
    --cc=havdmeer@ziggo.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).