From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Section Header and Enumerations
Date: Mon, 10 Dec 2012 16:40:34 +0100 [thread overview]
Message-ID: <5FED575D-62E0-4136-90D4-A0A8BD073476@gmail.com> (raw)
In-Reply-To: <CAFP+xF+TXuLoi=sU6qp+J-H8+Jb7ri2iJ80dgsW+wQfQoipGLA@mail.gmail.com>
Am 10.12.2012 um 16:26 schrieb Troy Henderson <thenders@gmail.com>:
> I would like for my section headers to have the following format:
>
> Section 1 -- First Section
> Section 2 -- Second Section
> ...
>
> and I would also like for enumeration lists, for example
>
> \startitemize[n]
> \item Foo
> \item Bar
> \stopitemize
>
> to look like
>
> 1-1 Foo
> 1-2 Bar
>
> where the "1-" is the section number in which the itemize resides.
Provide a minimal example next time.
\setuplabeltext[section=Section~]
\setuphead
[section]
[sectionstopper=~–~,
distance=0pt]
\setupitemgroup
[itemize]
[prefix=yes,
width=2em]
\starttext
\section{First Section}
\startitemize[n]
\item Foo
\item Bar
\stopitemize
\section{Second Section}
\startitemize[n]
\item Foo
\item Bar
\stopitemize
\stoptext
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-12-10 15:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-10 15:26 Troy Henderson
2012-12-10 15:40 ` Wolfgang Schuster [this message]
2012-12-10 15:53 ` Troy Henderson
2012-12-10 16:18 ` Wolfgang Schuster
2012-12-10 16:22 ` Troy Henderson
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=5FED575D-62E0-4136-90D4-A0A8BD073476@gmail.com \
--to=wolfgang.schuster@gmail.com \
--cc=ntg-context@ntg.nl \
/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).