* Writing the caption above figures in combinations
@ 2020-06-01 12:30 Otared Kavian
2020-06-01 12:51 ` Tomas Hala
2020-06-01 19:23 ` Wolfgang Schuster
0 siblings, 2 replies; 7+ messages in thread
From: Otared Kavian @ 2020-06-01 12:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi all,
Is it possible to write the individual captions for each element of a combination of floats above it, while the caption for the figure appears below?
\startplacefigure[title={A combination of three figures}] % this title appears below the figure
\startcombination[3*1]
{\externalfigure[image-1.pdf][width=4cm]}{a} % a appears above image-1
{\externalfigure[image-2.pdf][width=4cm]}{b} % b appears above image-2
{\externalfigure[image-3.pdf][width=4cm]}{c} % c appears above image-3
\stopcombination}{}
\stopplacefigure
I tried to define a new float, say myfigure, which has captions below and then I tried
\setupcaptions[location=top]
and
\setupcombinations[location=top]
but this does not work…
Thanks for any help: Otared
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Writing the caption above figures in combinations
2020-06-01 12:30 Writing the caption above figures in combinations Otared Kavian
@ 2020-06-01 12:51 ` Tomas Hala
2020-06-01 14:58 ` Otared Kavian
2020-06-01 19:23 ` Wolfgang Schuster
1 sibling, 1 reply; 7+ messages in thread
From: Tomas Hala @ 2020-06-01 12:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Otared,
maybe there is a better, more system solution, but the following works:
\setupcaptions[figure][location=bottom]
\startplacefigure[title={A combination of three figures}] % this title appears below the figure
\startcombination[3*1]
{\framed[width=4cm]{a}}{\externalfigure[image-1.pdf][width=4cm]} % a appears above image-1
{\framed[width=4cm]{b}}{\externalfigure[image-2.pdf][width=4cm]} % b appears above image-2
{\framed[width=4cm]{c}}{\externalfigure[image-3.pdf][width=4cm]} % c appears above image-3
\stopcombination}{}
\stopplacefigure
Best wishes,
Tomáš
Mon, Jun 01, 2020 ve 02:30:49PM +0200 Otared Kavian napsal(a):
# Hi all,
#
# Is it possible to write the individual captions for each element of a combination of floats above it, while the caption for the figure appears below?
#
# \startplacefigure[title={A combination of three figures}] % this title appears below the figure
# \startcombination[3*1]
# {\externalfigure[image-1.pdf][width=4cm]}{a} % a appears above image-1
# {\externalfigure[image-2.pdf][width=4cm]}{b} % b appears above image-2
# {\externalfigure[image-3.pdf][width=4cm]}{c} % c appears above image-3
# \stopcombination}{}
# \stopplacefigure
#
# I tried to define a new float, say myfigure, which has captions below and then I tried
#
# \setupcaptions[location=top]
#
# and
#
# \setupcombinations[location=top]
#
# but this does not work…
#
# Thanks for any help: Otared
# ___________________________________________________________________________________
# 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
# ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Writing the caption above figures in combinations
2020-06-01 12:51 ` Tomas Hala
@ 2020-06-01 14:58 ` Otared Kavian
2020-06-01 19:05 ` Tomas Hala
0 siblings, 1 reply; 7+ messages in thread
From: Otared Kavian @ 2020-06-01 14:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
Here the first group containing image-1 and image-2, image-3 is misplaced.
Maybe there is a right setup for this, even if I don't have a caption below the whole figure (in the above figure I can avoid a caption).
Thanks again: Otared
> On 1 Jun 2020, at 14:51, Tomas Hala <tomas.hala@mendelu.cz> wrote:
>
> Hi Otared,
>
> maybe there is a better, more system solution, but the following works:
>
> \setupcaptions[figure][location=bottom]
> \startplacefigure[title={A combination of three figures}] % this title appears below the figure
> \startcombination[3*1]
> {\framed[width=4cm]{a}}{\externalfigure[image-1.pdf][width=4cm]} % a appears above image-1
> {\framed[width=4cm]{b}}{\externalfigure[image-2.pdf][width=4cm]} % b appears above image-2
> {\framed[width=4cm]{c}}{\externalfigure[image-3.pdf][width=4cm]} % c appears above image-3
> \stopcombination}{}
> \stopplacefigure
>
> Best wishes,
>
> Tomáš
>
> Mon, Jun 01, 2020 ve 02:30:49PM +0200 Otared Kavian napsal(a):
> # Hi all,
> #
> # Is it possible to write the individual captions for each element of a combination of floats above it, while the caption for the figure appears below?
> #
> # \startplacefigure[title={A combination of three figures}] % this title appears below the figure
> # \startcombination[3*1]
> # {\externalfigure[image-1.pdf][width=4cm]}{a} % a appears above image-1
> # {\externalfigure[image-2.pdf][width=4cm]}{b} % b appears above image-2
> # {\externalfigure[image-3.pdf][width=4cm]}{c} % c appears above image-3
> # \stopcombination}{}
> # \stopplacefigure
> #
> # I tried to define a new float, say myfigure, which has captions below and then I tried
> #
> # \setupcaptions[location=top]
> #
> # and
> #
> # \setupcombinations[location=top]
> #
> # but this does not work…
> #
> # Thanks for any help: Otared
> # ___________________________________________________________________________________
> # 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
> # ___________________________________________________________________________________
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Writing the caption above figures in combinations
2020-06-01 14:58 ` Otared Kavian
@ 2020-06-01 19:05 ` Tomas Hala
2020-06-01 21:11 ` Otared Kavian
0 siblings, 1 reply; 7+ messages in thread
From: Tomas Hala @ 2020-06-01 19:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Writing the caption above figures in combinations
2020-06-01 12:30 Writing the caption above figures in combinations Otared Kavian
2020-06-01 12:51 ` Tomas Hala
@ 2020-06-01 19:23 ` Wolfgang Schuster
[not found] ` <F7EE6CCC-2218-44C4-8EBC-9A625AB82009@gmail.com>
1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2020-06-01 19:23 UTC (permalink / raw)
To: mailing list for ConTeXt users, Otared Kavian
Otared Kavian schrieb am 01.06.2020 um 14:30:
> Hi all,
>
> Is it possible to write the individual captions for each element of a combination of floats above it, while the caption for the figure appears below?
>
> \startplacefigure[title={A combination of three figures}] % this title appears below the figure
> \startcombination[3*1]
> {\externalfigure[image-1.pdf][width=4cm]}{a} % a appears above image-1
> {\externalfigure[image-2.pdf][width=4cm]}{b} % b appears above image-2
> {\externalfigure[image-3.pdf][width=4cm]}{c} % c appears above image-3
> \stopcombination}{}
> \stopplacefigure
>
> I tried to define a new float, say myfigure, which has captions below and then I tried
>
> \setupcaptions[location=top]
>
> and
>
> \setupcombinations[location=top]
>
> but this does not work…
The label position in combinations is fixed and the easiest way to
create your own combination is to use a table.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Writing the caption above figures in combinations
2020-06-01 19:05 ` Tomas Hala
@ 2020-06-01 21:11 ` Otared Kavian
0 siblings, 0 replies; 7+ messages in thread
From: Otared Kavian @ 2020-06-01 21:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Tomáš,
Thank you very much for your answer: you solved my problem perfectly!
I didn't know that one could use several nested \startplacefigure...\stopplacefigure.
Best regards: Otared
> On 1 Jun 2020, at 21:05, Tomas Hala <tomas.hala@mendelu.cz> wrote:
>
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Writing the caption above figures in combinations
[not found] ` <F7EE6CCC-2218-44C4-8EBC-9A625AB82009@gmail.com>
@ 2020-06-02 4:09 ` Wolfgang Schuster
0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2020-06-02 4:09 UTC (permalink / raw)
To: Otared Kavian; +Cc: NTG-Context ConTeXt users
Otared Kavian schrieb am 01.06.2020 um 23:14:
> Hi Wolfgang,
>
> Thank you for your input. Since I don't know how to use figures in tables I am going to use the solution sent by Tomáš Hala which works fine with what I needed today. Later on maybe I will ask you for insight regarding using tables for figures.
>
> Best regards: Otared K.
>
>> On 1 Jun 2020, at 21:23, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
>>
>> Otared Kavian schrieb am 01.06.2020 um 14:30:
>>> […]
>> The label position in combinations is fixed and the easiest way to create your own combination is to use a table.
>>
>> Wolfgang
Combinations are tables as well but the input is different because
everything is hidden.
\starttext
\startplacefigure[title={A combination of three figures}]
\startcombination[3*1]
{\externalfigure[image-1.pdf][width=4cm]}{a}
{\externalfigure[image-2.pdf][width=4cm]}{b}
{\externalfigure[image-3.pdf][width=4cm]}{c}
\stopcombination
\stopplacefigure
\startplacefigure[title={A combination of three figures}]
\bTABLE[frame=off,align=middle,offset=0pt,columndistance=1em]
\bTR
\bTD a \eTD
\bTD b \eTD
\bTD c \eTD
\eTR
\bTR
\bTD \externalfigure[image-1.pdf][width=4cm] \eTD
\bTD \externalfigure[image-2.pdf][width=4cm] \eTD
\bTD \externalfigure[image-3.pdf][width=4cm] \eTD
\eTR
\eTABLE
\stopplacefigure
\stoptext
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-06-02 4:09 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-01 12:30 Writing the caption above figures in combinations Otared Kavian
2020-06-01 12:51 ` Tomas Hala
2020-06-01 14:58 ` Otared Kavian
2020-06-01 19:05 ` Tomas Hala
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
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).