On Mon, 6 Jun 2022, Stefan Nedeljkovic via ntg-context wrote:

> Dear list,
> 
> I have 2 small questions:
> 
> 1. In \setuplayout if I try to set topspace=5\measured{base} +
> \dimexpr2bp I get an error. How should I add these 2bp?

(Untested)

\dimexpr\measure{base}+2bp\relax

or 

\dimexpr\measured{base}+2bp\relax

should work.

> 2. I have an mp graphic defined in the file "graphic.mp" which has the
> exact same dimensions as my page. I'd like to set that graphic as a
> background. How do I do this?

(Again, untested)

\startuseMPgraphic{background-image}
  input graphic.mp;
\stopuseMPgraphic

\defineoverlay[background-image][\useMPgraphic{background-image}]

\setupbackgrounds[page][background={background-image}]

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to