From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86208 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: getting text outside cropmarks to work Date: Thu, 6 Feb 2014 16:12:06 +0100 Message-ID: <11A78AA5-49F1-4F31-9A33-442832DDC027@gmail.com> References: <52F25CAE.1000209@sil.org> <52F26722.3020206@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: multipart/mixed; boundary="===============2030716198==" X-Trace: ger.gmane.org 1391699552 26539 80.91.229.3 (6 Feb 2014 15:12:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Feb 2014 15:12:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 06 16:12:41 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WBQd6-0006Hh-HU for gctc-ntg-context-518@m.gmane.org; Thu, 06 Feb 2014 16:12:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A5CE2101E1; Thu, 6 Feb 2014 16:12:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tvVsumlqOYQj; Thu, 6 Feb 2014 16:12:37 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 69E49101E2; Thu, 6 Feb 2014 16:12:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 47038101E2 for ; Thu, 6 Feb 2014 16:12:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ixF5CZLYy2Sz for ; Thu, 6 Feb 2014 16:12:34 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 1102F101E1 for ; Thu, 6 Feb 2014 16:12:23 +0100 (CET) Original-Received: from mail-ee0-x236.google.com (mail-ee0-x236.google.com [IPv6:2a00:1450:4013:c00::236]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s16FCABs005501 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 6 Feb 2014 16:12:10 +0100 Original-Received: by mail-ee0-f54.google.com with SMTP id e53so944553eek.41 for ; Thu, 06 Feb 2014 07:12:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=qlP8PNYmF0pkwHZRiGMXJD8W6wX4kwycPi28zYi0Ldo=; b=GNWdUmwWgPhBVx8qX23ja25YzQVLiwUPmFY15ev7L7uQgtjpuT3a7RC9Xzm3a+6rsV OL8fxFAcvQjovbuqLxbLbZ23uR/9LV5icqaObFs5wAACPz7W0fYpMNLX5XqjODmtQxOv S/fMy/BLCmv3PL4L7WW4Bt5nCrUwJ1w1M5QJwO9e3B7gLDy0BjmoLo9Qmlfs1c0RIuye 2TL3THiQw76KD/meYjlLgAHQOy60ytAOqxuF3hYBJA9+eRr9s5PisQzq6YmexLillbve j6UQj3xwNgzBqBj6GC/ESu4GmPGJNAtctb2YwSEvKLSzfS7TXRKcFR8ZtvD7Mnvf56rV cHJA== X-Received: by 10.15.111.201 with SMTP id cj49mr9446874eeb.56.1391699530007; Thu, 06 Feb 2014 07:12:10 -0800 (PST) Original-Received: from keima.localdomain (x2f2560f.dyn.telefonica.de. [2.242.86.15]) by mx.google.com with ESMTPSA id j41sm4674557eeg.10.2014.02.06.07.12.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Feb 2014 07:12:08 -0800 (PST) In-Reply-To: <52F26722.3020206@sil.org> X-Mailer: Apple Mail (2.1827) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::236; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Ln3caS0 - ab089ec50da4 - 20140206 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86208 Archived-At: --===============2030716198== Content-Type: multipart/alternative; boundary="Apple-Mail=_3A97BE50-5963-4A5E-AA2E-0CF32664BB2F" --Apple-Mail=_3A97BE50-5963-4A5E-AA2E-0CF32664BB2F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 05.02.2014 um 17:30 schrieb Lars Huttar : > On 2/5/2014 11:03 AM, Wolfgang Schuster wrote: >> Am 05.02.2014 um 16:45 schrieb Lars Huttar : >>=20 >>> Hello, >>>=20 >>> Under mkii we used to have a running footer that appeared below the = crop >>> marks. Under mkiv I can't get that to work. >>>=20 >>> The MWE I'm trying (with ConTeXt mkiv from the TeXLive 2013 CD): >>>=20 >>> \def\TopText { Top Text } >>>=20 >>> \def\BottomText { Bottom Text } >>>=20 >>> \def\pagecutmarksymbol {\the\realpageno} >>>=20 >>> \def\pagecutmarklength {.5cm} >>>=20 >>> \let\pagecutmarktoptext \TopText >>>=20 >>> \let\pagecutmarkbottomtext \BottomText >>>=20 >>> \setuplayout[marking=3Dtext] >>>=20 >>> %\setuplayout[marking=3Don] >>>=20 >>> \starttext >>>=20 >>> \input knuth >>>=20 >>> \stoptext >>>=20 >>> Code like this used to work for us in mkii. >> Redefining internal commands isn=92t a good solution, what you can do = is to use a layer to place your texts. >>=20 >=20 > Thanks for your reply. >=20 > When you say "redefining internal commands", is that referring to > statements like >=20 > \let\pagecutmarktoptext \TopText >=20 > ? >=20 > 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=3DTEXT as an option for \setuplayout. If = this is correct, how is one supposed to specify the text to display? >=20 > Am I misunderstanding the documentation, or is it just obsolete? >=20 > 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=3Dmiddle,marking=3Don] \setupbodyfont[modern] \definelayer[cropmark][width=3D\paperwidth,height=3D\paperheight] \setupbackgrounds[page][background=3Dcropmark] \setlayer[cropmark][preset=3Dmiddlebottom,y=3D-\lineheight]{Bottom Text} \setlayer[cropmark][preset=3Dmiddletop,y=3D-\lineheight]{Top Text} \starttext \input knuth \stoptext Wolfgang= --Apple-Mail=_3A97BE50-5963-4A5E-AA2E-0CF32664BB2F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
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=3Dtext]

%\setuplayout[marki= ng=3Don]

\starttext

\input = knuth

\stoptext

Code like this used to work for us in = mkii.
Redefining internal commands isn=92t 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.co= ntextgarden.net/Imposition#Cut_marks) and by Hans (http://contex= t.markmail.org/thread/kpayudrtabsti76i) albeit several years ago; = the current ref man (section 3.4 Page design / page composition) also = lists marking=3DTEXT 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=3Dmiddle,marking=3Don]
=

\setupbodyfont[modern]

\defin= elayer[cropmark][width=3D\paperwidth,height=3D\paperheight]

=
\setupbackgrounds[page][background=3Dcropmark]

\setlayer[cropmark][preset=3Dmiddlebottom,y=3D-\lineheight]{Botto= m = Text}
\setlayer[cropmark][preset=3Dmiddletop,y=3D-\lineheight]{T= op Text}

\starttext
\input = knuth
\stoptext

Wolfgang
= --Apple-Mail=_3A97BE50-5963-4A5E-AA2E-0CF32664BB2F-- --===============2030716198== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============2030716198==--