[NTG-context] Writing the caption above figures in combinations

Otared Kavian otared at gmail.com
Mon Jun 1 23:11:32 CEST 2020


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 at 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 at 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
> ___________________________________________________________________________________



More information about the ntg-context mailing list