<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Eventually, these two options worked. Firstly changing \setupbackgrounds</div><div><br></div><div>% BEGIN MP LOGO SETUP</div><div><br></div><div>\startuseMPgraphic{mpglogo}<br>  path p;<br>  p := (0,0)--(100,0)--(100,100)--(0,100)--cycle;<br>  <br>  path q;<br>  q := p cornered 30pt;<br>  draw q withcolor black withpen pencircle scaled 7pt;<br>\stopuseMPgraphic</div><div><br></div><div>\definelayer<br>  [logo]<br>  [repeat=no]</div><div><br></div><div>\setlayer<br>  [logo]<br>  [hoffset=160mm,voffset=17mm]<br>  {\scale[width=25mm,height=25mm]{\useMPgraphic{mpglogo}}}<br>  <br>\setupbackgrounds[paper][background=logo]</div><div><br></div><div>% END MP LOGO SETUP, BEGIN LETTER SETUP</div><div><br></div><div>\usemodule<br>  [letter]<br>  [style=dinb]</div><div><br></div><div>\setupletterlayer<br>  [reference]<br>  [list={name,phone,email,date}]<br>  <br>\setupletterlayer<br>  [address]<br>  [y=55mm]<br>  <br>\setupletterdescription<br>  [enclosure] <br>  [location=top, <br>  leftmargin=0.5em, <br>  symbol=#1,]</div><div><br></div><div>\usesymbols<br>  [mvs]<br>  <br>\definesymbol<br>  [1]<br>  [{\symbol[martinvogel 2][PointingHand]}]</div><div><br></div><div>\setupletter<br>  [toname={John Doe},<br>   toaddress={201, Main Street\\23124 London\\United Kingdom},<br>   fromname={Jansen NV},<br>   fromaddress={Waalhaven 2200\\2842 KL Rotterdam},<br>   name={Piet jansen},<br>   phone={+31(010)4234 4232},<br>   email={<a href="mailto:peter.jansen@gmail.com" target="_blank">peter.jansen@gmail.com</a>},<br>   date={\currentdate},<br>   signature={Pete},]</div><div><br></div><div>% END LETTER SETUP, START LETTER<br>  <br>\startletter<br>  [subject={Outstanding Invoices},<br>   opening={Dear Sir,},<br>   closing={Kind Regards,},<br>   enclosure={list:Commercial Invoice,Accounts Statement},]</div><div><br></div><div>\dorecurse{3}{\input knuth \par}</div><div><br></div><div>\stopletter</div><div><br></div><div><br></div><div>Alternatively, adjusting \setupletterlayer<br></div><div><br></div><div><br></div><div>\usemodule<br>  [letter]<br>  [style=dinb]</div><div><br></div><div>% BEGIN MP LOGO SETUP</div><div><br></div><div>\startuseMPgraphic{mpglogo}<br>  path p;<br>  p := (0,0)--(100,0)--(100,100)--(0,100)--cycle;<br>  <br>  path q;<br>  q := p cornered 30pt;<br>  draw q withcolor black withpen pencircle scaled 7pt;<br>\stopuseMPgraphic</div><div><br></div><div>\startsetups[letter:layer:lettermain]<br>  \scale<br>    [width=25mm,height=25mm]<br>    {\useMPgraphic{mpglogo}}<br>\stopsetups</div><div><br></div><div>\setupletterlayer<br>  [lettermain]<br>  [alternative=setups,<br>   x=160mm,<br>   y=17mm]</div><div><br></div><div>% END MP LOGO SETUP, BEGIN LETTER SETUP</div><div><br></div><div>\setupletterlayer<br>  [reference]<br>  [list={name,phone,email,date}]<br>  <br>\setupletterlayer<br>  [address]<br>  [y=55mm]<br>  <br>\setupletterdescription<br>  [enclosure] <br>  [location=top, <br>   leftmargin=0.5em, <br>   symbol=#1,]</div><div><br></div><div>\usesymbols<br>  [mvs]</div><div>\definesymbol</div><div><br>  [1]<br>  [{\symbol[martinvogel 2][PointingHand]}]</div><div><br></div><div>\setupletter<br>  [toname={John Doe},<br>   toaddress={201, Main Street\\23124 London\\United Kingdom},<br>   fromname={Jansen NV},<br>   fromaddress={Waalhaven 2200\\2842 KL Rotterdam},<br>   name={Piet jansen},<br>   phone={+31(010)4234 4232},<br>   email={<a href="mailto:peter.jansen@gmail.com">peter.jansen@gmail.com</a>},<br>   date={\currentdate},<br>   signature={Pete},]</div><div><br></div><div>% END LETTER SETUP, START LETTER<br>  <br>\startletter<br>  [subject={Outstanding Invoices},<br>   opening={Dear Sir,},<br>   closing={Kind Regards,},<br>   enclosure={list:Commercial Invoice,Accounts Statement},]</div><div><br></div><div>\dorecurse<br>  {3}<br>  {\input knuth \par}</div><div><br></div><div>\stopletter</div><div></div><div><br></div><div class="gmail_quote"><div class="gmail_attr" dir="ltr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">Wolfgang Schuster</strong> <span dir="ltr"><<a href="mailto:wolfgang.schuster.lists@gmail.com" target="_blank">wolfgang.schuster.lists@gmail.com</a>></span><br>Date: ma 11 mrt. 2019 om 20:55<br>Subject: Re: [NTG-context] Meptapost Drawing not showing-up in Context Letter Style<br>To: mailing list for ConTeXt users <<a href="mailto:ntg-context@ntg.nl" target="_blank">ntg-context@ntg.nl</a>>, Context NTG <<a href="mailto:contextntg@gmail.com" target="_blank">contextntg@gmail.com</a>><br></div><br><br>Context NTG schrieb am 10.03.19 um 16:59:<br>
> I am trying to get a metapost drawing as logo added to right upper <br>
> corner of a DIN B style letterhead, but it does not show up, just the <br>
> letter itself. Is there anything to change to the layers for the MP toe <br>
> reveal itself?<br>
<br>
The letter module uses local settings for the page background to place <br>
all the layer for the header, footer etc. and your own background setup <br>
is overloaded by the module.<br>
<br>
<br>
What you can do in this case is to use the predefined but unused <br>
lettermain layer to place your logo in the background.<br>
<br>
<br>
\usemodule[letter][style=dinb]<br>
<br>
\startuseMPgraphic{mpglogo}<br>
   path p;<br>
   p := (0,0)--(100,0)--(100,100)--(0,100)--cycle ;<br>
   path q;<br>
   q := p cornered 30pt;<br>
   draw q withcolor black withpen pencircle scaled 7pt ;<br>
\stopuseMPgraphic<br>
<br>
\startsetups[letter:layer:lettermain]<br>
   \scale[width=25mm,height=25mm]{\useMPgraphic{mpglogo}}<br>
\stopsetups<br>
<br>
\setupletterlayer<br>
   [lettermain]<br>
   [alternative=setups,<br>
    x=160mm,<br>
    y=17mm]<br>
<br>
\startletter<br>
\dorecurse{3}{\input knuth \par}<br>
\stopletter<br>
<br>
<br>
Another way to place content in the background is to use the “paper” (or <br>
“text”) background which isn’t used by the letter module and your <br>
settings won’t be overloaded.<br>
<br>
Wolfgang<br>
</div></div></div></div></div>