From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14885 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: typesetting to grid in layer with widgets Date: Fri, 12 Mar 2004 00:04:45 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <6.0.1.1.2.20040311235949.01bf2630@server-1> References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1079047441 22462 80.91.224.253 (11 Mar 2004 23:24:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Mar 2004 23:24:01 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Fri Mar 12 00:23:52 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1ZWq-0001Vx-00 for ; Fri, 12 Mar 2004 00:23:52 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 94AD610B5B; Fri, 12 Mar 2004 00:21:16 +0100 (MET) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id 2C46D10B07 for ; Fri, 12 Mar 2004 00:19:27 +0100 (MET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mail.solcon.nl (8.12.10/SQL-8.12.10-1/8.12.5) with ESMTP id i2BNLX4b024591 for ; Fri, 12 Mar 2004 00:21:33 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 31CBA17D7A; Fri, 12 Mar 2004 00:21:41 +0100 (CET) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id E531417A22 for ; Thu, 11 Mar 2004 23:21:36 +0000 (UTC) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Original-To: ntg-context@ntg.nl In-Reply-To: Original-References: X-AntiVirus: checked by Vexira Milter 1.0.6; VAE 6.24.0.6; VDF 6.24.0.51 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:14885 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14885 At 09:10 11/03/2004, you wrote: >\setlayer[text][column=3,line=7,x=0.5\layoutcolumnwidth,location=c]{% > Diploma awarded to} > > >now, _is_ this the smartest way to do this? \setlayerframed [text] [...] [framed settings] {} may give you some more control and insight (you can always turn of the frame later) >furthermore, I'd like to allow for input into fields from Acrobat. I >have this: > >\definefield[CertID][text][CertIDSetup][] >\setupfield[CertIDSetup][% > readonly=no,printable=yes,width=4em,% > frame=on,height=8mm,offset=5ex] > >\myCenter{3}{11}{Sertifikat Nr. DNV-2004-OSL-PERS-\field[CertID]} > >trouble is, the _field_ is aligned to the baseline, whereas I'd like >the text _of_ the field to be thus aligned. any suggestiosn? fields (and text in there) don't have a concept of a baseline (unfortunately), so depending on the situation, you may want to lower the text \hbox{\lower2pt\hbox{\field[...]}} and so (i need to look into pdf 1.5 to see if there are better ways now) >(as a matter of fact, the problem with this approach is that text >cannot ever be centered becaue TeX need to know the dimensions at >typesetting time - which isn't known until the user has interacted. is >there, say, JavaScript magic that could be done in order to have text >centered after it has been input? doesn't align=middle work? >and on a sitenote, > >I'd like to have a frame around the entire page. Preferably, I'd like >to be able to place it using numerical coordinates (absolute or >relative, set to a layer or not). Is this, or something close to it, >possible? i often use metapost for that (see metafun manual) \defineoverlay[xxx][\useMPgraphic{xxx}] \startuseMPgraphic{xxx} StartPage ; draw Page enlarged -3cm withpen pencircle scaled 1cm ; StopPage ; \stopuseMPgraphic \setupbackgrounds[page][background=xxx] etc etc hans