ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Indentation in TOC
@ 2013-02-04 20:11 Devendra Ghate
  2013-02-04 20:17 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Devendra Ghate @ 2013-02-04 20:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Indentation in TOC
  2013-02-04 20:11 Indentation in TOC Devendra Ghate
@ 2013-02-04 20:17 ` Wolfgang Schuster
  2013-02-04 20:19   ` Devendra Ghate
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2013-02-04 20:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 04.02.2013 um 21:11 schrieb Devendra Ghate <devendra.ghate@gmail.com>:

> 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}]

\setuplist[…][margin=2em]

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Indentation in TOC
  2013-02-04 20:17 ` Wolfgang Schuster
@ 2013-02-04 20:19   ` Devendra Ghate
  0 siblings, 0 replies; 3+ messages in thread
From: Devendra Ghate @ 2013-02-04 20:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On 02/05/2013 01:47 AM, Wolfgang Schuster wrote:
> Am 04.02.2013 um 21:11 schrieb Devendra Ghate <devendra.ghate@gmail.com>:
>
>> 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}]
> \setuplist[…][margin=2em]
>
> Wolfgang
Thank you very much.

Devendra







> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-04 20:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-04 20:11 Indentation in TOC Devendra Ghate
2013-02-04 20:17 ` Wolfgang Schuster
2013-02-04 20:19   ` Devendra Ghate

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).