I have been looking at the use of registers is ConTeXt and, more
specifically, how to achieve the layout that I would like for the
indexing of my cookbook.

The layout that I would like the register to have is:

  Beef                         Bread
    Beef Bourginion .....  1     Basic Bread .........  3
    Beef Estoufade ......  2     Other bread ......... 99
    Beef Broth ..........  7
                               Cheese
  Chicken                        Swiss ............... 12
    foo ................. 77     French .............. 15


Obviously this is a rough rendering of the concept, but the basic
principal is, I hope, clear.

I would like each entry to have the name typeset left aligned, the page
number right aligned to a fixed width and a row of dots filling between
the two.


I would be quite happy with a way to pass the information (page number,
name) to a command and do the rendering myself but, unlike the various
lists[1], this does not seem to be possible.

I am not desperately wedded to the concept of dots but the left/right
alignment /is/ quite important to me -- I find it vastly harder to use
an index in a book where the numbers are not aligned in a column.

Thanks,
        Daniel

NB: A while back someone was collecting questions and answers for a FAQ
about ConTeXt. I am quite happy to help by contributing the things I
have asked to this project, not to mention making them understandable.

Just let me know if you want to have the details. I keep a complete
archive so the history isn't much of a problem...


Footnotes: 
[1]  Such as used for the table of contents.

-- 
Physics is littered with the corpses of dead unified field theories.
        -- Freeman Dyson

Reply via email to