ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Index formatting: column leaks over page margin
@ 2007-01-12 16:47 cormullion
  2007-01-13 17:59 ` luigi scarso
  0 siblings, 1 reply; 6+ messages in thread
From: cormullion @ 2007-01-12 16:47 UTC (permalink / raw)


I have a tiny problem with the formatting of an index placed with  
\completeindex. When there are more than 14 or so page numbers for an  
entry and the entry is in the right hand column, the numbers leak  
over the page boundary. I haven't done any special formatting for  
these index pages - is there a command that says keep the columns for  
a \completeindex less than x cm wide or something?

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

* Re: Index formatting: column leaks over page margin
  2007-01-12 16:47 Index formatting: column leaks over page margin cormullion
@ 2007-01-13 17:59 ` luigi scarso
  2007-01-14  8:15   ` cormullion
  0 siblings, 1 reply; 6+ messages in thread
From: luigi scarso @ 2007-01-13 17:59 UTC (permalink / raw)


On 1/12/07, cormullion@mac.com <cormullion@mac.com> wrote:
> I have a tiny problem
Can you post an example ?

luigi

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

* Re: Index formatting: column leaks over page margin
  2007-01-13 17:59 ` luigi scarso
@ 2007-01-14  8:15   ` cormullion
  2007-01-15  8:47     ` luigi scarso
  0 siblings, 1 reply; 6+ messages in thread
From: cormullion @ 2007-01-14  8:15 UTC (permalink / raw)


On 2007-01-13, at 17:59.0, luigi scarso wrote:

> On 1/12/07, cormullion@mac.com <cormullion@mac.com> wrote:
>> I have a tiny problem
> Can you post an example ?

Hi luigi - there's a draft at <http://newlisp.org/downloads/ 
development/introduction-to-newlisp-9.1.pdf> and there's an example  
of the problem on page 140. The source reads \completeindex... 

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

* Re: Index formatting: column leaks over page margin
  2007-01-14  8:15   ` cormullion
@ 2007-01-15  8:47     ` luigi scarso
  2007-01-22 21:56       ` luigi scarso
  0 siblings, 1 reply; 6+ messages in thread
From: luigi scarso @ 2007-01-15  8:47 UTC (permalink / raw)


hmm line "map 17, 33, 52, 69, 70, 70, 70, 71, 71," is too much right?
I've played with index settings some time ago: I will refresh my memories.
luigi

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

* Re: Index formatting: column leaks over page margin
  2007-01-15  8:47     ` luigi scarso
@ 2007-01-22 21:56       ` luigi scarso
  2007-01-23  8:54         ` cormullion
  0 siblings, 1 reply; 6+ messages in thread
From: luigi scarso @ 2007-01-22 21:56 UTC (permalink / raw)


On 1/15/07, luigi scarso <luigi.scarso@gmail.com> wrote:
> hmm line "map 17, 33, 52, 69, 70, 70, 70, 71, 71," is too much right?
> I've played with index settings some time ago: I will refresh my memories.
> luigi
>
Ok, I hope these can help you.

%%%%%%%%%%%%%%%%%%%%%%%%%
\setupcolors[state=start]
%%%%%%%%%% Indeces
%%%%%% Index
\defineregister[Index][Indeces]
\setupheadtext[en][IndexCode=Code Index]
%%
\def\ICTextCommand#1{%
#1\hskip1ex%
}%% end \ICTextCommand
%%
\def\ICPageCommand#1{%
\gdef\registerpageseparator{,}%
\hbox{#1}%
}%% end \ICPageCommand
%%
\def\ICHeadLetterCommand#1{%
\setbox100=\hbox{%
\switchtobodyfont[8pt]%
\framed[frame=off,
        width=1.5em,height=1em,after=0.5em,
        strut=no,
        background=color,backgroundcolor=black]%
{\color[white]{\setnostrut{#1}}}\hfill}%
\box100%
}%%end \ICHeadLetterCommand
%%%%%
\setupregister[Index][n=2,
                      align=yes,
                      balance=no,
                      symbol=,
                      distance=0pt,
                      expand=no,
                      partnumber=no,
                      indicator=yes,
                      textstyle={\tfx},pagestyle={\tfx},
                      textcommand={\ICTextCommand},
                      pagecommand={\ICPageCommand},
                      command={\ICHeadLetterCommand},]
%%%%%%%%%%%%%%%%%%%%

\starttext
\dorecurse{100}{
boo\Index{boo} Boo\Index{Boo}
foo\Index{foo} Foo\Index{Foo}
goo\Index{goo} Goo\Index{Goo}
\page }%%
%%
\completeIndex
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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

* Re: Index formatting: column leaks over page margin
  2007-01-22 21:56       ` luigi scarso
@ 2007-01-23  8:54         ` cormullion
  0 siblings, 0 replies; 6+ messages in thread
From: cormullion @ 2007-01-23  8:54 UTC (permalink / raw)



On 2007-01-22, at 21:56.0, luigi scarso wrote:

> On 1/15/07, luigi scarso <luigi.scarso@gmail.com> wrote:
>> hmm line "map 17, 33, 52, 69, 70, 70, 70, 71, 71," is too much right?
>> I've played with index settings some time ago: I will refresh my  
>> memories.
>> luigi
>>
> Ok, I hope these can help you.

Wow - cool stuff! Thanks! Will study it today.

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

end of thread, other threads:[~2007-01-23  8:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-12 16:47 Index formatting: column leaks over page margin cormullion
2007-01-13 17:59 ` luigi scarso
2007-01-14  8:15   ` cormullion
2007-01-15  8:47     ` luigi scarso
2007-01-22 21:56       ` luigi scarso
2007-01-23  8:54         ` cormullion

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