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>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: Re: question about frames
Date: Thu, 26 Nov 2020 17:26:14 +0100	[thread overview]
Message-ID: <6bd2f1de-7400-5f90-d86c-792582d6f4b6@gmail.com> (raw)
In-Reply-To: <87e9ee07-2908-a8ef-cb61-a8f0e44dbb23@gmx.es>

Pablo Rodriguez schrieb am 25.11.2020 um 22:43:
> Dear list,
> 
> here is a minimal sample of frames to make up labels:
> 
>    \setuplayout[page]
>    \starttext
>    \dorecurse{16}{\dontleavehmode\dorecurse{4}
>    {\framed[width=52.5mm, height=18.5mm, align=right]{\null}}\\}
>    \stoptext
> 
> Which is the way to avoid any vertical space between frames?

Variant 1:

\setuplayout
   [page]
   [backspace=5mm,
    topspace=10mm]

\setuplayout
   [page]

\starttext

\dorecurse{14}
   {\dontleavehmode
    \dorecurse{4}
      {\framed[width=5cm,height=2cm]{}}%
    \par
    \offinterlineskip}

\stoptext

Variant 2:

\definepapersize
   [etikett]
   [width=5cm,
    height=2cm]

\setuppapersize
   [etikett] [A4]

\setuplayout
   [page]

\setuppaper
   [nx=4,
    ny=14]

\setuppaper
   [dx=1sp,
    dy=1sp,
    backspace=5mm,
    topspace=10mm]

\setuparranging
   [XY]

\setuplayout
   [location=middle]

\starttext

\dorecurse{56}
   {\framed[width=max,height=max]{}}

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

  parent reply	other threads:[~2020-11-26 16:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-25 21:43 Pablo Rodriguez
2020-11-26  8:42 ` Henning Hraban Ramm
2020-11-26 15:40   ` Pablo Rodriguez
2020-11-26 16:26 ` Wolfgang Schuster [this message]
2020-11-26 21:03   ` Pablo Rodriguez
2020-11-26 22:29     ` Hans Hagen
2020-11-26 21:24 Andres Conrado Montoya
2020-11-26 21:27 Andres Conrado Montoya

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=6bd2f1de-7400-5f90-d86c-792582d6f4b6@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    /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).