[NTG-context] put titles in toc

Pablo Rodriguez oinos at gmx.es
Tue Sep 8 20:55:04 CEST 2015


On 09/08/2015 08:25 PM, John Culleton wrote:
> In thew frontmatter there are several titles
> headings that i want to see in the TOC
> Here is a
> stripped down version of my file:

Hi John,

I think this might do what you want:

    \definehead[titleintoc][chapter][number=no]
    \starttext
    \noheaderandfooterlines
    \title{Contents}
    \placelist[chapter,titleintoc]
    \chapter{foo}
    \input knuth.tex
    \titleintoc{bar}
    \input knuth.tex
    \stoptext

I hope it helps,


Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list