![ConTeXt:如何消除无标题(浮动组合)浮动和外部浮动标题之间的间隙](https://linux22.com/image/463837/ConTeXt%EF%BC%9A%E5%A6%82%E4%BD%95%E6%B6%88%E9%99%A4%E6%97%A0%E6%A0%87%E9%A2%98%EF%BC%88%E6%B5%AE%E5%8A%A8%E7%BB%84%E5%90%88%EF%BC%89%E6%B5%AE%E5%8A%A8%E5%92%8C%E5%A4%96%E9%83%A8%E6%B5%AE%E5%8A%A8%E6%A0%87%E9%A2%98%E4%B9%8B%E9%97%B4%E7%9A%84%E9%97%B4%E9%9A%99.png)
当在带有无标题内部浮动元素 ( )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