Dear Hans, Could you please add the possibility to switch the headcommand to floatcaption? Below you can find a simple patch that implements what I am proposing. Happy holidays, Henri --- diff --git a/tex/context/base/mkiv/strc-flt.mkvi b/tex/context/base/mkiv/strc-flt.mkvi index 584cf915f..5b0c2d9e5 100644 --- a/tex/context/base/mkiv/strc-flt.mkvi +++ b/tex/context/base/mkiv/strc-flt.mkvi @@ -88,6 +88,7 @@ \c!minwidth=\v!fit, % id est: the width of the floatbox in some cases \c!headstyle=\v!bold, \c!headcolor=, + \c!headcommand=\hbox, \c!leftmargin=\zeropoint, \c!rightmargin=\zeropoint, \c!outermargin=\zeropoint, @@ -424,7 +425,8 @@ \emptyfloatcaptiontrue \ifnofloatnumber \else - \hbox{\usefloatcaptionstyleandcolor\c!headstyle\c!headcolor\thecurrentfloatnumber}% + \floatcaptionparameter\c!headcommand + {\usefloatcaptionstyleandcolor\c!headstyle\c!headcolor\thecurrentfloatnumber}% \ifnofloatcaption \else \ifemptyfloatcaption \else \doifelsenothing{\floatcaptionparameter\c!spaceinbetween} {\floatcaptionparameter\c!headseparator\relax
On 12/25/2019 12:01 AM, Henri Menke wrote:
Dear Hans,
Could you please add the possibility to switch the headcommand to floatcaption? Below you can find a simple patch that implements what I am proposing.
Happy holidays, Henri
---
diff --git a/tex/context/base/mkiv/strc-flt.mkvi b/tex/context/base/mkiv/strc-flt.mkvi index 584cf915f..5b0c2d9e5 100644 --- a/tex/context/base/mkiv/strc-flt.mkvi +++ b/tex/context/base/mkiv/strc-flt.mkvi @@ -88,6 +88,7 @@ \c!minwidth=\v!fit, % id est: the width of the floatbox in some cases \c!headstyle=\v!bold, \c!headcolor=, + \c!headcommand=\hbox, \c!leftmargin=\zeropoint, \c!rightmargin=\zeropoint, \c!outermargin=\zeropoint, @@ -424,7 +425,8 @@ \emptyfloatcaptiontrue \ifnofloatnumber \else - \hbox{\usefloatcaptionstyleandcolor\c!headstyle\c!headcolor\thecurrentfloatnumber}%
+ \floatcaptionparameter\c!headcommand + {\usefloatcaptionstyleandcolor\c!headstyle\c!headcolor\thecurrentfloatnumber}%
\ifnofloatcaption \else \ifemptyfloatcaption \else \doifelsenothing{\floatcaptionparameter\c!spaceinbetween} {\floatcaptionparameter\c!headseparator\relax ok, given an impact approval check by WS
but next time also add an example for the test suite so that we see what it's meant for Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen schrieb am 25.12.2019 um 15:21:
On 12/25/2019 12:01 AM, Henri Menke wrote:
Dear Hans,
Could you please add the possibility to switch the headcommand to floatcaption? Below you can find a simple patch that implements what I am proposing.
Happy holidays, Henri
---
diff --git a/tex/context/base/mkiv/strc-flt.mkvi b/tex/context/base/mkiv/strc-flt.mkvi index 584cf915f..5b0c2d9e5 100644 --- a/tex/context/base/mkiv/strc-flt.mkvi +++ b/tex/context/base/mkiv/strc-flt.mkvi @@ -88,6 +88,7 @@ \c!minwidth=\v!fit, % id est: the width of the floatbox in some cases \c!headstyle=\v!bold, \c!headcolor=, + \c!headcommand=\hbox, \c!leftmargin=\zeropoint, \c!rightmargin=\zeropoint, \c!outermargin=\zeropoint, @@ -424,7 +425,8 @@ \emptyfloatcaptiontrue \ifnofloatnumber \else - \hbox{\usefloatcaptionstyleandcolor\c!headstyle\c!headcolor\thecurrentfloatnumber}%
+ \floatcaptionparameter\c!headcommand + {\usefloatcaptionstyleandcolor\c!headstyle\c!headcolor\thecurrentfloatnumber}%
\ifnofloatcaption \else \ifemptyfloatcaption \else \doifelsenothing{\floatcaptionparameter\c!spaceinbetween} {\floatcaptionparameter\c!headseparator\relax ok, given an impact approval check by WS
We need a different solution. I have something in mind but have to make a few tests and examples first.
but next time also add an example for the test suite so that we see what it's meant for
It's a fix for a question on Stack Exchange: https://tex.stackexchange.com/questions/521563/is-it-possible-to-align-capti... Wolfgang
Hans Hagen schrieb am 25.12.2019 um 15:21:
On 12/25/2019 12:01 AM, Henri Menke wrote:
Dear Hans,
Could you please add the possibility to switch the headcommand to floatcaption? Below you can find a simple patch that implements what I am proposing.
Happy holidays, Henri
--- [...] ok, given an impact approval check by WS
but next time also add an example for the test suite so that we see what it's meant for
See attachment, you can use \setupcaption[hang=yes] to achieve the desired result. Wolfgang
participants (3)
-
Hans Hagen
-
Henri Menke
-
Wolfgang Schuster