[NTG-context] Two minor questions

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Mon Jun 6 17:46:16 CEST 2022


Stefan Nedeljkovic via ntg-context schrieb am 06.06.2022 um 07:55:
> 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?

\setuplayout
   [topspace=\dimexpr 5\measured{base} + 2bp\relax]

> 2. I have an mp graphic defined in the file "graphic.mp 
> <http://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?

\startreusableMPgraphic{backgroundgraphic}
     input graphic.mp;
\stopreusableMPgraphic

\defineoverlay [backgroundimage] [\reuseMPgraphic{backgroundgraphic}]

\setupbackgrounds [page] [background=backgroundimage]

Wolfgang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220606/6b23ee2e/attachment.htm>


More information about the ntg-context mailing list