* How to hide or remove chapter e section number in subsection head and in TOC subsection head?
@ 2010-09-18 14:45 Aldo Lazich
2010-09-18 15:14 ` luigi scarso
0 siblings, 1 reply; 3+ messages in thread
From: Aldo Lazich @ 2010-09-18 14:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi to all.
I don't want:
8.3.2 Subsection title
8.3.2 Subsebtion title.........page no % in TOC
but I wish:
2 Subsebtion title
2 Subsebtion title.........page no % in TOC
here my code (ConTeXt ver: 2010.09.09 23:45 MKIV fmt: 2010.9.12):
--8<----------------------------
% chapter -----> capo
% section -----> sezione
% subsection --> articolo
\definehead[capo][chapter]
\setuphead
[capo]
[alternative=middle,ownnumber=yes] % yes, I need ownnumber=yes
\definehead[sezione][section]
\setuphead
[sezione]
[alternative=middle,ownnumber=yes]
\definehead[articolo][subsection]
\setuphead
[articolo]
[alternative=middle,ownnumber=yes]
\starttext
\placelist[capo,sezione,articolo][alternative=c]
\capo{CAPO I}{TITLE CAPO I}
\sezione{Sezione 1}{Title Sezione 1}
\articolo{Art. 1}{Title Art. 1}
text text text text
\articolo{Art. 2}{Title Art. 2}
text text text text
\capo{CAPO II}{TITLE CAPO II}
\sezione{Sezione 2}{Title Sezione 2}
\articolo{Art. 3}{text Art. n.3}
text text text text
\stoptext
---8<--------------------------
About indipendent section numbering, code in "http://wiki.contextgarden.net/Chapters_headers#Chapter_headers" seems don't work
Thanks
Aldo
___________________________________________________________________________________
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] 3+ messages in thread
* Re: How to hide or remove chapter e section number in subsection head and in TOC subsection head?
2010-09-18 14:45 How to hide or remove chapter e section number in subsection head and in TOC subsection head? Aldo Lazich
@ 2010-09-18 15:14 ` luigi scarso
2010-09-21 18:09 ` Aldo Lazich
0 siblings, 1 reply; 3+ messages in thread
From: luigi scarso @ 2010-09-18 15:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sat, Sep 18, 2010 at 4:45 PM, Aldo Lazich <aldo_lazich@yahoo.com> wrote:
> Hi to all.
>
> I don't want:
>
> 8.3.2 Subsection title
> 8.3.2 Subsebtion title.........page no % in TOC
>
> but I wish:
> 2 Subsebtion title
> 2 Subsebtion title.........page no % in TOC
>
> here my code (ConTeXt ver: 2010.09.09 23:45 MKIV fmt: 2010.9.12):
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to hide or remove chapter e section number in subsection head and in TOC subsection head?
2010-09-18 15:14 ` luigi scarso
@ 2010-09-21 18:09 ` Aldo Lazich
0 siblings, 0 replies; 3+ messages in thread
From: Aldo Lazich @ 2010-09-21 18:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-21 18:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-18 14:45 How to hide or remove chapter e section number in subsection head and in TOC subsection head? Aldo Lazich
2010-09-18 15:14 ` luigi scarso
2010-09-21 18:09 ` Aldo Lazich
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).