[NTG-context] Section horizontal space adjustment (LaTeX -> ConTeXt) (reduced attachs)

Procházka Lukáš Ing. - Pontex s. r. o. LPr at pontex.cz
Mon Nov 15 10:59:26 CET 2010


Hello all,

what is the simplest way how to change the horizontal space between the number and the name of a section (chapter, subsection...)? (Migrating from LaTeX to ConTeXt.)

There are two test documents attached -

- t-Sec2.pdf - to see the default view of LaTeX section number/text spacing,

- t-Sec.pdf - to see the same by ConTeXt (i.e. some less h-space).

What is the best (or simplest) way how to adjust this?

I tried to work with stopper and/or separator in \setupheads, but - to be honest - I don't know when they go to an action.

I achieved the required job by defining a new command \MyCmd - but is this the best way? Or are there better options or commands to achieve this? - See the code (and result):

---
\def\MyCmd#1#2{#1\hskip3ex#2}

\setupheads[stopper=STOPPER,separator=SEPARATOR,command=\MyCmd]

% When are the "stopper" and "separator" applied?

\starttext
    \chapter{AAA}
      \section{BBB}
        uuu
\stoptext
---

Cheers,

Lukas


-- 
Ing. Lukáš Procházka [mailto:LPr at pontex.cz]
Pontex s. r. o.      [mailto:pontex at pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-SetupHead.pdf
Type: application/pdf
Size: 5048 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20101115/0b8b7fd6/attachment-0003.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-SetupHead.mkiv
Type: application/octet-stream
Size: 170 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20101115/0b8b7fd6/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-Sec2.tex
Type: application/x-tex
Size: 1672 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20101115/0b8b7fd6/attachment-0001.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-Sec.mkiv
Type: application/octet-stream
Size: 745 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20101115/0b8b7fd6/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-Sec.pdf
Type: application/pdf
Size: 13677 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20101115/0b8b7fd6/attachment-0004.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-Sec2.pdf
Type: application/pdf
Size: 22764 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20101115/0b8b7fd6/attachment-0005.pdf>


More information about the ntg-context mailing list