From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58183 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: lua, footnotes, interaction Date: Fri, 16 Apr 2010 23:10:38 +0200 Message-ID: <20100416211038.GA20607@localhost.localdomain> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0291289017==" X-Trace: dough.gmane.org 1271452344 3079 80.91.229.12 (16 Apr 2010 21:12:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Apr 2010 21:12:24 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 16 23:12:21 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O2spg-0002TA-Uj for gctc-ntg-context-518@m.gmane.org; Fri, 16 Apr 2010 23:12:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9BD9DC9C7E; Fri, 16 Apr 2010 23:12:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id L6OYyl10IIGB; Fri, 16 Apr 2010 23:11:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 76A9FC9C22; Fri, 16 Apr 2010 23:11:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 51757C9C0E for ; Fri, 16 Apr 2010 23:11:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id OV5BoXY8sCub for ; Fri, 16 Apr 2010 23:11:40 +0200 (CEST) Original-Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by balder.ntg.nl (Postfix) with ESMTP id 45C20C9C2B for ; Fri, 16 Apr 2010 23:11:40 +0200 (CEST) Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id o3GLBV4u024130 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 16 Apr 2010 23:11:31 +0200 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id o3GLBd3V017280 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 16 Apr 2010 23:11:39 +0200 Original-Received: from localhost (mnhm-5f75ed21.pool.mediaWays.net [95.117.237.33]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id o3GLBU9W006339 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Fri, 16 Apr 2010 23:11:31 +0200 X-Operating-System: Linux aides 2.6.34-rc3 User-Agent: Mutt/1.5.20 (2009-06-14) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:58183 Archived-At: --===============0291289017== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Good evening all, interaction remains a mystery to me. When tracking things I encountered the following deviation in footnotes: ---8<----------------------------------------------------------------------= ---- \startluacode track =3D {} track.preceding =3D "" function track.simple(arg) context("Last one:\\ {\\bf " .. track.preceding .. "}.\\ " ..=20 "This one:\\ {\\bf " .. arg .. "}") if arg =3D=3D track.preceding then context("\\ -- matching!") else context("\\ -- not matching!") track.preceding =3D arg end end \stopluacode \def\track#1{\ctxlua{track.simple("#1")}} \def\foottrack#1{\footnote{\ctxlua{track.simple("#1")}}} \starttext \section{Normal} \track{one}\par \track{two}\par \track{two}\par \track{one}\par \track{one}\par \track{two}\par \track{one}\par \section{In Footnotes} \foottrack{one} \foottrack{two} \foottrack{two} \foottrack{one} \foottrack{one} \foottrack{two} \foottrack{one} \setupinteraction[state=3Dstart] \section{In Footnotes, interaction enabled} \footnote{\hrule} \foottrack{one} \foottrack{two} \foottrack{two} \foottrack{one} \foottrack{one} \foottrack{two} \foottrack{one} \stoptext % vim:ft=3Dcontext ---8<----------------------------------------------------------------------= ---- I'd naively expect \track#1 to behave identically regardless of interaction. How do I make it interaction-proof, and, if possible, how do I interaction-proof macros in general? Thanks for your efforts, Philipp --=20 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkvI0k4ACgkQ02lYlJYWs9Lg/ACcClOH9tFJNQhqS7OXpQZHMTUE hL8An3ySwoH3sqlzByQUlzP/Fuz4lVO9 =fGrN -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v-- --===============0291289017== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0291289017==--