Am 07.02.2014 um 15:45 schrieb Andreas Schneider
Hello,
again I'm working on a technical manual and decided to use ConTeXt to do the job. Since I'm a developer, I always try to do things as flexible as possible.
I'm currently struggling to achieve two things:
1) a macro (that will print a list) should also add a heading. However, the heading should always be one level beneath the current heading and without numbering. Example: within a \section it should be a \subsubject, within a \chapter it should be a \subject, and so on.
\definesectionlevels[extra][title,subject,subsubject,subsubsubject] \setuphead[chapter][color=red] \setuphead[section][color=green] \setuphead[subsection][color=blue] \define\PlaceList {\startsectionlevel[extra][title=List] % \stopsectionlevel} \starttext \startsectionlevel[title=Chapter 1] \PlaceList \startsectionlevel[title=Section 1.1] \startsectionlevel[title=Subsection 1.1.1] \stopsectionlevel \startsectionlevel[title=Subsection 1.1.2] \stopsectionlevel \stopsectionlevel \startsectionlevel[title=Section 1.2] \stopsectionlevel \stopsectionlevel \startsectionlevel[title=Chapter 2] \startsectionlevel[title=Section 2.1] \PlaceList \startsectionlevel[title=Subsection 2.1.1] \stopsectionlevel \startsectionlevel[title=Subsection 2.1.2] \stopsectionlevel \stopsectionlevel \startsectionlevel[title=Section 2.2] \stopsectionlevel \stopsectionlevel \stoptext Wolfgang