ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Hans Hagen <j.hagen@xs4all.nl>
Subject: Re: teaser
Date: Thu, 6 Aug 2020 20:12:56 +0200	[thread overview]
Message-ID: <f79a14a8-e026-31ca-eb47-27ef54ab0b45@gmail.com> (raw)
In-Reply-To: <2c19e981-9798-a373-cd92-4b43b497db6c@xs4all.nl>

Hans Hagen schrieb am 06.08.2020 um 19:26:
> Hi,
> 
> I uploaded a new lmtx version ... it has a new mechanism for 
> manipulating boxes:
> 
> http://www.pragma-ade.com/general/magazines/mag-1105-mkiv.pdf
> 
> (also in distribution)
> 
> Of course experimental but I bet that some can think of usage.

The \copyboxline command doesn't stop at the end of the requested line.

BTW: Is it possible to have unbox command to get the width of the 
content in the lines without the spaces at the begin end. This is useful 
to get the width of first/last line in a box.

%% begin example
\starttext

\setbox0\vbox
   {\hsize=4cm
    one\par
    two\par
    three\par
    four}

\setbox2\ruledhbox{\copyboxline 0 2}
\setbox4\ruledhbox{\boxline 0 3}
%\setbox6           \boxline 0 5 % error

[2] [\box2] \par
[3] [\box4] \par
[5] [\box6] \par

\stoptext
%% end example

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

  reply	other threads:[~2020-08-06 18:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-06 17:26 teaser Hans Hagen
2020-08-06 18:12 ` Wolfgang Schuster [this message]
2020-08-07  4:22   ` teaser Jairo A. del Rio
2020-08-07  7:50     ` teaser Hans Hagen
2020-08-07  7:59       ` teaser Jairo A. del Rio
2020-08-07  9:02         ` teaser Hans Hagen
2020-08-07  9:14           ` teaser Jairo A. del Rio
2020-08-07  9:37             ` teaser Hans Hagen
2020-08-07 12:24               ` teaser Jairo A. del Rio
2020-08-07 10:10             ` teaser Wolfgang Schuster

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=f79a14a8-e026-31ca-eb47-27ef54ab0b45@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=j.hagen@xs4all.nl \
    --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).