ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Gerion Entrup via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Gerion Entrup <gerion.entrup@flump.de>
Subject: Typeset multiple pictures not in a strict matrix (\startfloatcombination)
Date: Tue, 07 Mar 2023 18:54:05 +0100	[thread overview]
Message-ID: <3543553.R56niFO833@falbala> (raw)


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

Hi,

I'm trying to typeset several pictures as a floatcombination but not in
the form of strict cells of a matrix.

Here is some ASCII art to demonstrate the positions of the pictures:

  ---------------------------
  |                         |
  |                         |
  ---------------------------
        a) Some caption

  ------------  -------------
  |          |  |           |
  |          |  |           |
  |          |  |           |
  ------------  -------------
     b) foo        c) foo

     Figure 1.1: Foo Bar


I tried to typeset it with this code (based on https://tex.stackexchange.com/a/502903):

\useMPlibrary[dum]
\setupcombinations[alternative=text]

\definefloat[subfigure][local=yes]
\setupcaption[subfigure][numberconversion=a]
\setuplabeltext[subfigure=]

\appendvalue{stopplacefigure}{\resetcounter[subfigure]}

\starttext
\startplacefigure[title=Test]
    \startfloatcombination[nx=1, ny=2]
      \startplacesubfigure[title=Test]
        \externalfigure[dummy][width=4cm,height=1cm]
      \stopplacesubfigure
      \startfloatcombination[nx=2, ny=1]
        \startplacesubfigure[title=Test]
          \externalfigure[dummy][width=4cm,height=1cm]
        \stopplacesubfigure
        \startplacesubfigure[title=Test]
          \externalfigure[dummy][width=4cm,height=1cm]
        \stopplacesubfigure
      \stopfloatcombination
    \stopfloatcombination
\stopplacefigure
\stoptext

However, this does not work (the pictures are all in one row).
Do you have some advice?

Gerion

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2023-03-07 17:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-07 17:54 Gerion Entrup via ntg-context [this message]
2023-03-08  8:56 ` Hans Hagen via ntg-context

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=3543553.R56niFO833@falbala \
    --to=ntg-context@ntg.nl \
    --cc=gerion.entrup@flump.de \
    /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).