Re: [NTG-context] floatcombination alignment has changed?
Hi, I have come up with a simpler MWE which shows the problem more explicitly: \setupcaptions[number=no] \starttext \startplacefigure[location=right] \startfloatcombination \placefigure{A Cow}{\externalfigure[cow.pdf]} \placefigure{Another Cow}{\externalfigure[cow.pdf]} \stopfloatcombination \stopplacefigure \input ward \startplacefigure[location=right,title=A Single Cow] \externalfigure[cow.pdf] \stopplacefigure \input ward \stoptext In the latest version of ConTeXt, the floatcombination is shoved to the left and overlaps the text which is also shoved to the left and narrowed down to a minimum. The single figure, on the other hand, is shoved correctly to the right and the text is at the left. In earlier versions of ConTeXt, the floatcombination is correctly shoved to the right. The reason for this change could be line 490 of pack-com.mkiv (in the definition of \pack_combinations_start_float). If I delete \dontleavehmode from this line then the correct layout is restored. Since I don't want to maintain my own version of ConTeXt, I very much would appreciate If anyone could tell me how to get the correct layout back, or fix this issue in ConTeXt. Your effort is genuinely appreciated! Christoph ___ 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 ___
Re: [NTG-context] floatcombination alignment has changed?
Dear List, Consider the following MWE: \startplacefigure \startfloatcombination \startplacetable[title={Table I}] % <- shifted %\startplacetable % <- not shifted \bTABLE \bTR \bTD Foo \eTD \bTD Text. \eTD \eTR \eTABLE \stopplacetable \startplacetable[title={Table II}] % <- shifted %\startplacetable% <- not shifted \bTABLE \bTR \bTD Foo \eTD \bTD Text. \eTD \eTR \eTABLE \stopplacetable \stopfloatcombination \stopplacefigure The resulting output looks strange to me. The tables are shifted to the left when compared with omitting the titles. In earlier versions of ConTeXt, no such shift happens. Do floatcombinations not work? Any feedback is welcome. Cheers, Christoph ___ 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 ___
Re: [NTG-context] floatcombination alignment has changed?
Dear Christoph, Your knowledge on ConTeXt is much better than me. I am just an end user. It seems to me that you already found a solution. However, many experts in this list will clear your question soon. Good luck! Best regards, Dalyoung ___ 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 ___
Re: [NTG-context] floatcombination alignment has changed?
On Thu, 08 Dec 2016 20:27:12 +0900, Jeong Dal wrote: > I don’t know how to put figures horizontally using “\startfloatcombination”. > Is there any reason to use “\startfloatcombination”? Dear Dalyoung, Thank you for your feedback. Indeed, \startcombinantion produces centered combinations by default. The problem is, that within the combination I would like to use floats defined with \setupfloat. This is not supported by \startcombination. I noticed that line 490 of pack-com.mkiv has an added \dontleavehmode in the definition of \pack_combinations_start_float. When deleting this, the combination is centered. What is the reason for \dontleavehmode here? Is packing floats inside a floatcombination not recommended in general? Any feedback is welcome Cheers, Christoph ___ 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 ___
[NTG-context] floatcombination alignment has changed?
Dear Christoph, I don’t know how to put figures horizontally using “\startfloatcombination”. Is there any reason to use “\startfloatcombination”? I usually use the following code when I need to display the figures. It is displayed horizontally and center aligned nicely. \useMPlibrary[dum] \starttext \placefigure{}{ \startcombination[2*1] {\externalfigure[cow.pdf]}{} {\externalfigure[cow.pdf]}{} \stopcombination} \stoptext Best regards, Dalyoung ___ 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 ___
[NTG-context] floatcombination alignment has changed?
Hi, In recent versions of ConTeXt, floatcombinations are not placed centered by default anymore. Consider the following MWE in which two cows are placed side by side: \placefigure{}{ \startfloatcombination \placefigure{}{\externalfigure[cow.pdf]} \placefigure{}{\externalfigure[cow.pdf]} \stopfloatcombination} In version 2016.07.01_16.28, the combination is placed horizontally. In the latest version, the combination is flushed to the left. Is this change by intention? If yes, could please anybody tell me how to restore the previous behavior; changing the "location" does not help. Thank you for your effort. Cheers, Christoph ___ 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 ___