ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Place a logo at the bottom of the page with a layer
@ 2021-08-24 17:32 Fabrice Couvreur via ntg-context
  2021-08-24 18:21 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Couvreur via ntg-context @ 2021-08-24 17:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur


[-- Attachment #1.1: Type: text/plain, Size: 689 bytes --]

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
Thanks
Fabrice

\useMPlibrary[dum]

\definelayer
   [MyLogo]
   [x=0mm, y=0mm,
    width=\paperwidth,
    height=\paperheight,
    repeat=yes]


\setupbackgrounds[page][background=MyLogo]

\setlayer
  [MyLogo]
  [hoffset=\dimexpr\textwidth+\backspace+\rightmargindistance\relax,
   voffset=\dimexpr\topspace+\textheight+\footerheight\relax]
   {\externalfigure[dum][width=\rightmarginwidth,height=\headerheight]}

\showframe

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

[-- Attachment #1.2: Type: text/html, Size: 2260 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Place a logo at the bottom of the page with a layer
  2021-08-24 17:32 Place a logo at the bottom of the page with a layer Fabrice Couvreur via ntg-context
@ 2021-08-24 18:21 ` Wolfgang Schuster via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-08-24 18:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Fabrice Couvreur via ntg-context
  Cc: Wolfgang Schuster

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-24 18:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24 17:32 Place a logo at the bottom of the page with a layer Fabrice Couvreur via ntg-context
2021-08-24 18:21 ` Wolfgang Schuster via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).