From: Giuseppe Bilotta <gip.bilotta@iol.it>
Subject: [NTG-context] Fully object-oriented section
Date: Thu, 17 Oct 2002 22:28:50 +0200 [thread overview]
Message-ID: <157877251.20021017222850@iol.it> (raw)
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
ntg-context@ref.ntg.nl
http://ref.ntg.nl/mailman/listinfo/ntg-context
next reply other threads:[~2002-10-17 20:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-17 20:28 Giuseppe Bilotta [this message]
2002-10-17 21:27 ` Giuseppe Bilotta
2002-10-18 18:44 ` Simon Pepping
2002-10-18 18:55 ` Re[2]: " Giuseppe Bilotta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=157877251.20021017222850@iol.it \
--to=gip.bilotta@iol.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).