From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85457 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Intermediate format Date: Mon, 25 Nov 2013 15:30:34 -0500 (EST) Message-ID: References: <007a01cee94b$e7b10480$b7130d80$@tosovsky@email.cz> <5293A3E2.1040803@wxs.nl> <008301ceea1a$04df85d0$0e9e9170$@tosovsky@email.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1385411439 3548 80.91.229.3 (25 Nov 2013 20:30:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2013 20:30:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 25 21:30:46 2013 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 1Vl2nt-00066a-Pp for gctc-ntg-context-518@m.gmane.org; Mon, 25 Nov 2013 21:30:45 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 103EE10258; Mon, 25 Nov 2013 21:30:45 +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 QSVejc5yYwV0; Mon, 25 Nov 2013 21:30:42 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id EF3A310200; Mon, 25 Nov 2013 21:30:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CE66610200 for ; Mon, 25 Nov 2013 21:30:40 +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 uxoisNGk-IbV for ; Mon, 25 Nov 2013 21:30:40 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id E397C101EF for ; Mon, 25 Nov 2013 21:30:39 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAPKUbj5017924 for ; Mon, 25 Nov 2013 21:30:38 +0100 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By tombraider.mr.itd.umich.edu ID 5293B36C.17DB.16361 ; Authuser adityam; 25 Nov 2013 15:30:36 EST In-Reply-To: <008301ceea1a$04df85d0$0e9e9170$@tosovsky@email.cz> User-Agent: Alpine 2.03 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48105; latitude=42.3241; longitude=-83.7113; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.3241,-83.7113&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07KRUuB25 - 50f45bfea257 - 20131125 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:85457 Archived-At: On Mon, 25 Nov 2013, Jan Tosovsky wrote: > On 2013-11-25 Hans Hagen wrote: >> On 11/24/2013 8:32 PM, Jan Tosovsky wrote: >>> >>> is it possible to get the complete representation of the layout that >>> is processed in the luatex PDF generator? >>> >>> I mean coordinations of individual text boxes, their dimensions etc. >>> >>> Actually, I'd like to retrieve the page number and vertical position >>> of my object with a specific id (reference) to be able to perform PDF >>> post-processing. >> >> \starttext >> >> we are here: \setposition{crap}(\MPx{crap},\MPy{crap}) >> >> \stoptext > > Thanks! Looks promising, Actually I'd like to print it into a log or > somewhere else, not into the document itself. But I need also the page > number. Every record should be ideally in the form: ID;page-number;Y-coord. \setposition{id} \message{id:\MPp{id};\MPy{id};\MPx{id}} should work (untested). Then you can parse the log file. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________