From: Aldo Lazich <aldo_lazich@yahoo.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to hide or remove chapter e section number in subsection head and in TOC subsection head?
Date: Tue, 21 Sep 2010 20:09:47 +0200 [thread overview]
Message-ID: <8F69C72D-D3F1-410D-8007-CB715A227602@yahoo.com> (raw)
In-Reply-To: <AANLkTinL3109cu+R=-6-2Q6v0zr4ohKeHp8FDbPJtivh@mail.gmail.com>
My first problem was about headers and I resolved it this way:
----8<-----------------------------------
\definehead[capo][chapter]
\setuphead
[capo]
[alternative=middle,ownnumber=yes]
\def\myownnumber#1{\currentstructureownnumber}
%-------------------^^^^^^^^^^^^^^^^^^^^^^
\definehead[sezione][section]
\setuphead
[sezione][alternative=middle,ownnumber=yes,numbercommand=\myownnumber]
\definehead[articolo][subsubsection]
\setuphead
[articolo]
[alternative=middle,ownnumber=yes]
\starttext
\capo{CAPO I}{Titolo del primo papo}
text
\sezione{Sezione I}{Titolo della prima sezione}
text
\articolo{ART. 1}{Titolo del primo articolo}
text
\sezione{Sezione II}{Titolo della seconda sezione}
text
\articolo{ART. 2}{Titolo del secondo articolo}
\capo{CAPO II}{Titolo del secondo papo}
text
\articolo{ART. 3}{Titolo del terzo articolo}
text
\sezione{Sezione III}{Titolo della terza sezione}
text
\articolo{ART. 4}{Titolo del quarto articolo}
text
\articolo{ART. 5}{Titolo del quinto articolo}
text
\stoptext
----8<-----------------------------------
I don't know if it the best solution but it works.
@ Luigi, now I'll study the *lists* :-)
On 18Sep 2010, at 5:14 PM, luigi scarso wrote:
> Do you want to modify the list , right ?
> If so, then you should see
> http://wiki.contextgarden.net/Reference/en/definecombinedlist
> until
> http://wiki.contextgarden.net/Reference/en/setuplist
> --
> luigi
>
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2010-09-21 18:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-18 14:45 Aldo Lazich
2010-09-18 15:14 ` luigi scarso
2010-09-21 18:09 ` Aldo Lazich [this message]
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=8F69C72D-D3F1-410D-8007-CB715A227602@yahoo.com \
--to=aldo_lazich@yahoo.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).