ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Tomas Hala <tomas.hala@mendelu.cz>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Writing the caption above figures in combinations
Date: Mon, 1 Jun 2020 21:05:50 +0200	[thread overview]
Message-ID: <20200601190550.GC10996@akela.mendelu.cz> (raw)
In-Reply-To: <E9FFF5F7-7D7B-4F14-9148-6936DEC695DE@gmail.com>

Hi Otared,

the question is how complicated structures you are going to have... 
Try the following code, I guess it works.
(I did not solve distances between objects.)

Tomáš 

%%%%%%%%%%%%%%%

\setuppapersize[A2][A2]
\setupcombination[offset=0cc,location=top,distance=1cc]

\starttext

\startplacefigure
{\startplacefigure[location=none]
  \startcombination[2*1]%
        {\startcombination[1*2]%
          {\framed[width=6cm]{a}}{\externalfigure[image-1.pdf][width=6cm]}{}{} %{a}
        \stopcombination%
% OR
%       {\startcombination[1*2]%
%         {\framed[width=6cm]{a}}{}{\externalfigure[image-1.pdf][width=6cm]}{} %{a}
%       \stopcombination%
        }{}%
        {\startcombination[1*2]%
          {\framed[width=10cm]{b}}{}{\externalfigure[image-2.pdf][width=10cm]}{} %{b}
          {\framed[width=10cm]{c}}{}{\externalfigure[-image-3.pdf][width=10cm]}{} %{c}  
        \stopcombination%
        }{}%
  \stopcombination
\stopplacefigure}
{\startplacefigure[location=none]
        \startcombination[1*2]%
          {\framed[width=20cm]{d}}{}{\externalfigure[image-4.pdf][width=20cm]}{}%{d}
          {}%
          {\startcombination[2*1]
                {\framed[width=10cm]{e}}{\externalfigure[image-5.pdf][width=10cm]} %{e}
                {\framed[width=10cm]{f}}{\externalfigure[-image-6.pdf][width=10cm]} %{f}        
          \stopcombination}
          {}%
       \stopcombination
\stopplacefigure}
\stopplacefigure

\stoptext

%%%%%%%%%%%%%%%%%%%%%%


Mon, Jun 01, 2020 ve 04:58:52PM +0200 Otared Kavian napsal(a):
# Hi Tomás,
# 
# Thank you for your help. That works for the simple combination I sent to the list, but it does not work for another case in my document where I have several combinations, as in the following:
# 
# \startplacefigure[location=none]
# 	\startcombination[1*2]
# 		{\startcombination[2*1]
# 			{\framed[width=6cm]{a}}{\externalfigure[image-1.pdf][width=6cm]} %{a} 
# 			{\startcombination[1*2]
# 				{\framed[width=10cm]{b}}{\externalfigure[image-2.pdf][width=10cm]} %{b}
# 				{\framed[width=10cm]{c}}{\externalfigure[-image-3.pdf][width=10cm]} %{c}
# 			\stopcombination}{}
# 		\stopcombination}{}
# 		{\startcombination[1*2]
# 			{\framed[width=20cm]{d}}{\externalfigure[image-4.pdf][width=20cm]} %{d}
# 			{\startcombination[2*1]
# 				{\framed[width=7cm]{e}}{\externalfigure[image-5.pdf][width=7cm]} %{e}
# 				{\framed[width=8cm]{f}}{\externalfigure[image-6.pdf][width=8cm]} %{f}
# 			\stopcombination}{}
# 		\stopcombination}{}
# 	\stopcombination
# \stopplacefigure
# 
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2020-06-01 19:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-01 12:30 Otared Kavian
2020-06-01 12:51 ` Tomas Hala
2020-06-01 14:58   ` Otared Kavian
2020-06-01 19:05     ` Tomas Hala [this message]
2020-06-01 21:11       ` Otared Kavian
2020-06-01 19:23 ` Wolfgang Schuster
     [not found]   ` <F7EE6CCC-2218-44C4-8EBC-9A625AB82009@gmail.com>
2020-06-02  4:09     ` 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=20200601190550.GC10996@akela.mendelu.cz \
    --to=tomas.hala@mendelu.cz \
    --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).