Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How can i replicate the table of contents style from the ConTeXt manual with ConTeXt?

In particular, I like that page numbers are not aligned right und sections have no line breaks between them. Looking at the sources, i cannot figure out how to reproduce that.

share|improve this question
    
Just have a look in this file: foundry.supelec.fr/gf/project/contextman/scmsvn/… –  topskip Aug 5 '11 at 11:52
    
@Patrick: that should be an answer –  Taco Hoekwater Aug 5 '11 at 12:23

1 Answer 1

The source code of this manual is available online (and you can help enhancing the document by reporting any errors or telling the people on the context mailing list how you liked it), so just look at the file that generates the toc (st-contents.tex).

share|improve this answer
    
Ok, essentially: \setuplist[chapter][alternative=a,pagecommand=\hskip10pt,interaction=all] \setuplist[section,subsection][alternative=d,margin=2em] However, interaction=all for section,subsections makes the page numbers disappear. Also, alternative=d is undefined? –  beza1e1 Aug 8 '11 at 11:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.