From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84413 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: Re: Conditional float references Date: Wed, 25 Sep 2013 09:29:06 +0200 Message-ID: <20130925072906.GW17308@homerow> References: <20130922210228.GJ17308@homerow> <48A5B149-E292-4F8B-B6E3-5181045A3EDC@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2130336764==" X-Trace: ger.gmane.org 1380094156 28568 80.91.229.3 (25 Sep 2013 07:29:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Sep 2013 07:29:16 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 25 09:29:21 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VOjXD-0007Hb-Gk for gctc-ntg-context-518@m.gmane.org; Wed, 25 Sep 2013 09:29:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 448E5101DE; Wed, 25 Sep 2013 09:27:09 +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 3dFypsriuRuG; Wed, 25 Sep 2013 09:27:07 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 074DA101E5; Wed, 25 Sep 2013 09:27:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6B886101E5 for ; Wed, 25 Sep 2013 09:27:05 +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 iGyLvm7q1N0y for ; Wed, 25 Sep 2013 09:27:04 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 2872F101DE for ; Wed, 25 Sep 2013 09:27:04 +0200 (CEST) Original-Received: from forward3h.mail.yandex.net (forward3h.mail.yandex.net [IPv6:2a02:6b8:0:f05::3]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r8P7TAhi004477 for ; Wed, 25 Sep 2013 09:29:10 +0200 Original-Received: from smtp3h.mail.yandex.net (smtp3h.mail.yandex.net [84.201.186.20]) by forward3h.mail.yandex.net (Yandex) with ESMTP id 79CE313623B7 for ; Wed, 25 Sep 2013 11:29:09 +0400 (MSK) Original-Received: from smtp3h.mail.yandex.net (localhost [127.0.0.1]) by smtp3h.mail.yandex.net (Yandex) with ESMTP id 4B7D31B418C9 for ; Wed, 25 Sep 2013 11:29:09 +0400 (MSK) Original-Received: from unknown (unknown [83.68.239.193]) by smtp3h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id cw4pi8eyTP-T8COOwxw; Wed, 25 Sep 2013 11:29:08 +0400 Mail-Followup-To: ntg-context@ntg.nl In-Reply-To: <48A5B149-E292-4F8B-B6E3-5181045A3EDC@gmail.com> X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xB8CFCB65D4F08C27 User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a02:6b8:0:f05::3; country=RU X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VKtjtakU - 8a7c21ffd3ea - 20130925 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84413 Archived-At: --===============2130336764== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kUBUi7JBpjcBtem/" Content-Disposition: inline --kUBUi7JBpjcBtem/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2013=E2=80=9309=E2=80=9325 Otared Kavian wrote: > I have not yet tried it with references to maths formulas, > theorems, lemmas and such, Me neither. \ifsinglesided \strc_references_do_relative_else\plusone {\def\strc_references_smart_string{\labeltext\v!nextpage}} {\strc_references_do_relative_else\minusone > The issues I noticed are the following: > 1. Typesetting the file gives an error message when there is no=20 > \setuppagenumbering[alternative=3Ddoublesided] A typo: \ifsinglesided \strc_references_do_relative_else\plusone {\def\strc_references_smart_string{\labeltext\v!nextpage}} - {\strc_references_do_relative\minusone + {\strc_references_do_relative_else\minusone > 2. In the above minimal example, when stating=20 > \setuppagenumbering[alternative=3Ddoublesided] > then Test 2 and Test 3 do not result in the smart references > expected (they both result in =C2=AB See figure 1 and figure 3. =C2=BB wh= ile > Test 2 should give =C2=AB See figure 1 and figure 3 on next page. =C2=BB, > and Test 3 should result in =C2=AB See figure 1 on previous page and > figure 3. =C2=BB). That's on purpose. If the graphic appears on the same double page, it is visible and no further reference is printed. In traditional typesetting a single page is rather insignificant. The reader is always faced with double pages, never single pages. > Thanks again for sharing your module. Well, it wasn't meant to be a module. I rather intended to start a discussion and threw some code in to start with. If there's interest I can make it a module. Thanks for the feedback. Marco --kUBUi7JBpjcBtem/ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQEcBAEBAgAGBQJSQpDCAAoJEPGqVaNSn0iKMJMIAJ+PWjx6M1V6q6VlaSKI/VcH POzwfN3YXXkYTcV5On7t6XY7lmru8AnbB1WTBfQGKkfvAqqLmqsCZDw7p/8hbdb6 gBWMqegKc2OBkICFlgSiQYLz8zOqB3BsyXn7uuD9dMNd8cHtMtxg/gMH/CaNBodg +p+aA6KnKCB1PYRMdpBX36FT37elfXpoESHM/JLRyhMQbNIBGENpiutBbMYKqg31 FVplDG/XlwwSLgpkBGcwoSFoF+fEgxgL1ym7HbtUTy4FD3qVhBaXiDPSzRJdbkbs nzLAbbtKkwK2SfFFlI6c0jzbY80O+pqg9uYlphsFVk9FaQCGWUdlSfCg2cXkGb8= =XcVG -----END PGP SIGNATURE----- --kUBUi7JBpjcBtem/-- --===============2130336764== 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 ___________________________________________________________________________________ --===============2130336764==--