ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Philippe Oechslin <philippe@oechslin.net>
To: ntg-context@ntg.nl
Subject: placefigure right or left error in ver: 2018.04.04 00:51 MKIV
Date: Fri, 27 Sep 2019 14:33:10 +0200	[thread overview]
Message-ID: <7c57e38f-360d-4b4a-2b5d-f77b10d1d06f@oechslin.net> (raw)

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.


\setupexternalfigures[location={local,default}]

\starttext
\input ward

\placefigure[left,none]{}{\externalfigure[cow][width=3cm]}

\input ward
\stoptext

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
--fmt="/home/philippe/.texlive2018/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/lua
tex/cont-en" --jobname="test"
--lua="/home/philippe/.texlive2018/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luate
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
nt-yes.mkiv"

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
'/usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv'
system          >
system          > ConTeXt  ver: 2018.04.04 00:51 MKIV beta  fmt: 2019.9.25  int:
english/english
system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name
'/usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv'
close source    > level 2, order 2, name
'/usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv'
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
'/usr/share/texmf/tex/context/sample/common/ward.tex'
close source    > level 3, order 4, name
'/usr/share/texmf/tex/context/sample/common/ward.tex'
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>
\global
\strc_floats_wrap_free_region ->\global
                                        \setbox \floatbox \hpack {\ifconditi...
\strc_floats_mark_as_free ...ats_wrap_free_region
                                                  \anch_mark_tagged_box_free...
\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}]
 2
 3     \starttext
 4     \input ward
 5
 6 >>  \placefigure[left,none]{}{\externalfigure[cow][width=3cm]}
 7
 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,

   Philippe


___________________________________________________________________________________
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
___________________________________________________________________________________

             reply	other threads:[~2019-09-27 12:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-27 12:33 Philippe Oechslin [this message]
2019-09-27 13:09 ` Pablo Rodriguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7c57e38f-360d-4b4a-2b5d-f77b10d1d06f@oechslin.net \
    --to=philippe@oechslin.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).