From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61189 Path: news.gmane.org!not-for-mail From: Peter Schorsch Newsgroups: gmane.comp.tex.context Subject: Re: Porting from MkII to MkIV Date: Wed, 25 Aug 2010 00:23:10 +0200 Message-ID: References: <4C7420DC.1060305@googlemail.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: dough.gmane.org 1282688627 19456 80.91.229.12 (24 Aug 2010 22:23:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Aug 2010 22:23:47 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 25 00:23:44 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oo1uA-0002rW-NV for gctc-ntg-context-518@m.gmane.org; Wed, 25 Aug 2010 00:23:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A10C6CA611; Wed, 25 Aug 2010 00:23:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FRUVdEig1+Fx; Wed, 25 Aug 2010 00:23:39 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1B64CCA60E; Wed, 25 Aug 2010 00:23:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 22D06CA60E for ; Wed, 25 Aug 2010 00:23:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BjbP0o8ydP57 for ; Wed, 25 Aug 2010 00:23:25 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id C1A75CA60B for ; Wed, 25 Aug 2010 00:23:25 +0200 (CEST) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7OMNOM7031414 for ; Wed, 25 Aug 2010 00:23:24 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oo1tn-0002ZX-TW for ntg-context@ntg.nl; Wed, 25 Aug 2010 00:23:19 +0200 Original-Received: from p5490b802.dip.t-dialin.net ([84.144.184.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Aug 2010 00:23:19 +0200 Original-Received: from tralalas by p5490b802.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Aug 2010 00:23:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Followup-To: gmane.comp.tex.context Original-Lines: 43 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p5490b802.dip.t-dialin.net User-Agent: KNode/4.4.2 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.91.229.12; country=NO; region=12; city=Oslo; latitude=59.9167; longitude=10.7500; http://maps.google.com/maps?q=59.9167,10.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rCWmno55 - b5c3b99db21b - 20100825 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:61189 Archived-At: Thanks Wolfgang! Your source code looks a lot different than mine... there are some commands I have not seen before... so I have to learn :-) Unluckily I still get an error message: ! Use of \startPARA doesn't match its definition. l.21 \startPARA[ heading={lorem ipsum},mark=test] What did I wrong? ------------8<-------------- \definenumber[PARANUMBER][way=bysection,prefixsegments=100] \unexpanded\def\startPARA {\dosingleempty\dostartPARA} \def\dostartPARA[#1]% {\getrawparameters[PARA][heading=,mark=,#1]% \incrementnumber[PARANUMBER]% \inothermargin{\tfx\getnumber[PARANUMBER]~}% \doifsomething\PARAheading{\inmargin{\PARAheading}}% \doifsomething\PARAmark {\textreference[\PARAmark]{XXX/\rawnumber[PARANUMBER]}}% \ignorespaces} \unexpanded\def\stopPARA {\blank[medium]} \starttext \chapter{Alter novom} \startPARA[heading={lorem ipsum},mark=test] Lorem ipsum ... \stopPARA \startPARA Lorem ipsum \in[test] \stopPARA \stoptext ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________