> Am 06.03.2015 um 20:02 schrieb Hans Hagen <pra...@wxs.nl>: > > On 3/6/2015 6:42 PM, Fabrice Couvreur wrote: >> >> Hi, >> Is it possible to change the shape of the dots of macro \periods[n] to >> be like the dots of macro \definefiller[dots][left=\dontleavehmode, >> right=\hskip\ZeroPoint\par] ? > > % in cont-new.mkiv : > > \unprotect > > \def\periodsymbol {.} > > \unexpanded\def\enco_periods[#1]% > {\dontleavehmode > \hbox\bgroup > \enco_periods_indeed[#1,\periodsymbol,]} > > \unexpanded\def\enco_periods_indeed[#1,#2,#3]% > {\setbox\scratchbox\hbox to \periodswidth{\hss#2\hss}% > \dorecurse{\iffirstargument#1\else\periodsdefault\fi}{\copy\scratchbox}% > \egroup} > > \protect > > test: > > \starttext > \startlines > x\periods x > x\periods[10]x > x\periods[10,{,}]x > x\periods[10,{!}]x > \stoplines > \stoptext
Why the weird syntax, something like \periods[n=10,symbol=!] would fit better. Wolfgang ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________