ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Index setup
@ 2012-04-11  1:18 Jeff Smith
  2012-04-14  1:46 ` Jeff Smith
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Smith @ 2012-04-11  1:18 UTC (permalink / raw)
  To: ntg-context

Hi all!

Better late than never, you'll say, because I've just started using
MkIV... :-) I have some troubles setupping an index and the options I
try using from the (old) ConTeXt manual don't help or seem to have no
effect.

So basically, I have this:

\starttext

\chapter{Ch1}

\index{abc}abc

\index{bcd}bcd

\index{def}def

\chapter{Ch2}

\index{wxy}wxy

\index{xyz}xyz

\index{zzz}zzz

\page

\setupregister[index][indicator=no]
\placeindex
\stoptext


That works. But I'm trying to do two things here and I'll be damned if
the info can be found somewhere. I've tried my best to find it, but to
no avail... So:

1) I'd like a single list with no blank lines in between letters (I've
already removed the indicator, but I'm stuck there).

2) I'm trying to align the pagenumber on the right side of the column.
Should be easy, but...?!

I'm truly sorry if these questions are easy to answer, but I'm
clueless here, alas! And hey, I've recently completed a thesis that
was wholly done with MKII. I do know I'm way behind the times! :-)

Thanks in advance,
JFS
___________________________________________________________________________________
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] 4+ messages in thread

* Re: Index setup
  2012-04-11  1:18 Index setup Jeff Smith
@ 2012-04-14  1:46 ` Jeff Smith
  2012-04-14 12:26   ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Smith @ 2012-04-14  1:46 UTC (permalink / raw)
  To: ntg-context

> So basically, I have this:
>
> \starttext
>
> \chapter{Ch1}
>
> \index{abc}abc
>
> \index{bcd}bcd
>
> \index{def}def
>
> \chapter{Ch2}
>
> \index{wxy}wxy
>
> \index{xyz}xyz
>
> \index{zzz}zzz
>
> \page
>
> \setupregister[index][indicator=no]
> \placeindex
> \stoptext
>
>
> 1) I'd like a single list with no blank lines in between letters (I've
> already removed the indicator, but I'm stuck there).
>
> 2) I'm trying to align the pagenumber on the right side of the column.
> Should be easy, but...?!

Nobody has a solution? :-( Are my questions unclear and badly formulated?

JFS
___________________________________________________________________________________
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] 4+ messages in thread

* Re: Index setup
  2012-04-14  1:46 ` Jeff Smith
@ 2012-04-14 12:26   ` Wolfgang Schuster
  2012-04-14 20:04     ` Jeff Smith
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2012-04-14 12:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 14.04.2012 um 03:46 schrieb Jeff Smith:

>> So basically, I have this:
>> 
>> \starttext
>> 
>> \chapter{Ch1}
>> 
>> \index{abc}abc
>> 
>> \index{bcd}bcd
>> 
>> \index{def}def
>> 
>> \chapter{Ch2}
>> 
>> \index{wxy}wxy
>> 
>> \index{xyz}xyz
>> 
>> \index{zzz}zzz
>> 
>> \page
>> 
>> \setupregister[index][indicator=no]
>> \placeindex
>> \stoptext
>> 
>> 
>> 1) I'd like a single list with no blank lines in between letters (I've
>> already removed the indicator, but I'm stuck there).
>> 
>> 2) I'm trying to align the pagenumber on the right side of the column.
>> Should be easy, but...?!
> 
> Nobody has a solution? :-( Are my questions unclear and badly formulated?

\setupregister[index][indicator=no,pagecommand=\wordright,before=]

Setup commands are put before \starttext, when you really need these settings
for a certain register placement you can write \placeindex[..,.=.,..]

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] 4+ messages in thread

* Re: Index setup
  2012-04-14 12:26   ` Wolfgang Schuster
@ 2012-04-14 20:04     ` Jeff Smith
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Smith @ 2012-04-14 20:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Apr 14, 2012 at 08:26, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:

> \setupregister[index][indicator=no,pagecommand=\wordright,before=]
>
> Setup commands are put before \starttext, when you really need these settings
> for a certain register placement you can write \placeindex[..,.=.,..]

Thanks a lot, Wolfgang. The empty before= makes me realize I should
find the command myself in the code and look at the defaults. It's
pretty much the last thing I had to do, but I didn't. I tend to always
think these particular parameters (command=, after=, before-, etc.)
are extra options, so I never think to override them in this way. I'll
try and remember that the next time.

Thanks again!
JFS
___________________________________________________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2012-04-14 20:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11  1:18 Index setup Jeff Smith
2012-04-14  1:46 ` Jeff Smith
2012-04-14 12:26   ` Wolfgang Schuster
2012-04-14 20:04     ` Jeff Smith

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).