ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* getting text outside cropmarks to work
@ 2014-02-05 15:45 Lars Huttar
  2014-02-05 16:03 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Huttar @ 2014-02-05 15:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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.


I tried it with both marking=text and marking=on, but in either case, I
get neither crop marks nor the text.
(In our real document, I was able to get crop marks with [marking=on].
But not text. And haven't figured out how to get crop marks in a MWE.)


Relevant guidance I've been trying to follow:
http://wiki.contextgarden.net/Imposition#Cut_marks
http://context.markmail.org/thread/kpayudrtabsti76i

Thanks for any help on how to get text (pagecutmarkbottomtext) to appear
outside the crop marks.

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
___________________________________________________________________________________


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

* Re: getting text outside cropmarks to work
  2014-02-05 15:45 getting text outside cropmarks to work Lars Huttar
@ 2014-02-05 16:03 ` Wolfgang Schuster
  2014-02-05 16:30   ` Lars Huttar
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2014-02-05 16:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 05.02.2014 um 16:45 schrieb Lars Huttar <lars_huttar@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
___________________________________________________________________________________


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

* Re: getting text outside cropmarks to work
  2014-02-05 16:03 ` Wolfgang Schuster
@ 2014-02-05 16:30   ` Lars Huttar
  2014-02-06 15:12     ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Huttar @ 2014-02-05 16:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 2/5/2014 11:03 AM, Wolfgang Schuster wrote:
> Am 05.02.2014 um 16:45 schrieb Lars Huttar <lars_huttar@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
___________________________________________________________________________________


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

* Re: getting text outside cropmarks to work
  2014-02-05 16:30   ` Lars Huttar
@ 2014-02-06 15:12     ` Wolfgang Schuster
  2014-02-06 16:23       ` Lars Huttar
  2014-02-07 15:17       ` Lars Huttar
  0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2014-02-06 15:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


Am 05.02.2014 um 17:30 schrieb Lars Huttar <lars_huttar@sil.org>:

> On 2/5/2014 11:03 AM, Wolfgang Schuster wrote:
>> Am 05.02.2014 um 16:45 schrieb Lars Huttar <lars_huttar@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

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

[-- Attachment #2: 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] 8+ messages in thread

* Re: getting text outside cropmarks to work
  2014-02-06 15:12     ` Wolfgang Schuster
@ 2014-02-06 16:23       ` Lars Huttar
  2014-02-07 15:17       ` Lars Huttar
  1 sibling, 0 replies; 8+ messages in thread
From: Lars Huttar @ 2014-02-06 16:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 2/6/2014 10:12 AM, Wolfgang Schuster wrote:
>
> Am 05.02.2014 um 17:30 schrieb Lars Huttar <lars_huttar@sil.org
> <mailto:lars_huttar@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
___________________________________________________________________________________


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

* Re: getting text outside cropmarks to work
  2014-02-06 15:12     ` Wolfgang Schuster
  2014-02-06 16:23       ` Lars Huttar
@ 2014-02-07 15:17       ` Lars Huttar
  2014-02-07 15:21         ` Wolfgang Schuster
  1 sibling, 1 reply; 8+ messages in thread
From: Lars Huttar @ 2014-02-07 15:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 2/6/2014 10:12 AM, Wolfgang Schuster wrote:
>
> Am 05.02.2014 um 17:30 schrieb Lars Huttar <lars_huttar@sil.org
> <mailto:lars_huttar@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
___________________________________________________________________________________


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

* Re: getting text outside cropmarks to work
  2014-02-07 15:17       ` Lars Huttar
@ 2014-02-07 15:21         ` Wolfgang Schuster
  2014-02-11 15:38           ` Lars Huttar
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2014-02-07 15:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 07.02.2014 um 16:17 schrieb Lars Huttar <lars_huttar@sil.org>:

> On 2/6/2014 10:12 AM, Wolfgang Schuster wrote:
>> 
>> Am 05.02.2014 um 17:30 schrieb Lars Huttar <lars_huttar@sil.org
>> <mailto:lars_huttar@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
___________________________________________________________________________________


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

* Re: getting text outside cropmarks to work
  2014-02-07 15:21         ` Wolfgang Schuster
@ 2014-02-11 15:38           ` Lars Huttar
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Huttar @ 2014-02-11 15:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 2/7/2014 10:21 AM, Wolfgang Schuster wrote:
> Am 07.02.2014 um 16:17 schrieb Lars Huttar <lars_huttar@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
___________________________________________________________________________________


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

end of thread, other threads:[~2014-02-11 15:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-05 15:45 getting text outside cropmarks to work Lars Huttar
2014-02-05 16:03 ` Wolfgang Schuster
2014-02-05 16:30   ` Lars Huttar
2014-02-06 15:12     ` Wolfgang Schuster
2014-02-06 16:23       ` Lars Huttar
2014-02-07 15:17       ` Lars Huttar
2014-02-07 15:21         ` Wolfgang Schuster
2014-02-11 15:38           ` Lars Huttar

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