From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14884 Path: main.gmane.org!not-for-mail From: "Rolf Marvin B e Lindgren" Newsgroups: gmane.comp.tex.context Subject: [Q] (newbie) typesetting to grid in layer with widgets Date: Thu, 11 Mar 2004 09:10:08 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1079023724 29133 80.91.224.253 (11 Mar 2004 16:48:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Mar 2004 16:48:44 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Mar 11 17:48:34 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 1B1TMH-0002YM-00 for ; Thu, 11 Mar 2004 17:48:33 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 6E71F10B3D; Thu, 11 Mar 2004 17:46:07 +0100 (MET) Original-Received: from pat.uio.no (pat.uio.no [129.240.130.16]) by ref.ntg.nl (Postfix) with ESMTP id 6038010AFC for ; Thu, 11 Mar 2004 09:07:50 +0100 (MET) Original-Received: from mail-mx3.uio.no ([129.240.10.44]) by pat.uio.no with esmtp (Exim 4.20) id 1B1LGf-0006pP-Ps for ntg-context@ntg.nl; Thu, 11 Mar 2004 09:10:13 +0100 Original-Received: from ulrik.uio.no ([129.240.12.4]) by mail-mx3.uio.no with esmtp (Exim 4.14) id 1B1LGb-0000xw-AI for ntg-context@ntg.nl; Thu, 11 Mar 2004 09:10:09 +0100 Original-Received: from aqualene.uio.no ([129.240.200.251]) by ulrik.uio.no with esmtp (Exim 2.12 #7) id 1B1LGb-0007ay-00 for ntg-context@ntg.nl; Thu, 11 Mar 2004 09:10:09 +0100 Original-Received: from roffe by aqualene.uio.no with local (Exim 4.22) id 1B1LFk-0005YN-Ep for ntg-context@ntg.nl; Thu, 11 Mar 2004 09:09:16 +0100 X-Mailer: emacs 21.3.50.1 (via feedmail 8 I) Original-To: ntg-context@ntg.nl Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEUqAQHQOgljCgBKAwD1 27iCEwCHIw6Fhwi7AAAB00lEQVR4nGXSQY7cIBAF0JI4AZGn10khvLZcStbTM8gHQMLruHvg /kfIL8Bte4J60eIZflFAIXwFe1stRjgPAizFV7Df4F5yWktKm7XDBZaCeR2bbaMy3e0tpnKB Sgr+On8rKrqVL2uuER0y/iq8IxhjfUHpsGA2unnc9tl9xYJ9WDitURflVB5jqYBjRGb2WOdT yTE6z4AhIILZiQATPtf/fgtkLfPKLBN5B7D2QSIjINxnfMpCBvvVnkWFARne/XasO/k4amFv LGPR8KckJEj/HhVHXtsB/2Rn2M3cD39DCe0cvzLXklqP9ShrzQg210r72LBktUO7jzMUhHRI PvHsTxJThU+WWXv1AqS3cJxIzNyn0a+8tnILTkHS98LxEzpfb/DhiMjIBeor+VCgY6+UO7wL 0US0AwOGBkbqQNGse6HeDoLLINKusKI/YKor6r1oD3ZY6mQHNNlrtkIwroVwu/oTsE5PZlbg EzydhiO+rTrgUxoYzXEnWMxkpi4wlNshGJFjsxlvYgd0l/bNLvCczoDHM3T4+Ab9PpB+BX0o pcHzP5gqhKVD6yXq/UEN9njpb/ht2qEv6s33P+mA8PfVYq6P4AVLa4jr8weE1kP8at4/g8Pp baHxzqMAAAAASUVORK5CYII= User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (darwin) X-MailScanner-Information: This message has been scanned for viruses/spam. Contact postmaster@uio.no if you have questions about this scanning X-UiO-MailScanner: No virus found X-UiO-Spam-info: not spam, SpamAssassin (score=0, required 12) 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:14884 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14884 [firt message still waits for moderator approval, here's a new and improved version] I'm giving ConTeXt a first go in typesetting a diploma. I've figured out that I'd like to try to typeset to a five-column grid. Most of the stuff should be centered against the third column, while some stuff should be centered to the second and fourth column. This makes for a very boring diploma, but that's beside the point at this stage. I want 1-inch borders throughout, so before \starttext, I have \setuplayout[paperheight=29.97cm,paperwidth=21cm,leftmargin=1cm,rightmargin=1cm,header=1cm,footer=1cm,textwidth=19cm,textheight=27.97cm] (I pretend that marginpars don't exist. I'm sure they'll come back and haunt me). Furthermore, before \starttext, I set up the layers I think I need with \setuplayout[grid=yes,columndistance=12pt,columns=5]\showgrid \definelayer [text] \setupbackgrounds [text] [background=text] (The showgrid is there because I like to see what I'm doing). Then I have, say, \setlayer[text][column=3,line=7,x=0.5\layoutcolumnwidth,location=c]{% Diploma awarded to} now, _is_ this the smartest way to do this? 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? (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? 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? thank you, -- Rolf Lindgren http://www.roffe.com/ roffe@tag.uio.no