* subsection number independent of section
@ 2007-08-26 23:02 Michael
2007-08-26 23:15 ` Idris Samawi Hamid
2007-08-27 7:23 ` Wolfgang Schuster
0 siblings, 2 replies; 3+ messages in thread
From: Michael @ 2007-08-26 23:02 UTC (permalink / raw)
To: ntg-context
Hi, I am trying to write up a legal document, in which I want the numbers
for section and subsection look like:
,----
| I. A Section Title
|
| A. A Subsection Title
`----
So far, I can only get
,----
| I. A Section Title
|
| I.A. A Subsection Title
`----
Commend used:
\setupsection[section-3][conversion=Romannumerals]
\setuplabeltext[section={{},{.}}]
\setuphead[section]
[style=bold,alternative=normal,textcommand=\uppercase]
\setupsection[section-4][conversion=Character]
How can I get what I need? Thanks.
Michael
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: subsection number independent of section
2007-08-26 23:02 subsection number independent of section Michael
@ 2007-08-26 23:15 ` Idris Samawi Hamid
2007-08-27 7:23 ` Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: Idris Samawi Hamid @ 2007-08-26 23:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
On Sun, 26 Aug 2007 17:02:59 -0600, Michael <wuolong@gmail.com> wrote:
> ,----
> | I. A Section Title
> |
> | A. A Subsection Title
> `----
>
>
> So far, I can only get
>
> ,----
> | I. A Section Title
> |
> | I.A. A Subsection Title
> `----
>
> Commend used:
>
> \setupsection[section-3][conversion=Romannumerals]
> \setuplabeltext[section={{},{.}}]
> \setuphead[section]
> [style=bold,alternative=normal,textcommand=\uppercase]
> \setupsection[section-4][conversion=Character]
Why do you need literal subsections? Why not roll your own section in
tandem with \section?
The following produces what you want:
============================
\setuphead[section][conversion=Romannumerals]
\definehead[SUBsection][section]
\setuphead[SUBsection][conversion=Character]
\setuplabeltext[section={{},{.}}]
\setuplabeltext[SUBsection={{},{.}}]
\starttext
\section{A Section Title}
\SUBsection{A Subsection Title}
\stoptext
============================
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: subsection number independent of section
2007-08-26 23:02 subsection number independent of section Michael
2007-08-26 23:15 ` Idris Samawi Hamid
@ 2007-08-27 7:23 ` Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2007-08-27 7:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
2007/8/27, Michael <wuolong@gmail.com>:
>
> Hi, I am trying to write up a legal document, in which I want the numbers
> for section and subsection look like:
>
> ,----
> | I. A Section Title
> |
> | A. A Subsection Title
> `----
>
>
> So far, I can only get
>
> ,----
> | I. A Section Title
> |
> | I.A. A Subsection Title
> `----
>
> Commend used:
>
> \setupsection[section-3][conversion=Romannumerals]
> \setuplabeltext[section={{},{.}}]
> \setuphead[section]
> [style=bold,alternative=normal,textcommand=\uppercase]
> \setupsection[section-4][conversion=Character]
>
> How can I get what I need? Thanks.
>
> Michael
Hi Michael,
you need previousnumber=no in setupsection.
\setupsection
[section]
[conversion=Romannumerals]
\setuplabeltext
[section={{},{.}},
subsection={{},{.}}]
\setuphead
[section]
[style=bold,
alternative=normal,
textcommand=\uppercase]
\setupsection
[subsection]
[previousnumber=no,
conversion=Character]
\starttext
\section{A Section Title}
\subsection{A Subsection Title}
\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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-27 7:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-26 23:02 subsection number independent of section Michael
2007-08-26 23:15 ` Idris Samawi Hamid
2007-08-27 7:23 ` Wolfgang Schuster
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).