Fabrice Couvreur via ntg-context schrieb am 24.08.2021 um 19:32:
Hi,
I want to insert a logo at the bottom of the page on the right on the first page, on the left on the second, on the right on the third ...
With the key repeat=yes, the logo is always at the bottom right

\useMPlibrary[dum]

\definelayer
  [MyLogo]
  [doublesided=yes,
   width=\paperwidth,
   height=\paperheight,
   repeat=yes]

\setupbackgrounds [page] [background=MyLogo]

\setuppagenumbering [alternative=doublesided]

\setlayer
  [MyLogo]
  [left]
  [preset=leftbottom,
   x=\dimexpr\cutspace-\rightmargindistance-\rightmarginwidth\relax,
   y=\bottomspace]
  {\externalfigure[dum][width=\rightmarginwidth,height=\footerheight]}

\setlayer
  [MyLogo]
  [right]
  [preset=rightbottom,
   x=\dimexpr\cutspace-\rightmargindistance-\rightmarginwidth\relax,
   y=\bottomspace]
  {\externalfigure[dum][width=\rightmarginwidth,height=\footerheight]}

\showframe

\starttext
\dorecurse{20}{\samplefile{lorem}}
\stoptext

Wolfgang

___________________________________________________________________________________
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