From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/33412 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: CSS-like coding style Date: Mon, 19 Feb 2007 10:28:58 +0100 Message-ID: <45D96DDA.1090301@wxs.nl> References: <1195309941.20070217180852@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1171877350 8926 80.91.229.12 (19 Feb 2007 09:29:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Feb 2007 09:29:10 +0000 (UTC) Cc: Yatskovsky To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 19 10:29:01 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1HJ4pR-0000PJ-Aw for gctc-ntg-context-518@m.gmane.org; Mon, 19 Feb 2007 10:29:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2F3061FFCE; Mon, 19 Feb 2007 10:26:32 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31722-02-5; Mon, 19 Feb 2007 10:26:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2D11E1FFB4; Mon, 19 Feb 2007 10:26:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2905C1FFBD for ; Mon, 19 Feb 2007 10:26:25 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31722-02-4 for ; Mon, 19 Feb 2007 10:26:22 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id 861EC1FFB3 for ; Mon, 19 Feb 2007 10:26:22 +0100 (CET) Original-Received: from [10.100.1.101] (unverified [10.100.1.101]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 9490 for multiple; Mon, 19 Feb 2007 10:28:49 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) In-Reply-To: X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:33412 Archived-At: Aditya Mahajan wrote: > On Sat, 17 Feb 2007, Vyatcheslav Yatskovsky wrote: > > >> Hello, >> I'm puzzled with an odd thing. If I try to adopt CSS-like coding style, >> >> \setuptyping[ >> before={ >> \blank[2*big] >> \setupinterlinespace[line=1ex] >> }, >> after={} >> ] >> > > >> \setuppagenumbering[ >> location=bottom >> ] >> > > I am not sure this will work. Maybe, since footer is the default, it > is hard to notice the difference between footer and bottom. > > > >> works perfectly. But >> >> \setuplayout[ >> topspace=0cm, >> bottomspace=2cm, >> rightmargin=2cm, >> width=fit, >> height=fit >> ] >> >> fails and accepts only >> >> \setuplayout[ >> topspace=0cm, >> bottomspace=2cm, >> rightmargin=2cm, >> width=fit, >> height=fit] >> >> What is the rule behind this? :( >> > > The general rule of thumb, add a comma at the end of all your values, > > so > > \setuplayout[ > .... > height=fit, > ] > > will work perfectly. > \startsetups mine all kind of code \stopsetups \setups[mine] also works ok, since in setups mode, spaces are ignores (so when needed, use \space) \startsetups footer pagenumber: \pagenumber \quad Okay \stopsetups \setupfootertexts[\setups{footer}] \doifelse {whatever} {value} { ... } { ... } also works out ok in setups (no funny spaces) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------