From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15514 Path: main.gmane.org!not-for-mail From: Stefan Wachter Newsgroups: gmane.comp.tex.context Subject: Re: Can \note repeat its footnote? Date: Wed, 23 Jun 2004 16:00:29 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <40D98CFD.5080308@gmx.de> References: <40D71ECF.8040501@wxs.nl> 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 1087997442 1361 80.91.224.253 (23 Jun 2004 13:30:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Jun 2004 13:30:42 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Jun 23 15:30:35 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 1Bd7pj-0002qx-00 for ; Wed, 23 Jun 2004 15:30:35 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 721A510B09; Wed, 23 Jun 2004 15:30:30 +0200 (MEST) Original-Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by ref.ntg.nl (Postfix) with SMTP id C887610AC0 for ; Wed, 23 Jun 2004 15:27:05 +0200 (MEST) Original-Received: (qmail 9263 invoked by uid 65534); 23 Jun 2004 13:27:05 -0000 Original-Received: from p508A26DE.dip.t-dialin.net (EHLO gmx.de) (80.138.38.222) by mail.gmx.net (mp008) with SMTP; 23 Jun 2004 15:27:05 +0200 X-Authenticated: #10144042 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: <40D71ECF.8040501@wxs.nl> 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:15514 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15514 Hi Hans, thanks for your reply. Unfortunately your solution does not work correctly. The following example produces one footnote at the first page but no footnote on the second page. \starttext funny\myfootnote[funny]{funny} funny\mynote[funny] \page funny\mynote[funny] funny\mynote[funny] \stoptext --Stefan PS: Would it be possible to use the same footnote mark again when a footnote is repeated? Hans Hagen wrote: > 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 > -----------------------------------------------------------------