From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18788 Path: news.gmane.org!not-for-mail From: "Gerben Wierda" Newsgroups: gmane.comp.tex.context Subject: Learning ConTeXt, typical hurdle Date: Thu, 10 Mar 2005 14:34:42 +0100 (CET) Message-ID: <60028.213.84.141.31.1110461682.squirrel@213.84.141.31> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1110461913 7823 80.91.229.2 (10 Mar 2005 13:38:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2005 13:38:33 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 10 14:38:32 2005 Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1D9Nre-0003Y1-EA for gctc-ntg-context-518@m.gmane.org; Thu, 10 Mar 2005 14:38:11 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7E22F1277C; Thu, 10 Mar 2005 14:38:30 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31036-05; Thu, 10 Mar 2005 14:38:30 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B88CD12780; Thu, 10 Mar 2005 14:34:50 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 96FE812780 for ; Thu, 10 Mar 2005 14:34:48 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30906-05 for ; Thu, 10 Mar 2005 14:34:47 +0100 (CET) Original-Received: from post-24.mail.nl.demon.net (post-24.mail.nl.demon.net [194.159.73.194]) by ronja.ntg.nl (Postfix) with ESMTP id 5EF6B1277C for ; Thu, 10 Mar 2005 14:34:47 +0100 (CET) Original-Received: from ii2.demon.nl ([82.161.98.36]:21276 helo=mail.rna.nl) by post-24.mail.nl.demon.net with esmtp (Exim 4.43) id 1D9NoN-000Or8-3z for ntg-context@ntg.nl; Thu, 10 Mar 2005 13:34:47 +0000 Original-Received: from mail.rna.nl (localhost [127.0.0.1]) by mail.rna.nl (Postfix) with ESMTP id 773BE638E4 for ; Thu, 10 Mar 2005 14:34:42 +0100 (CET) Original-Received: from 213.84.141.31 (SquirrelMail authenticated user gerben); by mail.rna.nl with HTTP; Thu, 10 Mar 2005 14:34:42 +0100 (CET) Original-To: ntg-context@ntg.nl User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a X-Priority: 3 (Normal) Importance: Normal Original-References: In-Reply-To: X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: news.gmane.org gmane.comp.tex.context:18788 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18788 Maybe I should start a blog somewhere... Anyway, I have started my "conversion to ConTeXT" project. So, I used the fiee perl script to set up my project. Then I started to fill things in. Everything is still in one directory (I do not understand directory searching in ConTeXt yet and I haven't seen a example for a boo= k project). So, I have a project file: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D % output=3Dpdf interface=3Den \usemodule[bib] \startproject project_teoada \environment env_teoada % \showlayout % \showgrid % \showbodyfontenvironment \product prd_book \stopproject =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D A product file: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D \startproduct prd_book \project project_teoada \startfrontmatter \component c_introduction \stopfrontmatter \component c_chapter1 \component c_chapter2 \component c_chapter3 \component c_chapter4 \component c_chapter5 \component c_chapter6 \component c_chapter7 \startbackmatter \component c_appendixa \component c_appendixb \stopbackmatter \stopproduct =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D I defined a description environment to replace LaTeX's description. In th= e environment file: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D \startenvironment env_teoada \project project_teoada \definedescription [description] [location=3Dhanging, margin=3Dstandard, headstyle=3Dbold] \definestartstop [descriptions] [before=3D\blank\startpacked, after=3D\stoppacked\blank] \stopenvironment =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D And I put some info in c_introduction.tex. There I used the description thingy: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D \startcomponent c_introduction \product prd_book \project project_teoada \starttext \chapter[h:guide]{Guide} \startdescriptions \description{Chapter \in[h:ch1]} Bla bla \description{Chapter \in[h:ch2]} Bla bla \stopdescriptions \stoptext \stopcomponent =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D Now, this fails. Why? I was completely stumped. I get an error message I do not understand: references : unknown reference [][h:ch2] ! Extra }, or forgotten \endgroup. \stopdescriptions ->\dostopattributes \egroup \getvalue {\??be descriptions\... Bla bla \stopdescriptions \@@stopdescription {description}\stoptext \dodowithpar ...cription}[]{Chapter \in [h:ch2]}#1 \@@stopdescription {descri... l.14 ? x Now what turns out to solve this? Empty lines before \description and \stopdescriptions Though I like ConTeXt if I look at certain design aspects, behaviour that depends on whitespace before a command frightens me. G