![](https://secure.gravatar.com/avatar/57c17c28c61c03706efc4a9112fad09b.jpg?s=120&d=mm&r=g)
Hi! Is there a way to influence the spacing after a combination is placed? \useMPlibrary [dum] \starttext \startcombination [2*2] \startcontent \externalfigure \stopcontent \startcaption Foo \stopcaption \startcontent \externalfigure \stopcontent \startcaption Bar \stopcaption \startcontent \externalfigure \stopcontent \startcaption Lorem \stopcaption \startcontent \externalfigure \stopcontent \startcaption Ipsum \stopcaption \stopcombination \samplefile{knuth} \stoptext I know I could wrap it in a float and use the float to control the spacing, but it would be great if I could do without that float. Marco
![](https://secure.gravatar.com/avatar/4da8dbbf92ebc6723a2215b6043a25c7.jpg?s=120&d=mm&r=g)
Marco, there is a \setupcombination command: \setupcombination [...,...] [..,..=..,..] 1 NAME 2 nx ny width height location distance alternative align continue before after inbetween style color OPT = NUMBER = NUMBER = fit DIMENSION = fit DIMENSION = left middle right top bottom = DIMENSION = label text = inherits: \setupalign = yes no = COMMAND = COMMAND = COMMAND = STYLE COMMAND = COLOR I hope this will enable you to get what you want. Willi
On 16 Jul 2019, at 17:08, Marco Patzer
wrote: Hi!
Is there a way to influence the spacing after a combination is placed?
\useMPlibrary [dum]
\starttext
\startcombination [2*2] \startcontent \externalfigure \stopcontent \startcaption Foo \stopcaption \startcontent \externalfigure \stopcontent \startcaption Bar \stopcaption \startcontent \externalfigure \stopcontent \startcaption Lorem \stopcaption \startcontent \externalfigure \stopcontent \startcaption Ipsum \stopcaption \stopcombination
\samplefile{knuth}
\stoptext
I know I could wrap it in a float and use the float to control the spacing, but it would be great if I could do without that float.
Marco ___________________________________________________________________________________ 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 ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
Willi Egger schrieb am 16.07.2019 um 20:46:
Marco,
there is a \setupcombination command:
\setupcombination [...,...] [..,..=..,..] 1 NAME 2 nx ny width height location distance alternative align continue before after inbetween style color OPT = NUMBER = NUMBER = fit DIMENSION = fit DIMENSION = left middle right top bottom = DIMENSION = label text = inherits: \setupalign = yes no = COMMAND = COMMAND = COMMAND = STYLE COMMAND = COLOR
I hope this will enable you to get what you want. None of these options is applied at the begin or end of the environment (use the following setup in the example).
\setupcombination [ before={\endgraf{\tttf [before]}\endgraf}, after={\endgraf{\tttf [after]}\endgraf}, inbetween={\endgraf{\tttf [inbetween]}\endgraf}] A alternative to using floats is to put the combination in a linecorrection environment, i.e. \startlinecorrection \startcombination [2*2] ... \stopcombination \stoplinecorrection or \startlinecorrection[blank] \startcombination [2*2] ... \stopcombination \stoplinecorrection Wolfgang
![](https://secure.gravatar.com/avatar/57c17c28c61c03706efc4a9112fad09b.jpg?s=120&d=mm&r=g)
On Tue, 16 Jul 2019 21:09:15 +0200
Wolfgang Schuster
A alternative to using floats is to put the combination in a linecorrection environment, i.e.
\startlinecorrection \startcombination [2*2] ... \stopcombination \stoplinecorrection
or
\startlinecorrection[blank] \startcombination [2*2] ... \stopcombination \stoplinecorrection
I hadn't thought of this. That's better suited than a float. However, I'd prefer to not have another environment around the combinations, but if there's no other way, I'd settle for your approach. So far that seems to be the best choice. Thanks for the quick response. Marco
![](https://secure.gravatar.com/avatar/6e50a7aa57f5569d881f204f124d96ef.jpg?s=120&d=mm&r=g)
On Tue, 16 Jul 2019 22:32:39 +0200
Marco Patzer
However, I'd prefer to not have another environment around the combinations, but if there's no other way, I'd settle for your approach. So far that seems to be the best choice.
A combination is a construction, not really an "environment". Alan
participants (4)
-
Alan Braslau
-
Marco Patzer
-
Willi Egger
-
Wolfgang Schuster