From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32378 Path: news.gmane.org!not-for-mail From: Thomas Engel Newsgroups: gmane.comp.tex.context Subject: store counter or variable and reread again Date: Sat, 30 Dec 2006 16:51:09 +0100 Message-ID: <45968AED.7040904@gmx.net> References: <45941026$0$4168$ba624c82@nntp02.dk.telia.net> <459670F8.5020106@elvenkind.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 1167493899 19099 80.91.229.12 (30 Dec 2006 15:51:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Dec 2006 15:51:39 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 30 16:51:38 2006 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 1H0gUj-0001rd-Vi for gctc-ntg-context-518@m.gmane.org; Sat, 30 Dec 2006 16:51:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6D34E1FE10; Sat, 30 Dec 2006 16:49:17 +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 27676-05; Sat, 30 Dec 2006 16:49:07 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B3A931FE01; Sat, 30 Dec 2006 16:49:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 121971FE01 for ; Sat, 30 Dec 2006 16:49:02 +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 28677-02-3 for ; Sat, 30 Dec 2006 16:48:56 +0100 (CET) Original-Received: from mx0.vr-web.de (mx0.vr-web.de [195.200.35.198]) by ronja.ntg.nl (Postfix) with SMTP id B51C91FBA6 for ; Sat, 30 Dec 2006 16:48:56 +0100 (CET) Original-Received: from mx0.vr-web.de (vrwf103.vrweb.de [::ffff:192.168.27.6]) by mx0.vr-web.de with esmtp; Sat, 30 Dec 2006 16:51:08 +0100 id 0001BFB8.45968AEC.000016EA Original-Received: from [192.168.0.2] (p5081884A.dip0.t-ipconnect.de [::ffff:80.129.136.74]) (QVVUSDogTE9HSU4gdGhvbWFzLmVuZ2Vs) by mx0.vr-web.de with esmtp; Sat, 30 Dec 2006 16:51:08 +0100 id 00047E15.45968AEC.0000688E User-Agent: IceDove 1.5.0.7 (X11/20061013) Original-To: mailing list for ConTeXt users In-Reply-To: <459670F8.5020106@elvenkind.com> X-BitDefender-Scanner: Clean, Agent: BitDefender Courier MTA Agent 1.6.2 on vrwebmail X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:32378 Archived-At: Hello, i just playing a little bit with macros. For adding points to a total sum i use this macros \global\newcount\summeP \summeP=0 % ad the points of each question \def\getPunkte[#1]{\global\advance\summeP by \number#1} % show the points on the right side \def\showP[#1]{\inright{\hskip 10mm \framed{#1} }} % handle the points \def\pkt[#1]% {\showP[#1]% \getPunkte[#1] } this is working well but my problem is I want to use \summeP on the first page to show the total amount of points for the whole exam. I know that this needs a second run of texexec, but I don't know how to store the value at the end of the file and reread this stored value in a second run the get the right value. Any hints are welcome! Thanks and a Happy New Year! Thomas