ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* indexing query
@ 2012-05-11 15:45 Alan Bowen
  2012-05-11 16:35 ` Alan Bowen
  0 siblings, 1 reply; 9+ messages in thread
From: Alan Bowen @ 2012-05-11 15:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 709 bytes --]

I am trying to construct an index of passages and have run into a curious
problem:

The test file is:
\defineregister[Passage][Passages]
\setupregister[Passage][n=1,%
balance=yes,%
pagestyle=\tfx\em,%
textstyle=\tfx,%
criterium=all,%
interaction={pagenumber},%
]
\setupregister[Passage][indicator=no,distance=0.5em]


\starttext

See \Passage{Simplicius+{\em In de caelo}+483.15--19}483.15--19.
\page
See \Passage{Simplicius+{\em In de caelo}+477.3--4}477.3--4

\page

\placeregister[Passage]

\stoptext

The result is an index that puts 483.15–19 *before* 477.3–4

as in

Simplicius
In de caelo

   483.15–19 1
   477.3–4 2
rather than after. How can I fix this?

Alan

[-- Attachment #1.2: Type: text/html, Size: 1579 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: indexing query
  2012-05-11 15:45 indexing query Alan Bowen
@ 2012-05-11 16:35 ` Alan Bowen
  2012-05-11 17:32   ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Alan Bowen @ 2012-05-11 16:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 982 bytes --]

I should add, perhaps, that I am using MKII, since adapting this project to
MKIV is not feasible.

A.

On Fri, May 11, 2012 at 11:45 AM, Alan Bowen <bowenalan03@gmail.com> wrote:

> I am trying to construct an index of passages and have run into a curious
> problem:
>
> The test file is:
> \defineregister[Passage][Passages]
> \setupregister[Passage][n=1,%
> balance=yes,%
> pagestyle=\tfx\em,%
>  textstyle=\tfx,%
> criterium=all,%
> interaction={pagenumber},%
>  ]
> \setupregister[Passage][indicator=no,distance=0.5em]
>
>
> \starttext
>
> See \Passage{Simplicius+{\em In de caelo}+483.15--19}483.15--19.
> \page
> See \Passage{Simplicius+{\em In de caelo}+477.3--4}477.3--4
>
> \page
>
> \placeregister[Passage]
>
> \stoptext
>
> The result is an index that puts 483.15–19 *before* 477.3–4
> as in
> Simplicius
>    *In de caelo*
>       483.15–19 *1*
>       477.3–4 *2*
> rather than after. How can I fix this?
>
> Alan
>
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 1970 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: indexing query
  2012-05-11 16:35 ` Alan Bowen
@ 2012-05-11 17:32   ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2012-05-11 17:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 11-5-2012 18:35, Alan Bowen wrote:
> I should add, perhaps, that I am using MKII, since adapting this project to
> MKIV is not feasible.
>
> A.
>
> On Fri, May 11, 2012 at 11:45 AM, Alan Bowen<bowenalan03@gmail.com>  wrote:
>
>> I am trying to construct an index of passages and have run into a curious
>> problem:
>>
>> The test file is:
>> \defineregister[Passage][Passages]
>> \setupregister[Passage][n=1,%
>> balance=yes,%
>> pagestyle=\tfx\em,%
>>   textstyle=\tfx,%
>> criterium=all,%
>> interaction={pagenumber},%
>>   ]
>> \setupregister[Passage][indicator=no,distance=0.5em]
>>
>>
>> \starttext
>>
>> See \Passage{Simplicius+{\em In de caelo}+483.15--19}483.15--19.
>> \page
>> See \Passage{Simplicius+{\em In de caelo}+477.3--4}477.3--4
>>
>> \page
>>
>> \placeregister[Passage]
>>
>> \stoptext
>>
>> The result is an index that puts 483.15–19 *before* 477.3–4
>> as in
>> Simplicius
>>     *In de caelo*
>>        483.15–19 *1*
>>        477.3–4 *2*
>> rather than after. How can I fix this?

pass a sortkey ...

\Passage[477.03–4]{...}

or so


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: indexing query
  2012-03-18 21:17     ` Wolfgang Schuster
@ 2012-03-19  2:18       ` Alan Bowen
  0 siblings, 0 replies; 9+ messages in thread
From: Alan Bowen @ 2012-03-19  2:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2139 bytes --]

OK: That does not sound good, so back to basics then. Here is a test file.
Perhaps the problem lies in how I am defining my keys.

% with MKII the output is fine, but no contrastcolor
% with MKIV subentry/subsubentry are not placed properly

\setupinteraction[state=start,color=blue,contrastcolor=red]
\setupcolors[state=start]

\setupregister[index][n=3,
balance=yes,
pagestyle=italic,
textstyle=normal,
criterium=all,
interaction={pagenumber},
]

\setupregister[index][indicator=no,distance=0.5em]

\setupregister[index][pagecommand=\it] %needed with MKIV

\starttext

Throughout the millennia \index{humans}humans have
\index[humans]{humans+development}developed and
\index[humans+development]{humans+development+adaptation}adapted methods
for storing facts and
thoughts on a variety of different media.
\page
Throughout the millennia \index{humans}humans have
\index[humans]{humans+development}developed and
\index[humans+development]{humans+development+adaptation}adapted methods
for storing facts and
thoughts on a variety of different media.

\blank[3*big]

\placeindex

\stoptext


On Sun, Mar 18, 2012 at 5:17 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>
> Am 18.03.2012 um 22:11 schrieb Alan Bowen:
>
> > Sorry for the bother, Wolfgang. I think I have the answer now (see my
> message earlier by about 30 seconds). I had not realized that the textstyle
> key in \setupregister could take a command for positioning the head as well
> as its actual style.
>
> You textstyle key accepts commands because it has to accepts \ss, \bf etc.
> and you misuse this for something different.
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3878 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: indexing query
  2012-03-18 21:11   ` Alan Bowen
@ 2012-03-18 21:17     ` Wolfgang Schuster
  2012-03-19  2:18       ` Alan Bowen
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2012-03-18 21:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 18.03.2012 um 22:11 schrieb Alan Bowen:

> Sorry for the bother, Wolfgang. I think I have the answer now (see my message earlier by about 30 seconds). I had not realized that the textstyle key in \setupregister could take a command for positioning the head as well as its actual style.

You textstyle key accepts commands because it has to accepts \ss, \bf etc. and you misuse this for something different.

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: indexing query
  2012-03-18 21:00 ` Wolfgang Schuster
@ 2012-03-18 21:11   ` Alan Bowen
  2012-03-18 21:17     ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Alan Bowen @ 2012-03-18 21:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1246 bytes --]

Sorry for the bother, Wolfgang. I think I have the answer now (see my
message earlier by about 30 seconds). I had not realized that the textstyle
key in \setupregister could take a command for positioning the head as well
as its actual style.

Alan

On Sun, Mar 18, 2012 at 5:00 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>
> Am 18.03.2012 um 17:38 schrieb Alan Bowen:
>
> Sorry: My effort escaped without a subject line.
>
> In placing the heads and subheads of indices, \index defaults to
>
> Head    locator
> Head
>     subhead    locator
>
> I need to get the subhead without repeating the Head, as in
> Head    locator
>     subhead    locator
>
> How can I do this?
>
>
> Example needed!
>
> Wolfgang
>
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2494 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: indexing query
  2012-03-18 16:38 Alan Bowen
  2012-03-18 21:00 ` Wolfgang Schuster
@ 2012-03-18 21:05 ` Alan Bowen
  1 sibling, 0 replies; 9+ messages in thread
From: Alan Bowen @ 2012-03-18 21:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 583 bytes --]

To answer my own question, after experimentation:

\index[key]{form::entry}
with
\setupregister[index][form][textstyle=\hskip1em]


A.

On Sun, Mar 18, 2012 at 12:38 PM, Alan Bowen <bowenalan03@gmail.com> wrote:

> Sorry: My effort escaped without a subject line.
>
>
> In placing the heads and subheads of indices, \index defaults to
>
> Head    locator
> Head
>     subhead    locator
>
> I need to get the subhead without repeating the Head, as in
> Head    locator
>     subhead    locator
>
> How can I do this? Is there some documentation on this that I can read?
>
> Alan
>
>

[-- Attachment #1.2: Type: text/html, Size: 1470 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: indexing query
  2012-03-18 16:38 Alan Bowen
@ 2012-03-18 21:00 ` Wolfgang Schuster
  2012-03-18 21:11   ` Alan Bowen
  2012-03-18 21:05 ` Alan Bowen
  1 sibling, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2012-03-18 21:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 379 bytes --]


Am 18.03.2012 um 17:38 schrieb Alan Bowen:

> Sorry: My effort escaped without a subject line.
> 
> In placing the heads and subheads of indices, \index defaults to
> 
> Head    locator
> Head
>     subhead    locator
> 
> I need to get the subhead without repeating the Head, as in
> Head    locator
>     subhead    locator
> 
> How can I do this?

Example needed!

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1155 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* indexing query
@ 2012-03-18 16:38 Alan Bowen
  2012-03-18 21:00 ` Wolfgang Schuster
  2012-03-18 21:05 ` Alan Bowen
  0 siblings, 2 replies; 9+ messages in thread
From: Alan Bowen @ 2012-03-18 16:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 340 bytes --]

Sorry: My effort escaped without a subject line.


In placing the heads and subheads of indices, \index defaults to

Head    locator
Head
    subhead    locator

I need to get the subhead without repeating the Head, as in
Head    locator
    subhead    locator

How can I do this? Is there some documentation on this that I can read?

Alan

[-- Attachment #1.2: Type: text/html, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-05-11 17:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-11 15:45 indexing query Alan Bowen
2012-05-11 16:35 ` Alan Bowen
2012-05-11 17:32   ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2012-03-18 16:38 Alan Bowen
2012-03-18 21:00 ` Wolfgang Schuster
2012-03-18 21:11   ` Alan Bowen
2012-03-18 21:17     ` Wolfgang Schuster
2012-03-19  2:18       ` Alan Bowen
2012-03-18 21:05 ` Alan Bowen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).