* [NTG-context] Spacing within combinations
@ 2024-06-22 16:17 Michael Guravage
2024-06-22 16:30 ` [NTG-context] " Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Michael Guravage @ 2024-06-22 16:17 UTC (permalink / raw)
To: ntg-context
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* [NTG-context] Re: Spacing within combinations
2024-06-22 16:17 [NTG-context] Spacing within combinations Michael Guravage
@ 2024-06-22 16:30 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2024-06-22 16:30 UTC (permalink / raw)
To: mailing list for ConTeXt users, Michael Guravage
Michael Guravage schrieb am 22.06.2024 um 18:17:
> 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.
In a combination each entry takes two parts
1. The content of the cell and
2. the caption for the cell (unless you enable auto numbering)
but you're omitting the caption for all of them. While I say you omit
the caption this isn't the actual truth because the \startcontent and
\startcaption commands are just named alternatives for the braces which
means every second figure in your example is used as caption for the
previous image.
To fix your example add
context.startcaption()
context.stopcaption()
after the content for each combination cell.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-22 16:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-22 16:17 [NTG-context] Spacing within combinations Michael Guravage
2024-06-22 16:30 ` [NTG-context] " Wolfgang Schuster
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).