[NTG-context] lmtx-20210118 | Corruption with rotated floats

Pablo Rodriguez oinos at gmx.es
Sun Jan 24 00:00:53 CET 2021


On 1/23/21 10:43 PM, Hans Hagen wrote:
> On 1/23/2021 12:10 PM, Pablo Rodriguez wrote:
>> [...]
>> LMTX misplaces next paragraph on next page with both 90 and 270.
>> [...]
> The code is not different from mkiv but instead we swap dimens using a
> primitive. When you set \overloadmode=4 (which can be interesting as it
> might reveal issues in a style) the run will quit with an error ... this
> is a fix:
>
> \def\strc_floats_set_page_variant
>    {\bgroup
>     \strc_floats_set_local_hsize
>     \ifcase\c_strc_floats_rotation\else
>       \scratchdimen\hsize
>       \hsize\vsize
>       \vsize\scratchdimen
>     \fi
>
> (it also indicates that we're cheating with the sizes which when it
> happens global is pretty dangerous ... it works but i admit that it is
> not nice)

Many thanks for the fast fix, Hans.

Pablo
--
http://www.ousia.tk


More information about the ntg-context mailing list