I have a table of contents defined like this:
\setuphead[part][number=no]
\setuphead[chapter][number=no]
\setuphead[section][number=no]
\setuplist[part][alternative=a, margin=0em]
\setuplist[chapter][alternative=a, margin=0em]
\setuplist[section][alternative=d, margin=0em]
\starttext
\startfrontmatter
\completecontent
\stopfrontmatter
\startbodymatter
\part{This is a part title}
\chapter{This is a chapter title}
\section{This is a section title}
\section{This is another section title}
\stopbodymatter
\stoptext
After compiling, it appears like this:
Contents
This is a part title 2
This is a chapter title 3
This is a section title 3 This is another section title 3
This has three problems:
- The various section levels do not align horizontally.
- The horizontal distance between the section title entries and the page number is different for
alternative=aandalternative=d. - The vertical line spacing is inconsistent.
I would like to create a result like this:
Contents
This is a part title 2
This is a chapter title 3
This is a section title 3 This is another section title 3
- Why are
alternative=aandalternative=dappearing so differently? - How can I make the entries line up along the left, set the placement of the page number consistently, and adjust the line spacing so it is the same for all entries?
