From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15471 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Can \note repeat its footnote? Date: Mon, 21 Jun 2004 19:45:51 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <40D71ECF.8040501@wxs.nl> References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1087840093 19937 80.91.224.253 (21 Jun 2004 17:48:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Jun 2004 17:48:13 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Jun 21 19:48:02 2004 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 1BcStm-0003ta-00 for ; Mon, 21 Jun 2004 19:48:02 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 7657E10B82; Mon, 21 Jun 2004 19:47:58 +0200 (MEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ref.ntg.nl (Postfix) with ESMTP id A25D910B80 for ; Mon, 21 Jun 2004 19:45:54 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i5LHjobM006241 for ; Mon, 21 Jun 2004 19:45:50 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 9580A1A968; Mon, 21 Jun 2004 19:45:53 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 30358179EA for ; Mon, 21 Jun 2004 17:45:52 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: X-Virus-Scanned: clamd / ClamAV version 0.70, clamav-milter version 0.70j 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:15471 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15471 Stefan Wachter wrote: > Hi all! > > The \note[xxx] command is used to reference a previously defined > footnote. Is it possible that the previously defined footnote is > repeated if a page break had occured between the \footnote[xxx]{bla > bla bla} and the corresponding \note[xxx] command? it's incredible what kin dof wishes users can come up with -) \def\myfootnote[#1]#2% let's guess that #2 is without catcode problems {\setxvalue{note:#1}{\footnote{#2}}\footnote[note:a:#1]{#2}} \def\mynote[#1]% {\removeunwantedspaces \pagereference[note:b:#1]% \doifreferencefoundelse{note:a:#1} {\edef\NotePageA{\number\currentrealreference}% \doifreferencefoundelse{note:b:#1} {\edef\NotePageB{\number\currentrealreference}% \ifnum\NotePageA<\NotePageB\relax \getvalue{note:#1}% \else \note[note:a:#1]% \fi} {\note[note:a:#1]}} {\note[note:a:#1]}} \starttext test \myfootnote[funny]{first occurence} test\mynote[funny] test \myfootnote[again]{first occurence} \page test \mynote[again] \stoptext hardly tested Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------