2

Using pdflatex, a pdf file was inserted as a full size background, a letterhead. An example:

\documentclass{article}
\usepackage{lipsum} %for dummy text
\usepackage{wallpaper}
\begin{document}
\CenterWallPaper{1.0}{background.pdf}
\lipsum[1-14] %dummy text
\end{document}

How can this be done using ConTeXt Standalone?

1

1 Answer 1

3

Define a layer and put it in the page background.

\definelayer
  [pagebg]
  [
    x=0mm,
    y=0mm,
    width=\paperwidth,
    height=\paperheight,
  ]

\setlayer
  [pagebg]
  {\externalfigure[dummy][width=\paperwidth,height=\paperheight]}

\setupbackgrounds
  [page]
  [background=pagebg]

\starttext

\input knuth

\stoptext

enter image description here

2
  • You could have defined an overlay (without defining a layer). For example: \defineoverlay[pagebg][{\externalfigure[dummy][width=\paperwidth, height=\paperheight]}] or even \defineoverlay[pagebg][{\externalfigure[dummy][width=\overlaywidth, height=\overlayheight]}]
    – Aditya
    Commented Jun 5, 2017 at 5:49
  • @Aditya You can use \overlayfigure{...} instead of \externalfigure [...][width=\overla‌​ywidth, height=\overlayheight] in this case. Commented Jun 7, 2017 at 12:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .