ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \externalfigure and large-paged pdfs
@ 2012-11-08 14:18 Taco Hoekwater
  2012-11-08 14:51 ` Martin Schröder
  2012-11-08 15:09 ` Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Taco Hoekwater @ 2012-11-08 14:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

Best wishes,
Taco


___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-08 15:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-08 14:18 \externalfigure and large-paged pdfs Taco Hoekwater
2012-11-08 14:51 ` Martin Schröder
2012-11-08 15:32   ` Taco Hoekwater
2012-11-08 15:59     ` Hans Hagen
2012-11-08 15:09 ` Hans Hagen
2012-11-08 15:13   ` Hans Hagen

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).