ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Michael Guravage <guravage@literatesolutions.com>
To: ntg-context@ntg.nl
Subject: [NTG-context] Spacing within combinations
Date: Sat, 22 Jun 2024 18:17:57 +0200	[thread overview]
Message-ID: <CAL-A5LYzEiZTjXgCRMBpRuwbqv+-VqWWHECLSP_QtjhMmHJhbA@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 539 bytes --]

Greetings,

The attached MWE combines 12 images in  a 3 by 4 grid; with horizontal and
vertical spacing set by setupcombinations.

I have two questions. First, can someone please tell me why the vertical
spacing is not applied between the first and second and third and fourth
rows?  Second, why, If I try, e.g.c 15 images, does  ConTeXt complain of a
missing left brace. More generally, my mwe failed with an odd number of
images, but succeeded with an even number.

Thanks.

With kind regards,

Michael



<http://literatesolutions.com>

[-- Attachment #1.2: Type: text/html, Size: 872 bytes --]

[-- Attachment #2: matrix.tex --]
[-- Type: text/x-tex, Size: 539 bytes --]

\useMPlibrary [dum]
\setuppagenumbering[state=]
\setupcaptions[number=no]

\starttext
  \startluacode
    context.setupblank({"10mm"})
    context.setupcombinations({distance="10mm", after=context.blank()})
    context.startplacefigure({title = ""})
      context.startcombination({nx=3, ny=4})
        for i=1, 12 do
         context.startcontent()
           context.externalfigure({dummy},{width = "3cm"})
         context.stopcontent()
        end
      context.stopcombination()
    context.stopplacefigure()
  \stopluacode
\stoptext

[-- Attachment #3: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2024-06-22 16:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-22 16:17 Michael Guravage [this message]
2024-06-22 16:30 ` [NTG-context] " 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=CAL-A5LYzEiZTjXgCRMBpRuwbqv+-VqWWHECLSP_QtjhMmHJhbA@mail.gmail.com \
    --to=guravage@literatesolutions.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).