Hello,

I'd like to restart the thread about "object-orienting" section
commands. Availability of \startpart ... \stoppart, \startchapter
...\stopchapter (alongside the faster \part, \chapter ...
alternatives) becomes more and more a need for me. Having the
mechanism standardized in ConTeXt would be a great thing.

This is the way I'm implementing it by hand:

%D New structured sectioning

\newtoks\everybeforestartpart
\newtoks\everyafterstartpart
\newtoks\everystoppart
\def\startpart{\dosingleempty\dostartpart}
\def\dostartpart[#1]#2{%
  \bgroup\bgroup
    \the\everybeforestartpart
    \iffirstargument
       \part[#1]{#2}%
    \else
       \part{#2}%
    \fi
  \egroup
  \the\everyafterstartpart
}
\def\stoppart{\the\everystoppart\egroup}


Using this snippet as the kernel and simply changing "part" to
whatever other sectioning level is needed is enough to allow full
customization of the sectioning levels. Can this be put in
ConTeXt?

-- 
Giuseppe "Oblomov" Bilotta

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://ref.ntg.nl/mailman/listinfo/ntg-context

Reply via email to