From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: getting text outside cropmarks to work
Date: Thu, 6 Feb 2014 16:12:06 +0100 [thread overview]
Message-ID: <11A78AA5-49F1-4F31-9A33-442832DDC027@gmail.com> (raw)
In-Reply-To: <52F26722.3020206@sil.org>
[-- 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
___________________________________________________________________________________
next prev parent reply other threads:[~2014-02-06 15:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-05 15:45 Lars Huttar
2014-02-05 16:03 ` Wolfgang Schuster
2014-02-05 16:30 ` Lars Huttar
2014-02-06 15:12 ` Wolfgang Schuster [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11A78AA5-49F1-4F31-9A33-442832DDC027@gmail.com \
--to=schuster.wolfgang@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).