ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* grouped sections and footnotes
@ 2008-08-16 22:34 Idris Samawi Hamid ادريس سماوي حامد
  2008-08-17 13:22 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2008-08-16 22:34 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

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 : ntg-context@ntg.nl / 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-18 14:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-16 22:34 grouped sections and footnotes Idris Samawi Hamid ادريس سماوي حامد
2008-08-17 13:22 ` Hans Hagen
2008-08-18 12:31   ` Wolfgang Schuster
2008-08-18 14:01     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).