ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Limit text width in items
Date: Thu, 26 Jul 2018 15:43:16 +0200	[thread overview]
Message-ID: <ED95FFB3-844C-4367-AE9B-6D14C81976D2@fiee.net> (raw)
In-Reply-To: <7D0BE147-1AEF-4F25-B4ED-3EDEB3A3ADA3@fiee.net>

Am 2018-07-23 um 13:33 schrieb Henning Hraban Ramm <texml@fiee.net>:

> Hello again,
> 
> in the MWE below I’d like to limit the run width of the item text so that the (page) number is standing out, e.g.
> 
> • This is a long and winding text
>   that leads to a number .......... 99
> 
> The text can become one or several lines long.
> 
> I tried to put the text in boxes, e.g. \simplealignedbox{}{}{\vbox{...}} but I got only ugly spacing.
> Also, the last line of the text continues in that leaders and number.
> 
> ---
> 
> \def\leaderfill{\leaders\hbox to 1em{\hss. \hss}\hfill}
> 
> \starttext
> 
> \startitemize[packed,joinedup]
> \startitem
> 	\input tufte
> 	\leaderfill 33
> \stopitem
> \startitem
> 	\input knuth
> 	\leaderfill 99
> \stopitem
> \stopitemize
> 
> \stoptext

No idea? Anyone?
Would it work to force an overfull hbox somehow in every last line?


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD


___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2018-07-26 13:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-23 11:33 Henning Hraban Ramm
2018-07-26 13:43 ` Henning Hraban Ramm [this message]
2018-07-26 14:03   ` Hans Hagen
2018-07-26 15:27     ` Henning Hraban Ramm
2018-07-26 15:57       ` Hans Hagen
2018-07-26 16:06         ` Hans Hagen

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=ED95FFB3-844C-4367-AE9B-6D14C81976D2@fiee.net \
    --to=texml@fiee.net \
    --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).