From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10148 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Reference + footnote = bug Date: Tue, 17 Dec 2002 10:00:17 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <5.1.0.14.1.20021217094717.026f9e30@server-1> References: <3016771035.20021216223350@iol.it> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1040118464 11109 80.91.224.249 (17 Dec 2002 09:47:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Dec 2002 09:47:44 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18OEKE-0002so-00 for ; Tue, 17 Dec 2002 10:47:42 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 92B4210AEE; Tue, 17 Dec 2002 10:48:07 +0100 (MET) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id CC51B10AEC for ; Tue, 17 Dec 2002 10:46:49 +0100 (MET) Original-Received: from server-1.pragma-ade.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.nl (8.12.5/pre1.0-MySQL/8.12.5) with ESMTP id gBH9keNx027573 for ; Tue, 17 Dec 2002 10:46:41 +0100 Original-Received: from LAPTOP-3.wxs.nl (laptop-3 [10.100.1.191]) by server-1.pragma-ade.nl (8.12.2/8.12.2) with ESMTP id gBH9kfgm003445 for ; Tue, 17 Dec 2002 10:46:42 +0100 X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ntg.nl In-Reply-To: X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail.solcon.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:10148 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10148 At 11:50 PM 12/16/2002 +0100, you wrote: >On lundi, d=E9c 16, 2002, at 22:33 Europe/Paris, Giuseppe Bilotta wrote: > >>... and a rather odd bug, too! >> >>\setupinteraction[state=3Dstart] >> >>\starttext >>Some text \goto{text with footnote\footnote{here it is} showing >>the bug}[hook] >>\page[yes] >>Some text \reference[hook] referenced from before. >>\stoptext this has to do with the text passed to goto being submitted to quite=20 rigourous manipulations; footnotes are inserts and inserts, like marks and= =20 other funny nodes often spoil things, so here the solution is it to carry=20 over the footnote: \def\donaar#1[#2]% {\dontleavehmode \bgroup \postponefootnotes \doifreferencefoundelse{#2} {\doifelsenothing{#1} {\dosymbolreference{}{}[#2]} {\donaarspace{#1}[#2]}} {\unknownreference{#2}#1\relax}% \relax catches lookahead \egroup \referentieinfo{<}{#2}} You can put this in the file "cont-new.tex" and see if it solves the problem >Also it seems that instead of >\reference[hook] referenced... >one has to put >\reference[hook]{} referenced... > ^^^^ >since otherwise in the resulting typeset "referenced..." becomes=20 >"eferenced...". >Is this the normal use of the command "\reference[xxx]" ? indeed, if you want to refer to something, you use \in {something} [ref] or= =20 \at {somepage} [there] and alike; \reference just creates one, taking an=20 argument which is to show up as reference: %D There are three ways of defining a reference: %D %D \pagereference[here] %D \textreference[here]{some text} %D %D the third alternative combines them in: %D %D \reference[here]{some text} Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------