On 12/18/2012 6:13 PM, Marco Patzer wrote:
On 2012–12–08 Marco Patzer wrote:
Thanks. It does not break anything in the final document and all numbers are correct.
Referring to the figures is messed up:
\useMPlibrary [dum]
\setupfloat [figure] [default=top]
\ctxlua{structures.lists.autoreorder = true}
\starttext \input knuth
alpha: \in{figure}[alpha] \par beta: \in{figure}[beta] \par gamma: \in{figure}[gamma] \par
\startplacefigure [title=Alpha, reference=alpha] \externalfigure [dummy] \stopplacefigure
\startplacefigure [title=Beta, reference=beta] \externalfigure [dummy] [width=10cm, height=16cm] \stopplacefigure
\startplacefigure [title=Gamma, reference=gamma] \externalfigure [dummy] \stopplacefigure
\stoptext
For the moment I would actually be happy with a workaround to get the numbers right. With autoreorder the referencing is wrong, without autoreorder the float numbers are not in order.
this kind of messy stuff needs some time to get right (apart from messing up de code) you cna try to patch this in strc-ref.lua function filters.generic.number(data,what,prefixspec) -- todo: spec and then no stopper if data then -- local numberdata = data.numberdata numberdata = lists.reordered(data) if numberdata then helpers.prefix(data,prefixspec) sections.typesetnumber(numberdata,"number",numberdata) else local useddata = data.useddata if useddata and useddsta.number then context(useddata.number) end end end end ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------