ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aidan Nichol <aidan@nicholware.co.uk>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Nested floatcombinations
Date: Wed, 30 Mar 2016 11:13:08 +0100	[thread overview]
Message-ID: <C22D9422-9D2E-4133-AEDB-56DB1C65A4D8@nicholware.co.uk> (raw)

Based on answers to previous questions the easiest way to arrange figures on a page in a simple tabular arrangement is to use \startfloatcombination etc. and indeed works well

I wanted to get a single tall figure on the left and two on the right above one another. I tried nesting i.e.

\setupexternalfigures[location={default}]

\definefloat[floatA][floatAs]
\definefloat[floatB][floatBs]
\setupcaption[floatA][number=yes,location=top]
\setupcaption[floatB][number=no]

\starttext

\startplacefloatA[title={Using figures in nested float combinations}]
  \startfloatcombination[nx=2,ny=1]
    \startplacefigure[title={left two rows}]
      \externalfigure[mill][height=4in]
    \stopplacefigure
    \startplacefloatB
      \startfloatcombination[nx=1,ny=2]
        \startplacefigure[title={right top}]
          \externalfigure[spider][height=1.5in]
        \stopplacefigure
        \startplacefigure[title={right bot}]
          \externalfigure[cow][height=1.5in]
        \stopplacefigure
      \stopfloatcombination
    \stopplacefloatB
  \stopfloatcombination
\stopplacefloatA

\stoptext

This just gave the three figures in a sort of single column down the page. 

Are nested floatcombinations not allowed or have I done it wrong?





___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

                 reply	other threads:[~2016-03-30 10:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=C22D9422-9D2E-4133-AEDB-56DB1C65A4D8@nicholware.co.uk \
    --to=aidan@nicholware.co.uk \
    --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).