ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] right and left arrowfill
@ 2023-06-21 20:10 Hans van der Meer via ntg-context
  2023-06-22 13:11 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 8+ messages in thread
From: Hans van der Meer via ntg-context @ 2023-06-21 20:10 UTC (permalink / raw)
  To: NTG ConTeXt; +Cc: Hans van der Meer


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-06-23 14:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-21 20:10 [NTG-context] right and left arrowfill Hans van der Meer via ntg-context
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

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).