Changes

Jump to navigation Jump to search
new
<noinclude>

{{Reference
|name=backgroundimage
|attributes=
}}

== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\backgroundimage <span class="first" >{...}</span><span class="second" >{...}</span><span class="third" >{...}</span><span class="first" >{...}</span></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">{...}</td>
<td>repeat type (1=xy, 2=x, 3=y</td>
</tr>
<tr valign="top" class="second">
<td class="cmd">{...}</td>
<td>width</td>
</tr>
<tr valign="top" class="third">
<td class="cmd">{...}</td>
<td>height</td>
</tr>
<tr valign="top" class="first">
<td class="cmd">{...}</td>
<td>contents</td>
</tr>
</table>

</noinclude>

== Description ==

This allows for tiled backgrounds, using any image.

The image is repeated until it equals width and height (with repeat type 1, otherwise just width or height).

== Example ==

<texcode>
\defineoverlay
[pattern]
[\backgroundimage{1}{\overlaywidth}{\overlayheight}{\externalfigure[bg.jpg]}]

\setupbackgrounds[page][background=pattern]

\starttext
\input knuth
\stoptext
</texcode>

<noinclude>
== See also ==
* [https://tex.stackexchange.com/questions/69127/how-to-set-a-image-background-and-tile-on-page-in-context/69138#69138 Question at tex.tackexchange.com]
* {{cmd|externalfigure}}
* [[Using Graphics]]

== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
{{Forum|{{SUBPAGENAME}}}}
</noinclude>

[[Category:Command/FiguresImages|backgroundimage]]

Navigation menu