[NTG-context] Indentation in TOC

Devendra Ghate devendra.ghate at gmail.com
Mon Feb 4 21:11:54 CET 2013


Hello,

I am trying to indent my section/subsection etc. progressively. I am 
using *numbercommand*
and added *hspace* before the numbers. But the section title is not 
moved to the right along with
the section number and overlaps with it. I tried adding *loffset=2cm* 
(since all the options of *\framed* are
valid for *setuplist*) also, but doesn't seem to have any effect.

Please point out the mistake.

Regards,
Devendra

*MWE*

\definehspace[myem][2em]
\def\secnum#1{\hspace[myem]#1}
\setuplist
   [section]
    [numbercommand={\secnum}]

\starttext
    \completecontent[alternative=c]
    \chapter{A}
    \section{B}
\stoptext



More information about the ntg-context mailing list