![](https://secure.gravatar.com/avatar/a4358949522f2efc1bab8ed68385b00c.jpg?s=120&d=mm&r=g)
On Sat, 28 Mar 2015 07:34:32 -0600, Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Two issues:
1. What is the proper way to tag heads in itemize? I do
========== \startitemize[n] \starthead {Head 1}
Test 1 \stophead \starthead {Head 2}
Test 2 \stophead \stopitemize ==========
but {Head 1} and {Head 2} are not tagged in the output *div.html. Is there a special tagging command for the heads?
2. In a browser, everything within a <div class="itemgroup itemize level-1 symbol-n"> etc is ignored (tried different browers); nothing shows up at all, so nothing to tweak in css.
============== <div class="itemgroup itemize level-1 symbol-n"> <div class="item"> <div class="itemtag">1.</div> <div class="itemcontent">Head 1 <div class="break"><!--empty--></div> Test 1</div> </div> <div class="item"> <div class="itemtag">2.</div> <div class="itemcontent">Head 2 <div class="break"><!--empty--></div> Test 2</div> </div> </div> ==============
Is there something wrong with context's xhtml output? test files attached
Ok, I figured it out. Attached are working files for the record, as well as sources below. Also, it seems there is no tagging for the first argument to \start-stophead. A simple \definestartstop[heading][style=] does the trick, and may be worth adding to the distribution. Best wishes Idris ========= \setupexport[cssfile=itemize.css] \setupbackend[export=yes] \setupitemize[each][headstyle=bold] \definestartstop[heading][style=] \starttext Text \startitemize[n] \starthead {\startheading Head 1 \stopheading} Test 1 \stophead \starthead {\startheading Head 2 \stopheading} Test 2 \stophead \stopitemize \startitemize[n] \startitem[] Text \stopitem \startitem[] Text \stopitem \stopitemize \startitemize \starthead {\startheading Head 1 \stopheading} Test 3 \stophead \starthead {\startheading Head 2 \stopheading} Test 4 \stophead \stopitemize \stoptext ========= .itemgroup.itemize.level-1.symbol-n { display : block ; margin-bottom : 0.5em ; margin-top : 0.5em ; } .itemgroup.itemize.level-1.symbol-n > .item{ display : block ; } .itemgroup.itemize.level-1.symbol-n > .item > .itemtag { display : inline ; font-weight : normal ; margin-right : 1em ; } .itemgroup.itemize.level-1.symbol-1 > .item{ display : block ; } .itemgroup.itemize.level-1.symbol-1 > .item > .itemtag { display : inline ; font-weight : normal ; margin-right : 1em ; } .itemgroup.itemize.level-1.symbol-1 > .item > .itemcontent { display : inline ; } .construct.heading { display : inline ; font-weight : bold ; } .itemgroup.itemize.level-1.symbol-n > .item > .itemcontent { display : inline ; } ========= -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523