答案1
您可以直接放置目录而不添加标题,然后手动添加。然后将列表标题更改为您想在目录中看到的内容。
% define new head toc from title
\definehead[toc][title]
\setuphead[toc][
style={\WORD\bf}, % change style to uppercase and bold
incrementnumber=list, % add it to toc
]
\setuphead[title][
incrementnumber=list, % add it to toc
]
% setup which elements are part of toc
\setupcombinedlist[content][
list={title, toc, chapter, section, subsection, subsubsection},
alternative=b, % style of toc
]
% setup style of toc
% margin is distance from left margin, width is the space between number and title
\setuplist[title][margin=30mm, style={\WORD\bf}, pagestyle={\word}]
\setuplist[toc][margin=30mm, style={\WORD\bf}, pagestyle={\word}]
\setuplist[chapter][margin=10mm, width=20mm, style={\WORD\bf}, pagestyle={\word}]
\setuplist[section][width=10mm, margin=30mm]
\setuplist[subsection][width=10mm, margin=40mm]
\setuplist[subsubsection][width=10mm, margin=50mm]
% pages before toc get roman numerals
\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset[bodypart:pagenumber][][numbers]
\starttext
\startfrontmatter
\title{Abstract}
\starttoc[
title={Chapter\hfill Title\hfill Page},
list={Table of Contents},
bookmark={Table of Contents},
marking={Table of Contents},
]
\placecontent
\stoptoc
\startfrontmatter
\startbodymatter
\chapter{Chapter 1}
\section{First section}
\subsection{First subsection}
\subsubsection{First subsubsection}
\subsubsubsection{First subsubsubsection}
\section{Second section}
\subsection{Second subsection}
\chapter{Chapter 2}
\section{Third section}
\subsection{Third subsection}
\stopbodymatter
\stoptext
你在维基百科
答案2
此外,对于其他类型的列表,例如数字列表。我正在使用\开始列以达到类似的结果。
\title{List of Figures}
\startcolumns[n=3]
\bf{FIGURE NO.}
\column \bf{TITLE}
\column \hfill \bf{PAGE}
\stopcolumns
\blank[0.5em]
\setuplist[figure][margin=0mm, width=25mm]
\placelist[figure,widetable]