From: "luigi scarso" <luigi.scarso@gmail.com>
Subject: Re: Index formatting: column leaks over page margin
Date: Mon, 22 Jan 2007 22:56:25 +0100 [thread overview]
Message-ID: <fe8d59da0701221356r51ffbdd7o9160e5bbd9b8f502@mail.gmail.com> (raw)
In-Reply-To: <fe8d59da0701150047n6ea43b70v3efdbe0040d915cc@mail.gmail.com>
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
next prev parent reply other threads:[~2007-01-22 21:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-12 16:47 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 [this message]
2007-01-23 8:54 ` cormullion
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fe8d59da0701221356r51ffbdd7o9160e5bbd9b8f502@mail.gmail.com \
--to=luigi.scarso@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).