From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80268 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: [***Spam/VIR***] Re: Layer vs. overlay Date: Tue, 15 Jan 2013 07:25:04 -0500 (EST) Message-ID: References: <3608C682-5ACB-4006-9CC7-9D848CB5BFC0@gmail.com> <37BA1BD5-D127-4A53-887A-92F5C19FF3A0@gmail.com> <10BF7AFF-32C7-4C8C-A1C6-538C9EB591EA@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-836738808-1358252710=:11856" X-Trace: ger.gmane.org 1358252729 1942 80.91.229.3 (15 Jan 2013 12:25:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jan 2013 12:25:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 15 13:25:47 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tv5aL-0002Wf-Np for gctc-ntg-context-518@m.gmane.org; Tue, 15 Jan 2013 13:25:45 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 49874101F2; Tue, 15 Jan 2013 13:25:29 +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 iC328GpJtFoy; Tue, 15 Jan 2013 13:25:24 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 055B2101E5; Tue, 15 Jan 2013 13:25:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9D6CF101E5 for ; Tue, 15 Jan 2013 13:25:22 +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 GRzb0T-puw2W for ; Tue, 15 Jan 2013 13:25:17 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 02DFE101E2 for ; Tue, 15 Jan 2013 13:25:16 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0FCPCs8010513 for ; Tue, 15 Jan 2013 13:25:15 +0100 Original-Received: FROM mint (bas3-montreal02-1096680382.dsl.bell.ca [65.94.3.190]) By hellskitchen.mr.itd.umich.edu ID 50F54AA6.724E1.18619 ; Authuser adityam; 15 Jan 2013 07:25:10 EST In-Reply-To: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NIMcpcTG - 0e4dd7ccc0ea - 20130115 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:80268 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-836738808-1358252710=:11856 Content-Type: TEXT/PLAIN; charset=iso-8859-2; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 15 Jan 2013, Proch=E1zka Luk=E1=B9 Ing. - Pontex s. r. o. wrote: > (Finally: I'd like to achieve a Lua function which will copy all pages of= a=20 > .pdf file, keeping size of each page, and adding a customizable string wi= th=20 > page-in-the-pdf number (with default value "/"), being= =20 > placed to the right top corner of the i-th page. All to be provided by Lu= a.) A few years ago I wrote a module that, amongst other things, did this.=20 (The mail purpose of the module was to cut 2 column journal papers to one= =20 column PDF so that they are easy to read on an eink reader. I haven't used= =20 this in a while, so it may not work out of the box). https://github.com/adityam/cut-n-paste/blob/master/tex/context/third/cut-n-= paste/t-cut-n-paste.tex In this case, I used a MetaPost overylay to draw the page number (search=20 for cnp:text). The user could manipulate the location of the page number=20 by using the location key (which had to be a valid Metapost pair). Aditya --8323329-836738808-1358252710=:11856 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 ___________________________________________________________________________________ --8323329-836738808-1358252710=:11856--