[NTG-context] tagging heads and empty output

Idris Samawi Hamid ادريس سماوي حامد ishamid at colostate.edu
Sat Apr 11 01:17:59 CEST 2015


On Wed, 08 Apr 2015 10:18:53 -0600, Hans Hagen <pragma at wxs.nl> wrote:

> On 4/3/2015 8:59 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
>> Hi Hans,
>>
>> On Sat, 28 Mar 2015 16:17:33 -0600, Hans Hagen <pragma at wxs.nl> wrote:
>>
>>> On 3/28/2015 10:12 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
>>>> On Sat, 28 Mar 2015 07:34:32 -0600, Idris Samawi Hamid ادريس سماوي  
>>>> حامد
>>>> <ishamid at colostate.edu> wrote:
>>>>
>>>>> Dear gang,
>>>>> Two issues:
>>>>>
>>>>> 1. What is the proper way to tag heads in itemize? I do
>>>
>>> the next beta will provide
>>>
>>> <item head="yes">
>>
>> ===============
>>   <div class="itemgroup itemize symbol-n level-1">
>>    <div class="item head-yes">
>>     <div class="itemtag">1.</div>
>>     <div class="itemcontent">Head 1     <div
>> class="break"><!--empty--></div>
>> Test 3</div>
>>    </div>
>>    <div class="item head-yes">
>>     <div class="itemtag">2.</div>
>>     <div class="itemcontent">Head 2     <div
>> class="break"><!--empty--></div>
>> Test 4</div>
>>    </div>
>>   </div>
>> ===============
>>
>> Ok, but 'Head 1' and 'Head 2' are still not tagged, so we can't
>> translate the actual head, e.g.,
>>
>> \setupitemize[each][headstyle=bold]
>>
>> into css, while leaving the paragraph after the break unaffected.
>>
>> Current workaround:
>>
>> ==================
>> \definestartstop[heading][style=]
>>
>> \startitemize[n]
>> \starthead {\startheading Head 1 \stopheading}
>>
>> Test 1
>> \stophead
>> \starthead {\startheading Head 2 \stopheading}
>>
>> Test 2
>> \stophead
>> \stopitemize
>> =================
>>   <div class="itemgroup itemize symbol-n level-1">
>>    <div class="item head-yes">
>>     <div class="itemtag">1.</div>
>>     <div class="itemcontent"><div class="construct heading">Head
>> 1</div>    <div class="break"><!--empty--></div>
>> Test 1</div>
>>    </div>
>>    <div class="item head-yes">
>>     <div class="itemtag">2.</div>
>>     <div class="itemcontent"><div class="construct heading">Head
>> 2</div>    <div class="break"><!--empty--></div>
>> Test 2</div>
>>    </div>
>>   </div>
>> ===============
>
> ok, you now get (next beta) ... that's all you get (too much mess  
> otherwise)
>
>    <item kind="head">
>     <itemtag>2.</itemtag>
>     <itemcontent><itemhead>Head 2</itemhead> <itembody>Test  
> 2</itembody></itemcontent>
>    </item>

Just tested, works nicely... Thank you Hans!

Best wishes
Idris
-- 
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523


More information about the ntg-context mailing list