Am 20.05.2014 um 10:47 schrieb luigi scarso <luigi.sca...@gmail.com>:

> 
> 
> 
> On Tue, May 20, 2014 at 10:30 AM, Fabrice Couvreur 
> <fabrice1.couvr...@gmail.com> wrote:
> Hi, 
> Is it possible to redefine the command \periods[n] to have a line that goes 
> from the end of the word to the edge of the page without having to play on 
> the number n ? 
> Regards, 
> Fabrice
> 
> \starttext
> \startitemize[a][stopper=),style=bold]
> \item $x\mapsto -x^2+x+1$ : \periods[66]
> \item $x\mapsto 2x^3+4x-7$ : \periods[65]
> \item $x\mapsto x^2-3$ : \periods[70]
> \item $x\mapsto \frac{x^2+x}2$ : \periods[72]
> \item $x\mapsto (x-2)^2$ : \periods[69]
> \stopitemize
> \stoptext
> 
> 
> 
> They are called leaders
> http://tex.stackexchange.com/questions/38423/want-to-fill-line-with-repeating-string
> 
> \showframe
> \starttext
> \startitemize[a][stopper=),style=bold]
> \item $x\mapsto -x^2+x+1$ : \leavevmode\xleaders\hbox{.}\hfill\kern0pt 
> %\periods[66]
> \item $x\mapsto 2x^3+4x-7$ : \periods[65]
> \item $x\mapsto x^2-3$ : \periods[70]
> \item $x\mapsto \frac{x^2+x}2$ : \periods[72]
> \item $x\mapsto (x-2)^2$ : \periods[69]
> \stopitemize
> \stoptext

ConTeXt has a user level interface for leaders which is called \filler.

\definefiller[dots][right=\hskip\zeropoint]

\starttext
text \filler[dots]
\stoptext

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
___________________________________________________________________________________

Reply via email to