Command/backgroundimage

From Wiki
< Command
Revision as of 12:16, 11 October 2019 by Usonianhorizon (talk | contribs)
Jump to navigation Jump to search


\backgroundimage

Syntax (autogenerated)]

\backgroundimage{...}{...}{...}{...}
{...}number
{...}dimension
{...}dimension
{...}command


Syntax

\backgroundimage {...}{...}{...}{...}
{...} repeat type (1=xy, 2=x, 3=y
{...} width
{...} height
{...} contents


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

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

\setupbackgrounds[page][background=pattern]

\starttext
\input knuth
\stoptext


See also

Help from ConTeXt-Mailinglist/Forum

All issues with: