[NTG-context] placefigure right or left error in ver: 2018.04.04 00:51 MKIV

Philippe Oechslin philippe at oechslin.net
Fri Sep 27 14:33:10 CEST 2019

Hello there,

I recently upgraded to  ConTeXt  ver: 2018.04.04 00:51 MKIV  and found that
the following simple code gives an error, where as it compiled without
complaining in ver: 2017.05.15 21:48.


\input ward


\input ward

The error happens when the location of placefigure is left or right, but not
with center. The error is the following:

context test.tex
resolvers       | trees | analyzing 'home:.texlive2018/texmf-config'
mtx-context     | run 1: luatex
tex/cont-en" --jobname="test"
x/cont-en.lui" --no-parse-first-line --c:currentrun=1
--c:fulljobname="./test.tex" --c:input="./test.tex" --c:kindofrun=1
--c:maxnofruns=9 "co

This is LuaTeX, Version 1.07.0 (TeX Live 2019/dev/Debian)
 system commands enabled.

resolvers       > trees > analyzing 'home:.texlive2018/texmf-config'
open source     > level 1, order 1, name
system          >
system          > ConTeXt  ver: 2018.04.04 00:51 MKIV beta  fmt: 2019.9.25  int:
system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name
close source    > level 2, order 2, name
system          > files > jobname 'test', input './test', result 'test'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name '/home/philippe/test.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
open source     > level 3, order 4, name
close source    > level 3, order 4, name
floatblocks     > '1' placed (left)

tex error       > tex error on line 6 in file /home/philippe/test.tex: !
Illegal unit of measure (pt inserted)

<to be read again>
\strc_floats_wrap_free_region ->\global
                                        \setbox \floatbox \hpack {\ifconditi...
\strc_floats_mark_as_free ...ats_wrap_free_region
\strc_floats_mark_par_as_free ...sides_bottomskip
                                                  \or \strc_floats_mark_as_f...
\page_sides_push_float_inline ...mark_par_as_free
                                                  \ifcase \c_page_sides_floa...
\page_sides_place_float ...des_place_float_normal
                                                  \fi \par \kern -\d_page_si...
l.6 ...left,none]{}{\externalfigure[cow][width=3cm]}

 1     \setupexternalfigures[location={local,default}]
 3     \starttext
 4     \input ward
 6 >>  \placefigure[left,none]{}{\externalfigure[cow][width=3cm]}
 8     \input ward

I am running a freshly installed Ubuntu 19.04. Has anybody run into this issues,
is there a known workaround ?

 thanks in advance,


More information about the ntg-context mailing list