Hi Hans,

I am using a module -- non-distributed as far as I know -- created by  
Wolfgang. It provides grouped sectioning and footnotes:

====startstop-t.tex======
\unprotect

\def\????se{@@@@se}

\def\definegroupedsection[#1]%
   {\setvalue{\e!start#1}[##1]%
      {\getparameters[\????se#1][\c!ref=,\c!title=,##1]%
    \getvalue{#1}[\getvalue{\????se#1\c!ref}]{\getvalue{\????se#1\c!title}}}
    \setvalue{\e!stop#1}{\relax}}

\def\definegroupednote[#1]%
   {\edef\currentnote{#1}%
    \def\dostartcurrentnote[##1][##2]{\setnote[##1][##2]\bgroup\ignorespaces}%
    \setvalue{\e!start\currentnote}{\dodoubleempty\dostartcurrentnote[#1]}%
    
\setvalue{\e!stop\currentnote}{\removeunwantedspaces\egroup\noteparameter\c!next}}

\definegroupedsection[title]
\definegroupedsection[chapter]
\definegroupedsection[section]
\definegroupedsection[subsection]
\definegroupedsection[subsubsection]
\definegroupednote   [footnote]

\setupfootnotes[next=\autoinsertnextspace]

\protect

\starttext
\starttitle[title=Title]
\stoptitle
\startchapter[title=Chapter]
\startsection[title=Section]
\input knuth
Text
\startfootnote[nabiyy]
A footnote
\stopfootnote
text
\startsubsection[title=Subsection]
Text
\startfootnote
A footnote. See \in{footnote}[nabiyy]
\stopfootnote
text
\startsubsubsection[title=Subsubsection]
Text
\startfootnote
A footnote
\stopfootnote
text
\stopsubsubsection
\stopsubsection
\stopsection
\stopchapter
\stoptext
=========================

Question:

a) Have you added support for grouped sectioning and footnotes in mkiv yet?
b) Does the above code seem safe for mkiv?
c) (For Wolfgang:) Has the above code been updated or extended etc. yet?

For long documents this kind of grouping has become indispensable (easy  
code-folding etc.)

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to