From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46554 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: specific document layout with ConTeXt Date: Sun, 28 Dec 2008 14:50:02 -0500 (EST) Message-ID: References: <4956D817.5050806@mos6581.org> <87abag5dex.fsf@cordelia.devereux.me.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230493976 27257 80.91.229.12 (28 Dec 2008 19:52:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Dec 2008 19:52:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 28 20:54:02 2008 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 1LH1i4-00062b-1f for gctc-ntg-context-518@m.gmane.org; Sun, 28 Dec 2008 20:54:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9EEAE1FC3E; Sun, 28 Dec 2008 20:52:44 +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 24274-01-2; Sun, 28 Dec 2008 20:51:29 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5B0D61FC14; Sun, 28 Dec 2008 20:51:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AF87F1FBEF for ; Sun, 28 Dec 2008 20:51:27 +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 24274-01 for ; Sun, 28 Dec 2008 20:50:55 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with ESMTP id 30A1A1FC16 for ; Sun, 28 Dec 2008 20:50:55 +0100 (CET) Original-Received: FROM [192.168.2.8] (c-71-234-195-113.hsd1.ct.comcast.net [71.234.195.113]) BY tombraider.mr.itd.umich.edu ID 4957D89D.9B217.8771 ; 28 Dec 2008 14:50:53 -0500 In-Reply-To: <87abag5dex.fsf@cordelia.devereux.me.uk> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:46554 Archived-At: On Sun, 28 Dec 2008, John Devereux wrote: > Aditya Mahajan writes: > > In general I find other peoples "templates" very educational. > >> PS: In your environment file you have >> >> \setuplayout[ >> header = 0pt, >> footer = 0pt, >> headerdistance = 0pt, >> footerdistance = 0pt, >> top = 1.125in, >> topdistance = 0pt, >> bottom = 1.125in, >> bottomdistance = 0pt, >> leftedge = 0.85in, >> rightedge = 0.85in, >> height = fit] >> >> ConTeXt will silently ignore all of this. You must not have space >> between keywords and options. Write this as > > I've been using context, on and off, for 5 years and I did not know > that! > > Does anyone know if there is a way to get context to stop when it sees > an unknown option, instead of silently ignoring it? The way this is dealt with in the core is by specifying options using \c!header, etc. This has two advantages: First we get a multi-lingual interface for free. Second any typos in the keys are caught. This does not catch "mistakes" like giving an new option to a command, for example specifying headstyle=something to \setuphead (headstyle is valid for \setupitemgroup, but not for \setuphead). There is, however, no way of catching "errors" like height= fit, Here context thinks that height is set to " fit" (with the space), and this does not match any of the cases in the code, so is ignored. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________