From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76189 Path: news.gmane.org!not-for-mail From: Peter Schorsch Newsgroups: gmane.comp.tex.context Subject: atpage || number comparing Date: Tue, 15 May 2012 14:28:30 +0200 Message-ID: <20120515142830.535eb5e7@freenet.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1337085095 6421 80.91.229.3 (15 May 2012 12:31:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 May 2012 12:31:35 +0000 (UTC) To: ConTeXt Mailing List Original-X-From: ntg-context-bounces@ntg.nl Tue May 15 14:31:35 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SUGud-000509-3n for gctc-ntg-context-518@m.gmane.org; Tue, 15 May 2012 14:31:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B2315101E9; Tue, 15 May 2012 14:31:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pc1FshZKccmn; Tue, 15 May 2012 14:31:30 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6AFAC101DF; Tue, 15 May 2012 14:31:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8BCD8101DF for ; Tue, 15 May 2012 14:31:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vAtlU1JKfuDZ for ; Tue, 15 May 2012 14:31:27 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id C9364101CF for ; Tue, 15 May 2012 14:31:27 +0200 (CEST) Original-Received: from mout4.freenet.de (mout4.freenet.de [IPv6:2001:748:100:40::2:6]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4FCVP5D011270 for ; Tue, 15 May 2012 14:31:26 +0200 Original-Received: from [195.4.92.140] (helo=mjail0.freenet.de) by mout4.freenet.de with esmtpa (ID tralalas@freenet.de) (port 25) (Exim 4.76 #1) id 1SUGuT-00020O-Mp for ntg-context@ntg.nl; Tue, 15 May 2012 14:31:25 +0200 Original-Received: from localhost ([::1]:38152 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID tralalas@freenet.de) (Exim 4.76 #1) id 1SUGuT-0000NU-It for ntg-context@ntg.nl; Tue, 15 May 2012 14:31:25 +0200 Original-Received: from [195.4.92.11] (port=50493 helo=1.mx.freenet.de) by mjail0.freenet.de with esmtpa (ID tralalas@freenet.de) (Exim 4.76 #1) id 1SUGrg-0007Yf-4G for ntg-context@ntg.nl; Tue, 15 May 2012 14:28:32 +0200 Original-Received: from 31-18-187-91-dynip.superkabel.de ([31.18.187.91]:54188 helo=freenet.de) by 1.mx.freenet.de with esmtpsa (ID tralalas@freenet.de) (UNKNOWN:AES128-SHA:128) (port 25) (Exim 4.76 #1) id 1SUGrf-0000Dy-F6 for ntg-context@ntg.nl; Tue, 15 May 2012 14:28:31 +0200 X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) X-Bayes-Prob: 0.9975 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=2001:748:100:40::2:6; country=DE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RHacvp7C - f7b3012fd1ae - 20120515 X-Scanned-By: CanIt (www . roaringpenguin . com) 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:76189 Archived-At: Hi, it tried to do a \atpage command that results a) some page => nothing b) different page => pagenumber with some text (e.g. "auf Seite XY") \def\atPage[#1]% {\doifnot{\at[#1]}{\currentpage}% {\at[#1]}% } My problem with this is, that the \doifnot always results as not equal; it is like the types mismatch as if I exchange \at[#1] with a pure number the comparing works. If so, how can the types be corrected? Additionally - if possible - I would like to add case that the referred page is on the other page but in duplex mode adjacent to the actual page. Is that possible to do this? I unluckily dont know how to make working simple calculation in tex code. To be complete I found in the file strc-ref.mkiv some notes about a planed \atpage command: %D A still very rudimentary|/|experimental forward|/|backward %D reference mechanism is provided by the macro \type{\atpage}: %D %D \starttyping %D ... \somewhere{backward text}{forward text}[someref] ... %D ... \atpage[someref] ... %D \stoptyping %D %D In future versions there will be more sophisticated % 0 = no page reference % 1 = same page % 2 = preceding page % 3 = following page % 4 = backward, same page (todo) % 5 = forward, same page (todo) But that level of the ambient tex is still out of my scope. Thanks P. ___________________________________________________________________________________ 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 ___________________________________________________________________________________