Re: [NTG-context] getting text outside cropmarks to work

2014-02-11 Thread Lars Huttar
On 2/7/2014 10:21 AM, Wolfgang Schuster wrote:
 Am 07.02.2014 um 16:17 schrieb Lars Huttar lars_hut...@sil.org:

 This works for one page, but when I increase the length of the text to
 take multiple pages, the top and bottom text only appears on the first
 page. (Again, using ConTeXt version 2013.05.28 00:36 from the TeX Live CD.)
 How do you make layers, or backgrounds, appear on every page?

 Add “state=repeat” to \definelayer:

   \definelayer[cropmark][state=repeat,width=\paperwidth,height=\paperheight]


It works for me. Thanks again!

Lars

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


Re: [NTG-context] getting text outside cropmarks to work

2014-02-07 Thread Lars Huttar
On 2/6/2014 10:12 AM, Wolfgang Schuster wrote:

 Am 05.02.2014 um 17:30 schrieb Lars Huttar lars_hut...@sil.org
 mailto:lars_hut...@sil.org:

 ...
 If we need to implement this using layers, does anyone have a recent
 example of using a layer to place a running footer outside the crop
 marks?

 \setuppapersize[A4][A3]

 \setuplayout[location=middle,marking=on]

 \setupbodyfont[modern]

 \definelayer[cropmark][width=\paperwidth,height=\paperheight]

 \setupbackgrounds[page][background=cropmark]

 \setlayer[cropmark][preset=middlebottom,y=-\lineheight]{Bottom Text}
 \setlayer[cropmark][preset=middletop,y=-\lineheight]{Top Text}

 \starttext
 \input knuth
 \stoptext



This works for one page, but when I increase the length of the text to
take multiple pages, the top and bottom text only appears on the first
page. (Again, using ConTeXt version 2013.05.28 00:36 from the TeX Live CD.)
How do you make layers, or backgrounds, appear on every page?

Thanks,
Lars

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


Re: [NTG-context] getting text outside cropmarks to work

2014-02-07 Thread Wolfgang Schuster

Am 07.02.2014 um 16:17 schrieb Lars Huttar lars_hut...@sil.org:

 On 2/6/2014 10:12 AM, Wolfgang Schuster wrote:
 
 Am 05.02.2014 um 17:30 schrieb Lars Huttar lars_hut...@sil.org
 mailto:lars_hut...@sil.org:
 
 ...
 If we need to implement this using layers, does anyone have a recent
 example of using a layer to place a running footer outside the crop
 marks?
 
 \setuppapersize[A4][A3]
 
 \setuplayout[location=middle,marking=on]
 
 \setupbodyfont[modern]
 
 \definelayer[cropmark][width=\paperwidth,height=\paperheight]
 
 \setupbackgrounds[page][background=cropmark]
 
 \setlayer[cropmark][preset=middlebottom,y=-\lineheight]{Bottom Text}
 \setlayer[cropmark][preset=middletop,y=-\lineheight]{Top Text}
 
 \starttext
 \input knuth
 \stoptext
 
 
 
 This works for one page, but when I increase the length of the text to
 take multiple pages, the top and bottom text only appears on the first
 page. (Again, using ConTeXt version 2013.05.28 00:36 from the TeX Live CD.)
 How do you make layers, or backgrounds, appear on every page?


Add “state=repeat” to \definelayer:

  \definelayer[cropmark][state=repeat,width=\paperwidth,height=\paperheight]

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


Re: [NTG-context] getting text outside cropmarks to work

2014-02-06 Thread Wolfgang Schuster

Am 05.02.2014 um 17:30 schrieb Lars Huttar lars_hut...@sil.org:

 On 2/5/2014 11:03 AM, Wolfgang Schuster wrote:
 Am 05.02.2014 um 16:45 schrieb Lars Huttar lars_hut...@sil.org:
 
 Hello,
 
 Under mkii we used to have a running footer that appeared below the crop
 marks. Under mkiv I can't get that to work.
 
 The MWE I'm trying (with ConTeXt mkiv from the TeXLive 2013 CD):
 
 \def\TopText { Top Text }
 
 \def\BottomText { Bottom Text }
 
 \def\pagecutmarksymbol {\the\realpageno}
 
 \def\pagecutmarklength {.5cm}
 
 \let\pagecutmarktoptext \TopText
 
 \let\pagecutmarkbottomtext \BottomText
 
 \setuplayout[marking=text]
 
 %\setuplayout[marking=on]
 
 \starttext
 
 \input knuth
 
 \stoptext
 
 Code like this used to work for us in mkii.
 Redefining internal commands isn’t a good solution, what you can do is to 
 use a layer to place your texts.
 
 
 Thanks for your reply.
 
 When you say redefining internal commands, is that referring to
 statements like
 
  \let\pagecutmarktoptext \TopText
 
 ?
 
 AFAICT this is the recommended solution, both on the current wiki 
 (http://wiki.contextgarden.net/Imposition#Cut_marks) and by Hans 
 (http://context.markmail.org/thread/kpayudrtabsti76i) albeit several years 
 ago; the current ref man (section 3.4 Page design / page composition) also 
 lists marking=TEXT as an option for \setuplayout. If this is correct, how is 
 one supposed to specify the text to display?
 
 Am I misunderstanding the documentation, or is it just obsolete?
 
 If we need to implement this using layers, does anyone have a recent
 example of using a layer to place a running footer outside the crop marks?

\setuppapersize[A4][A3]

\setuplayout[location=middle,marking=on]

\setupbodyfont[modern]

\definelayer[cropmark][width=\paperwidth,height=\paperheight]

\setupbackgrounds[page][background=cropmark]

\setlayer[cropmark][preset=middlebottom,y=-\lineheight]{Bottom Text}
\setlayer[cropmark][preset=middletop,y=-\lineheight]{Top Text}

\starttext
\input knuth
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] getting text outside cropmarks to work

2014-02-06 Thread Lars Huttar
On 2/6/2014 10:12 AM, Wolfgang Schuster wrote:

 Am 05.02.2014 um 17:30 schrieb Lars Huttar lars_hut...@sil.org
 mailto:lars_hut...@sil.org:

 ... If we need to implement this using layers, does anyone have a recent
 example of using a layer to place a running footer outside the crop
 marks?

 \setuppapersize[A4][A3]

 \setuplayout[location=middle,marking=on]

 \setupbodyfont[modern]

 \definelayer[cropmark][width=\paperwidth,height=\paperheight]

 \setupbackgrounds[page][background=cropmark]

 \setlayer[cropmark][preset=middlebottom,y=-\lineheight]{Bottom Text}
 \setlayer[cropmark][preset=middletop,y=-\lineheight]{Top Text}

 \starttext
 \input knuth
 \stoptext

 Wolfgang


Thanks, this looks very helpful. I'll give it a try.
Lars


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


Re: [NTG-context] getting text outside cropmarks to work

2014-02-05 Thread Wolfgang Schuster

Am 05.02.2014 um 16:45 schrieb Lars Huttar lars_hut...@sil.org:

 Hello,
 
 Under mkii we used to have a running footer that appeared below the crop
 marks. Under mkiv I can't get that to work.
 
 The MWE I'm trying (with ConTeXt mkiv from the TeXLive 2013 CD):
 
 \def\TopText { Top Text }
 
 \def\BottomText { Bottom Text }
 
 \def\pagecutmarksymbol {\the\realpageno}
 
 \def\pagecutmarklength {.5cm}
 
 \let\pagecutmarktoptext \TopText
 
 \let\pagecutmarkbottomtext \BottomText
 
 \setuplayout[marking=text]
 
 %\setuplayout[marking=on]
 
 \starttext
 
 \input knuth
 
 \stoptext
 
 Code like this used to work for us in mkii.

Redefining internal commands isn’t a good solution, what you can do is to use a 
layer to place your texts.

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


Re: [NTG-context] getting text outside cropmarks to work

2014-02-05 Thread Lars Huttar
On 2/5/2014 11:03 AM, Wolfgang Schuster wrote:
 Am 05.02.2014 um 16:45 schrieb Lars Huttar lars_hut...@sil.org:

 Hello,

 Under mkii we used to have a running footer that appeared below the crop
 marks. Under mkiv I can't get that to work.

 The MWE I'm trying (with ConTeXt mkiv from the TeXLive 2013 CD):

 \def\TopText { Top Text }

 \def\BottomText { Bottom Text }

 \def\pagecutmarksymbol {\the\realpageno}

 \def\pagecutmarklength {.5cm}

 \let\pagecutmarktoptext \TopText

 \let\pagecutmarkbottomtext \BottomText

 \setuplayout[marking=text]

 %\setuplayout[marking=on]

 \starttext

 \input knuth

 \stoptext

 Code like this used to work for us in mkii.
 Redefining internal commands isn’t a good solution, what you can do is to use 
 a layer to place your texts.


Thanks for your reply.

When you say redefining internal commands, is that referring to
statements like

  \let\pagecutmarktoptext \TopText

?

AFAICT this is the recommended solution, both on the current wiki 
(http://wiki.contextgarden.net/Imposition#Cut_marks) and by Hans 
(http://context.markmail.org/thread/kpayudrtabsti76i) albeit several years ago; 
the current ref man (section 3.4 Page design / page composition) also lists 
marking=TEXT as an option for \setuplayout. If this is correct, how is one 
supposed to specify the text to display?

Am I misunderstanding the documentation, or is it just obsolete?

If we need to implement this using layers, does anyone have a recent
example of using a layer to place a running footer outside the crop marks?

Thanks,
Lars

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