ConTeXt:如何消除无标题(浮动组合)浮动和外部浮动标题之间的间隙

ConTeXt:如何消除无标题(浮动组合)浮动和外部浮动标题之间的间隙

当在带有无标题内部浮动元素 ( )floatcombination的内部使用时,浮动元素和标题之间存在间隙,就像这样:startplaceFLOATlocation=none

\startTEXpage
    \startplacefigure[location={here}, title={Here is a title}]
        \startfloatcombination[nx=2, ny=1, distance=2.5cm]
            \startplacefigure[location={none}]
            \startMPcode
                draw (-1cm,0cm) -- (1cm,0cm) ;
                draw (0cm,-1cm) -- (0cm,1cm) ;
            \stopMPcode
            \stopplacefigure

            \startplacefigure[location={none}]
            \startMPcode
                draw (-1cm,0cm) -- (1cm,0cm) ;
                draw (0cm,-1cm) -- (0cm,1cm) ;
            \stopMPcode
            \stopplacefigure
        \stopfloatcombination
    \stopplacefigure
\stopTEXpage

在此处输入图片描述

据我所知,这个差距是内部浮动标题留下的

\startTEXpage
    \startplacefigure[location={here}, title={Here is a title}]
        \startfloatcombination[nx=2, ny=1, distance=2.5cm]
            \startplacefigure[location={here}]
            \startMPcode
                draw (-1cm,0cm) -- (1cm,0cm) ;
                draw (0cm,-1cm) -- (0cm,1cm) ;
            \stopMPcode
            \stopplacefigure

            \startplacefigure[location={here}]
            \startMPcode
                draw (-1cm,0cm) -- (1cm,0cm) ;
                draw (0cm,-1cm) -- (0cm,1cm) ;
            \stopMPcode
            \stopplacefigure
        \stopfloatcombination
    \stopplacefigure
\stopTEXpage

在此处输入图片描述

我怎样才能摆脱它?

答案1

我不知道使用浮动组合是否可行,但使用普通组合你可以得到我认为你正在寻找的东西(我添加了它\showboxes以便我们更好地看到那里有什么):

\showboxes
\starttext
    \startplacefigure[location={here}, title={Here is a title}]
        \startfloatcombination[nx=2, ny=1, distance=2.5cm]
            \startplacefigure[location={none}]
            \startMPcode
                draw (-1cm,0cm) -- (1cm,0cm) ;
                draw (0cm,-1cm) -- (0cm,1cm) ;
            \stopMPcode
            \stopplacefigure

            \startplacefigure[location={none}]
            \startMPcode
                draw (-1cm,0cm) -- (1cm,0cm) ;
                draw (0cm,-1cm) -- (0cm,1cm) ;
            \stopMPcode
            \stopplacefigure
        \stopfloatcombination
    \stopplacefigure
    
    \startplacefigure[location={here}, title={Here is a title}]
        \startcombination[nx=2, ny=1, distance=2.5cm]
            \startcontent
            \startMPcode
                draw (-1cm,0cm) -- (1cm,0cm) ;
                draw (0cm,-1cm) -- (0cm,1cm) ;
            \stopMPcode
            \stopcontent
            \startcaption
            \stopcaption
            \startcontent
            \startMPcode
                draw (-1cm,0cm) -- (1cm,0cm) ;
                draw (0cm,-1cm) -- (0cm,1cm) ;
            \stopMPcode
            \stopcontent
            \startcaption
            \stopcaption
        \stopcombination
    \stopplacefigure
\stoptext

组合

相关内容