From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86705 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: \seeindex and secondary index (register) levels Date: Wed, 19 Mar 2014 11:36:52 -0400 Message-ID: <5329B994.7010803@rik.users.panix.com> References: <5328E0CF.4090807@rik.users.panix.com> <53298DD4.4000709@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1522729706==" X-Trace: ger.gmane.org 1395243429 23216 80.91.229.3 (19 Mar 2014 15:37:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2014 15:37:09 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 19 16:37:20 2014 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 1WQIYN-0003zf-Rc for gctc-ntg-context-518@m.gmane.org; Wed, 19 Mar 2014 16:37:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 553251020F; Wed, 19 Mar 2014 16:37:14 +0100 (CET) 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 ExHYePZG+nD7; Wed, 19 Mar 2014 16:37:14 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3958E1020A; Wed, 19 Mar 2014 16:37:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 745EB1020A for ; Wed, 19 Mar 2014 16:37:11 +0100 (CET) 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 VLoL-navAKFv for ; Wed, 19 Mar 2014 16:37:10 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 0E46610207 for ; Wed, 19 Mar 2014 16:36:58 +0100 (CET) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s2JFauBY022643 for ; Wed, 19 Mar 2014 16:36:57 +0100 Original-Received: from [192.168.1.156] (pool-173-56-235-45.nycmny.fios.verizon.net [173.56.235.45]) by mailbackend.panix.com (Postfix) with ESMTP id E8D722ECC0 for ; Wed, 19 Mar 2014 11:36:55 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <53298DD4.4000709@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=166.84.1.89; country=US; region=New York; city=Richmond Hill; latitude=40.7005; longitude=-73.8345; http://maps.google.com/maps?q=40.7005,-73.8345&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TLDrAUS6 - 444426f4d232 - 20140319 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:86705 Archived-At: This is a multi-part message in MIME format. --===============1522729706== Content-Type: multipart/alternative; boundary="------------030603060509080208010001" This is a multi-part message in MIME format. --------------030603060509080208010001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2014-03-19 08:30, Hans Hagen wrote: > On 3/19/2014 1:11 AM, Rik Kabel wrote: >> How can I get \seeindex to refer to other than the top-level of an index >> entry? In the following MWE, I would like to link to /text+more/, not >> /text,/ and not /text+some/. That is, the highlight should include the >> name of the lower level(s). The actual link should be to the page with >> the entry for the reference text in the case that the top level is on >> one page of the index and the secondary entry on the next page. >> >> If this cannot be done, I can live with a separate \index{text, more} >> entry, but that is ugly when there are other text+something entries. >> >> I would also like to be able to specify the format of the reference, >> perhaps with before/middle/after keys. This would allow /text -> more/ >> or otherwise as my publisher's style guide may require. >> >> \setupinteraction[state=start] >> >> \starttext >> >> Some text\index{text+some}. >> >> More text\index{text+more}. >> >> And more\seeindex{I want}{text+more} and more\seeindex{I get}{text}. >> >> \placefootnotes >> >> \placeindex >> >> \stoptext > > cheat: And more\seeindex{I want}{text{+}more} and more\seeindex{I > get}{text}. > > Hans, This does not do anything different, and in particular it does not create a link. Perhaps this new example better illustrates the problem: \setupinteraction[state=start] \setupregister[index][n=1] \setuppapersize[A7] \starttext \type{Dilbert} should be a link to the second-level on page~3 (or perhaps to the top level on page~2) in this example. \type{Dilbert} is \type{Adams+Scott} and \type{Catbert} is \type{Adams{+}Scott}. They link nowhere. \type{Dogbert} is \type{Adams}, which links to page~2. \index{Adams+Douglas}\index{Adams+Amy}\index{Adams+John} \index{Adams+John Quincy}\index{Adams+Sam}\index{Adams+Scott} \seeindex{Dilbert}{Adams+Scott} \seeindex{Catbert}{Adams{+}Scott} \seeindex{Dogbert}{Adams} \index{A}\index{AA}\index{AAA}\index{AAAA}\index{AB}\index{AAB} \index{ABB}\index{AABB} \page \placeindex \stoptext -- Rik --------------030603060509080208010001 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 2014-03-19 08:30, Hans Hagen wrote:
On 3/19/2014 1:11 AM, Rik Kabel wrote:
How can I get \seeindex to refer to other than the top-level of an index
entry? In the following MWE, I would like to link to /text+more/, not
/text,/ and not /text+some/. That is, the highlight should include the
name of the lower level(s). The actual link should be to the page with
the entry for the reference text in the case that the top level is on
one page of the index and the secondary entry on the next page.

If this cannot be done, I can live with a separate \index{text, more}
entry, but that is ugly when there are other text+something entries.

I would also like to be able to specify the format of the reference,
perhaps with before/middle/after keys. This would allow /text -> more/
or otherwise as my publisher's style guide may require.

    \setupinteraction[state=start]

    \starttext

    Some text\index{text+some}.

    More text\index{text+more}.

    And more\seeindex{I want}{text+more} and more\seeindex{I get}{text}.

    \placefootnotes

    \placeindex

    \stoptext

cheat:     And more\seeindex{I want}{text{+}more} and more\seeindex{I get}{text}.


Hans,

This does not do anything different, and in particular it does not create a link.
Perhaps this new example better illustrates the problem:

\setupinteraction[state=start]
\setupregister[index][n=1]
\setuppapersize[A7]
\starttext

\type{Dilbert} should be a link to the second-level on page~3 (or
perhaps to the top level on page~2) in this example.

\type{Dilbert} is \type{Adams+Scott} and \type{Catbert} is
\type{Adams{+}Scott}. They link nowhere. \type{Dogbert} is
\type{Adams}, which links to page~2.
\index{Adams+Douglas}\index{Adams+Amy}\index{Adams+John}
\index{Adams+John Quincy}\index{Adams+Sam}\index{Adams+Scott}
\seeindex{Dilbert}{Adams+Scott}
\seeindex{Catbert}{Adams{+}Scott}
\seeindex{Dogbert}{Adams}
\index{A}\index{AA}\index{AAA}\index{AAAA}\index{AB}\index{AAB}
\index{ABB}\index{AABB}
\page
\placeindex
\stoptext

--
Rik
--------------030603060509080208010001-- --===============1522729706== 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 ___________________________________________________________________________________ --===============1522729706==--