On Fri, 23 Nov 2007 22:32:46 -0700
"Idris Samawi Hamid"
On Fri, 23 Nov 2007 12:30:48 -0700, Wolfgang Schuster
wrote: \unprotect
\def\fullpagebox {\bgroup \dowithnextbox {\!!widtha\dimexpr\paperwidth/\nextboxwd\relax \!!widthb\dimexpr\paperheight/\nextboxht\relax \ifdim\!!widtha>\!!widthb \setbox\nextbox\vbox\!!to\paperheight{\vss\expanded{\scale[\c!width=\paperwidth]{\flushnextbox}}\vss}% \else \setbox\nextbox\hbox\!!to\paperwidth{\hss\expanded{\scale[\c!height=\paperheight]{\flushnextbox}}\hss}% \fi \setbox\nextbox\hbox{\clip[\c!width=\paperwidth,\c!height=\paperheight]{\flushnextbox}}% \startTEXpage \flushnextbox \stopTEXpage \egroup} \hbox}
\protect
\starttext
\fullpagebox{\externalfigure[image]}
\stoptext
Now THAT's the 1st-class gangster we know and love so much ;-)
Question: How can we, if desired, fit the image to the page dimensions? See what happens with
\starttext
\fullpagebox{\externalfigure[cow][scale=fit]}
\stoptext
Can you try \pagefigure, my solution was to scale a image to the papersize and remove parts. \pagefigure includes a figure within a TEXpage and you scale now the figure to the size of the document. \starttext \pagefigure[cow][width=\paperwidth,height=\paperheight] \stoptext Wolfgang