[NTG-context] Define a new command from the command \periods[n]

luigi scarso luigi.scarso at gmail.com
Tue May 20 10:47:01 CEST 2014


On Tue, May 20, 2014 at 10:30 AM, Fabrice Couvreur <
fabrice1.couvreur at 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


-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20140520/2929ad89/attachment.html>


More information about the ntg-context mailing list