From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14034 Path: main.gmane.org!not-for-mail From: "Pawel Jackowski na Onet" Newsgroups: gmane.comp.tex.context Subject: Re: countproblem Date: Wed, 12 Nov 2003 00:17:04 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <002a01c3a8a9$eb73cc80$1c00a8c0@best> References: <1068569835.1803.7.camel@eagle.militzer.net.local> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1068593538 14549 80.91.224.253 (11 Nov 2003 23:32:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2003 23:32:18 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Nov 12 00:32:14 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AJhza-0002WD-00 for ; Wed, 12 Nov 2003 00:32:14 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 9319210B21; Wed, 12 Nov 2003 00:32:10 +0100 (MET) Original-Received: from smtp1.poczta.onet.pl (smtp1.poczta.onet.pl [213.180.130.31]) by ref.ntg.nl (Postfix) with ESMTP id B2B9010ABB for ; Wed, 12 Nov 2003 00:24:56 +0100 (MET) Original-Received: from pa36.debniki.sdi.tpnet.pl ([213.77.147.36]:10756 "HELO best") by ps1.test.onet.pl with SMTP id ; Wed, 12 Nov 2003 00:17:08 +0100 Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:14034 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14034 > Hi all! > > > what is wong? > % > % > % ad the points of each question > \def\getPunkte[#1]{\advance\summeP by \number#1} > % > % show the points on the right side > \def\showP[#1]{\inright{\hfill(#1 P.)}} > % > % handle the points > \def\pkt[#1]% > {% > \showP[#1]% > \getPunkte[#1] > } > % > Using this macro in normal text like > TestQuestion \pkt[5] > it works!!! [...] I'm not sure but consider TestQuestion \pkt[5] {TestQuestion \pkt[5]} TestQuestion \pkt[5] That will probably produce not what you need. Meybe You should use \global\advance\summeP by \number#1 in \getPunkte definition? Let me know if I'm right. Regards, Pawe/l