* Section Header and Enumerations
@ 2012-12-10 15:26 Troy Henderson
2012-12-10 15:40 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Troy Henderson @ 2012-12-10 15:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 365 bytes --]
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.
Thanks,
Troy Henderson
[-- Attachment #1.2: Type: text/html, Size: 448 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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] 5+ messages in thread
* Re: Section Header and Enumerations
2012-12-10 15:26 Section Header and Enumerations Troy Henderson
@ 2012-12-10 15:40 ` Wolfgang Schuster
2012-12-10 15:53 ` Troy Henderson
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2012-12-10 15:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Section Header and Enumerations
2012-12-10 15:40 ` Wolfgang Schuster
@ 2012-12-10 15:53 ` Troy Henderson
2012-12-10 16:18 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Troy Henderson @ 2012-12-10 15:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 207 bytes --]
> Provide a minimal example next time.
>
Apologies. I certainly will.
\setupitemgroup
> [itemize]
> [prefix=yes,
> width=2em]
>
This produces 1.1, 1.2, etc. for me instead of 1-2, 1-2, etc.
Troy
[-- Attachment #1.2: Type: text/html, Size: 569 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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] 5+ messages in thread
* Re: Section Header and Enumerations
2012-12-10 15:53 ` Troy Henderson
@ 2012-12-10 16:18 ` Wolfgang Schuster
2012-12-10 16:22 ` Troy Henderson
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2012-12-10 16:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 368 bytes --]
Am 10.12.2012 um 16:53 schrieb Troy Henderson <thenders@gmail.com>:
> Provide a minimal example next time.
>
> Apologies. I certainly will.
>
> \setupitemgroup
> [itemize]
> [prefix=yes,
> width=2em]
>
> This produces 1.1, 1.2, etc. for me instead of 1-2, 1-2, etc.
\setupitemgroup
[itemize]
[prefix=yes,
prefixconnector=-,
width=2em]
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1291 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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] 5+ messages in thread
end of thread, other threads:[~2012-12-10 16:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-10 15:26 Section Header and Enumerations Troy Henderson
2012-12-10 15:40 ` Wolfgang Schuster
2012-12-10 15:53 ` Troy Henderson
2012-12-10 16:18 ` Wolfgang Schuster
2012-12-10 16:22 ` Troy Henderson
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).