Changes

Jump to navigation Jump to search
539 bytes added ,  16:46, 8 June 2020
m
no edit summary
</texcode>
== Scaled Full Page Image 1 ==
To scale an image such that it takes up an entire page, regardless of An elegant option is to extend the image dimensions, usemakeup mechanism to accept the background key:
\unprotect
\appendtoks
\setupbackgrounds[\v!page][\c!background=\makeupparameter\c!background]
\to \t_page_makeup_every_setup
\protect
 
Then you can use
 
<pre>
\setupexternalfigures[location={local,default,global}]
 
\defineoverlay
[backgroundimage]
[{\externalfigure[cow.pdf][width=\overlaywidth, height=\overlayheight]}]
 
 
\starttext
 
\startstandardmakeup[background=backgroundimage]
Whatever
\stopstandardmakeup
 
Next
 
\stoptext
</pre>
 
 
== Scaled Full Page Image 2 ==
 
Another way to use a full-page image includes:
 
<pre>
\startTEXpage
\externalfigure[cow.pdf][width=\paperwidth, height=\paperheight]
\stopTEXpage
</pre>
[[Category:Sample documents]]
[[Category:Graphics]]
[[Category:Text elements]]

Navigation menu