On 08/06/2017 03:54 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
[...] Something along the lines of the following would be a sufficient (and easier) first step for the current project, although we may want to revisit the above for the future:
3 <par> % section 3.0.1 <par> % subsubsection
4 <par> % section 4.1 <par> % subsection 4.1.1 <par> % subsubsection
How can we automate this?
Hi Idris, if you only need a printed version, I think the following approach might help: \setupwhitespace[big] \setuphead[section] [alternative=margintext, color=white, style=\tfxx, before=, after=, commandafter={\setupparagraphintro[first] [{{\bf \getmarking[sectionnumber][current] \hspace[big]}}]}] \setuphead[subsection] [commandafter={\setupparagraphintro[first] [{{\bf \getmarking[subsectionnumber][current] \hspace[big]}}]}] \setuphead[subsubsection] [commandafter={\setupparagraphintro[first] [{{\bf \getmarking[subsubsectionnumber][current] \hspace[big]}}]}] \starttext \dorecurse{3}{\section{} \startpar\input ward\stoppar \startpar\input ward\stoppar \dorecurse{3}{\subsection{} \startpar\input ward\stoppar \startpar\input ward\stoppar \dorecurse{3}{\subsubsection{} \startpar\input ward\stoppar \startpar\input ward\stoppar \startpar\input ward\stoppar} \startpar\input ward\stoppar} \startpar\input ward\stoppar} \stoptext I hope it helps, Pablo -- http://www.ousia.tk