From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Define a new command from the command \periods[n]
Date: Tue, 20 May 2014 14:46:37 +0200 [thread overview]
Message-ID: <4F07AC9D-8B70-4B59-BA35-E7D05F0C1349@gmail.com> (raw)
In-Reply-To: <CAG5iGsDvZwQM9tvutHV27NDY0dJdaDNHT0gFB-hhRGzPnQJL=A@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1364 bytes --]
Am 20.05.2014 um 10:47 schrieb luigi scarso <luigi.scarso@gmail.com>:
>
>
>
> On Tue, May 20, 2014 at 10:30 AM, Fabrice Couvreur <fabrice1.couvreur@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
[-- Attachment #1.2: Type: text/html, Size: 3292 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2014-05-20 12:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-20 8:30 Fabrice Couvreur
2014-05-20 8:47 ` luigi scarso
2014-05-20 12:46 ` Wolfgang Schuster [this message]
2014-05-20 17:50 ` Fabrice
2014-05-20 18:05 ` Wolfgang Schuster
2014-05-20 20:48 ` Fabrice
2015-01-05 17:58 ` Fabrice
2015-01-05 21:49 ` Hans Hagen
2015-01-06 10:01 ` Alan BRASLAU
2015-01-18 21:01 ` Fabrice
2015-01-19 9:35 ` Hans Hagen
2015-01-19 16:13 ` Fabrice
2015-01-06 11:28 Couvreur Fabrice
2015-01-06 11:29 Couvreur Fabrice
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=4F07AC9D-8B70-4B59-BA35-E7D05F0C1349@gmail.com \
--to=schuster.wolfgang@gmail.com \
--cc=ntg-context@ntg.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).