From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/520 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Clobbered! Date: Sat, 05 Jun 1999 20:54:40 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <37597270.1378161@wxs.nl> References: <3.0.5.32.19990604133848.00a5f2e0@mail.northcoast.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035391372 24656 80.91.224.250 (23 Oct 2002 16:42:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:42:52 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: David Arnold Xref: main.gmane.org gmane.comp.tex.context:520 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:520 David Arnold wrote: > Yesterday, in my work in Up-001-s.pdf, I made good progress until I got to: > > \setupfield > [ShortLine] > [label,frame,horizontal] > [offset=4pt,height=fit,framecolor=green, > background=screen,backgroundscreen=.80] > [height=18pt,width=80pt,align=middle, > background=screen,backgroundscreen=.90,frame=off] > [height=18pt,width=80pt,color=red,align=right,style=type, > background=screen,backgroundscreen=.90,frame=off] > > This absolutely clobbered me! I have no clue what is going on here. There > are three parameters: label, frame, and horizontal. Does > > [offset=4pt,height=fit,framecolor=green, > background=screen,backgroundscreen=.80] > > refer to label, > > [height=18pt,width=80pt,align=middle, > background=screen,backgroundscreen=.90,frame=off] > > to frame, and > > [height=18pt,width=80pt,color=red,align=right,style=type, > background=screen,backgroundscreen=.90,frame=off] > > to horizontal? What is going on here? The main reason for this (complicated) sheme is saving hash entries. Instead of giving each field (there can be thousands in a file) its own set of 50+ parameters, they are saved in a compact form and inherited. I have plans for more (predefined) fieldtypes, including checks in JS. Currently there is one main field type, based on upto 3 framed things: the label, the field and both of them packaged. The first argument of the setupfields defined of there is a label and/or if label and field are next to each other or stacked. This is the vertically stacked one: -------------- | ----- ----- | ||label||field|| | ----- ----- | -------------- The second, third and fourth setting concern these three components and because framed is used, one has a lot of influence on the typo. Some settings have consequences for others (when it makes sense they are inherited). Also, when possible, font settings are also reflected in the widget, so type=slanted indeed gives a slanted field (keyed in). Even sans and mono are supported. \setupfields (plural) affects all fields, and each call adds to the settings. One can reset these default by \setupfields[reset]. For the moment, fields force you to experiment. Sorry. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------