ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Use of  a layer for a letterhead
@ 2014-11-17  7:53 jdh
  2014-11-17  7:56 ` Fwd: Layer for Letterhead( minimum example) jdh
  0 siblings, 1 reply; 3+ messages in thread
From: jdh @ 2014-11-17  7:53 UTC (permalink / raw)
  To: ConTeXt Typesetting


I have created a letterhead layer, which works well for the first page 
of a multi-page document.  I want it to be repeated for each page of a 
document.

How can that be done or does anyone have any pointers or tips on how I 
can do that?

Thank You
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Fwd: Layer for Letterhead( minimum example)
  2014-11-17  7:53 Use of a layer for a letterhead jdh
@ 2014-11-17  7:56 ` jdh
  2014-11-17  8:24   ` Otared Kavian
  0 siblings, 1 reply; 3+ messages in thread
From: jdh @ 2014-11-17  7:56 UTC (permalink / raw)
  To: ConTeXt Typesetting

[-- Attachment #1: Type: text/plain, Size: 365 bytes --]


SORRY I forgot to attach a minimum example. I'll attach it.
It is a plain text file wit an .mkiv file extension.

I have created a letterhead layer, which works well for the first page
of a multi-page document.  I want it to be repeated for each page of a
document.

How can that be done or does anyone have any pointers or tips on how I
can do that?

Thank You



[-- Attachment #2: minimum-example.mkiv --]
[-- Type: text/plain, Size: 738 bytes --]

%
% Start of Context Document Example
\definelayer
  [Logo]                      % name of the layer we are defining
  [
    x=0mm, y=0mm,           % x,y coord where center of layer should be.? (=10,10)
    hoffset=0mm,voffset=0mm, % offset from where?  left side? ndn topside?  
    location={right,top}      % relative location withing a layer area
  ]


\starttext

\setlayer[Logo][x=75mm,y=13mm]
    { \bTABLE[frame=off]
             \bTR  \bTD Company Name \eTD  \eTR
             \bTR  \bTD Address..... \eTD  \eTR
         \eTABLE
     } 

\setupbackgrounds[page][background=Logo]

\title{Hello Mr. Smith}

I do hope that all is going well for you.

\dorecurse{5}{\input knuth \par}
\stoptext

%
% End of Context Document example

[-- Attachment #3: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Layer for Letterhead( minimum example)
  2014-11-17  7:56 ` Fwd: Layer for Letterhead( minimum example) jdh
@ 2014-11-17  8:24   ` Otared Kavian
  0 siblings, 0 replies; 3+ messages in thread
From: Otared Kavian @ 2014-11-17  8:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

The key you have to use is 
	state=repeat
in the definition of your layer:

\definelayer[Logo][state=repeat]
\starttext
\setlayer[Logo][x=75mm,y=13mm]
    { \bTABLE[frame=off]
             \bTR  \bTD Company Name \eTD  \eTR
             \bTR  \bTD Address..... \eTD  \eTR
         \eTABLE
     } 

\setupbackgrounds[page][background=Logo]

\title{Hello Mr. Smith}

I do hope that all is going well for you.

\dorecurse{5}{\input knuth \par}
\stoptext

Best regards: OK

> On 17 Nov 2014, at 08:56, jdh <dhenman@gmail.com> wrote:
> 
> 
> SORRY I forgot to attach a minimum example. I'll attach it.
> It is a plain text file wit an .mkiv file extension.
> 
> I have created a letterhead layer, which works well for the first page
> of a multi-page document.  I want it to be repeated for each page of a
> document.
> 
> How can that be done or does anyone have any pointers or tips on how I
> can do that?
> 
> Thank You
> 
> 
> <minimum-example.mkiv>___________________________________________________________________________________
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2014-11-17  8:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-17  7:53 Use of a layer for a letterhead jdh
2014-11-17  7:56 ` Fwd: Layer for Letterhead( minimum example) jdh
2014-11-17  8:24   ` Otared Kavian

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).