How to hide or remove chapter e section number in subsection head and in TOC subsection head?
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
On Sat, Sep 18, 2010 at 4:45 PM, Aldo Lazich
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
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
participants (2)
-
Aldo Lazich
-
luigi scarso