当在带有无标题内部浮动元素 ( )floatcombination
的内部使用时,浮动元素和标题之间存在间隙,就像这样:startplaceFLOAT
location=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