[NTG-context] \setuplist[alternative=inmargin, sectionsegments=section]?
Dear list, I have the following sample: \setupheads\setuphead[chapter][sectionsegments=chapter, align=center] \setuphead[section][alternative=inmargin] \setuplist[section][alternative=d, style=\itx] \starttext \placecontent \startfrontmatter \dorecurse{2}{\chapter{Chapter} \dorecurse{10}{\section{Section}\input zapf}} \startfrontmatter \startbodymatter \dorecurse{2}{\part{Part} \dorecurse{2}{\chapter{Chapter} \dorecurse{10}{\section{Section}\input knuth}}} \stopbodymatter \stoptext My question is: how can I achieve \setuplist[chapter][alternative=inmargin] and \setuplist[section][sectionsegments=section]? I know these options are not implemented for \setuplist, but I think they would be extremely useful, if they were implemented. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 ___
Re: [NTG-context] \setuplist[alternative=inmargin, sectionsegments=section]?
Am 19.02.2014 um 19:02 schrieb Pablo Rodriguez oi...@gmx.es: Dear list, I have the following sample: \setupheads\setuphead[chapter][sectionsegments=chapter, align=center] \setuphead[section][alternative=inmargin] \setuplist[section][alternative=d, style=\itx] \starttext \placecontent \startfrontmatter \dorecurse{2}{\chapter{Chapter} \dorecurse{10}{\section{Section}\input zapf}} \startfrontmatter \startbodymatter \dorecurse{2}{\part{Part} \dorecurse{2}{\chapter{Chapter} \dorecurse{10}{\section{Section}\input knuth}}} \stopbodymatter \stoptext My question is: how can I achieve \setuplist[chapter][alternative=inmargin] and Write your own list layout. \setuplist[section][sectionsegments=section]? \setuplist[section][numbersegments=section] Wolfgang ___ 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 ___
Re: [NTG-context] \setuplist[alternative=inmargin, sectionsegments=section]?
On 02/19/2014 07:48 PM, Wolfgang Schuster wrote: Am 19.02.2014 um 19:02 schrieb Pablo Rodriguez: [...] My question is: how can I achieve \setuplist[chapter][alternative=inmargin] and Write your own list layout. Many thanks for your reply, Wolfgang. I have no idea about how to do it. What should I start reading? \setuplist[section][sectionsegments=section]? \setuplist[section][numbersegments=section] Exactly what I wanted. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 ___
Re: [NTG-context] \setuplist[alternative=inmargin, sectionsegments=section]?
Am 19.02.2014 um 20:14 schrieb Pablo Rodriguez oi...@gmx.es: On 02/19/2014 07:48 PM, Wolfgang Schuster wrote: Am 19.02.2014 um 19:02 schrieb Pablo Rodriguez: [...] My question is: how can I achieve \setuplist[chapter][alternative=inmargin] and Write your own list layout. Many thanks for your reply, Wolfgang. I have no idea about how to do it. What should I start reading? Search for \definelistalternative or \setuplist in combination with alternative=command. Wolfgang ___ 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 ___
Re: [NTG-context] \setuplist[alternative=inmargin?
On 02/19/2014 08:26 PM, Wolfgang Schuster wrote: Am 19.02.2014 um 20:14 schrieb Pablo Rodriguez: On 02/19/2014 07:48 PM, Wolfgang Schuster wrote: [...] Write your own list layout. I have no idea about how to do it. What should I start reading? Search for \definelistalternative or \setuplist in combination with alternative=command. Many thanks for your reply, Wolfgang. After reading strc-lst.mkvi (and trying something), I thought of a different approach: \showframe\showgrid \setupinteraction[state=start] \setupcombinedlist[content][interaction=all] \setuplist[chapter][numbercommand=\listchapter,width=0pt] \definemargindata[listchapter][hoffset=1em,location=left,style=] \setupinterlinespace[line=3.3ex] \setupwhitespace[small] \setupindenting[medium,always] \starttext \placecontent \dorecurse{10}{\chapter{Chapter}} \stoptext The only side-effect is that interaction doesn’t work for the chapter number. Is there any way to enable it again? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 ___