On 11/8/2012 3:18 PM, Taco Hoekwater wrote:
Hi,
Actually, this is a bug report. If you try to include a pdf with a large page size:
\starttext \externalfigure[plankaart] \stoptext
chances are that you get an error message like this:
! Dimension too large. <recently read> \hsize
\setraggedness ...yphenpenalty \dimexpr 2.8\hsize /\dimexpr #1\relax \relax ... \raggedcenter ...spac_align_set_raggedness_middle \raggedstatus \plustwo \at... \next ...ght \pack_framed_do_setups \raggedcenter \vss \bgroup \localbegstru... \grph_include_finalize ...tedexternalfigureframed {\vfilll \box \foundextern... \grph_include_place ...ode \grph_include_finalize \fi \ctxlua {figures.pop()... .... l.2 \externalfigure[plankaart]
It seems that \externalfigure forces execution of \raggedcenter, and if your PDF's page is large enough, that then fails.
There is, in fact, a workaroud:
\starttext {\setupalign[nothyphenated]\externalfigure[plankaart]} \stoptext
but that looks totally bizarre. Hans, can you find a way to fix this properly?
what happens if you do \setupexternalfigures[align=] Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------