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
Idris Samawi Hamid ادريس سماوي حامد wrote:
I am using a module -- non-distributed as far as I know -- created by Wolfgang. It provides grouped sectioning and footnotes:
...
a) Have you added support for grouped sectioning and footnotes in mkiv yet?
there are sectionworlds (core-swd) but i'm not sure if i will extend that in mkii (at some point i will freeze mkii in the sense that no new fundamental extensions will take place, only fixes and trivial extensions) i'm working on a new sectioning mechanisms for mkiv (way more info to be carried around) but i need to make sure that it also provides proper downward compatibility (such mechanisms are rather interwoven with lists, numbering etc)
b) Does the above code seem safe for mkiv?
looks harmless enough to be safe
c) (For Wolfgang:) Has the above code been updated or extended etc. yet?
i hav eno problems with grouped notes in the core, but it need to be done differently - the proposed code assumes an already defined note - best do this combined with the normal definition so .. in core-not we then have: .... .... \unexpanded\setvalue{\currentnote}{\setnote[#1]}% \unexpanded\setvalue{\currentnote\v!text}{\setnotetext[#1]}% \unexpanded\setvalue{\e!start\currentnote}{\dodoubleempty\dostartcurrentnote[#1]}% \unexpanded\setvalue{\e!stop\currentnote}{dostopcurrentnote}} \setupnote[\currentnote][#2]} \def\dostartcurrentnote[#1][#2]% {\setnote[#1][#2]\bgroup\ignorespaces} \def\dostopcurrentnote {\removeunwantedspaces\egroup\noteparameter\c!next} Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Sun, Aug 17, 2008 at 3:22 PM, Hans Hagen
Idris Samawi Hamid ادريس سماوي حامد wrote:
I am using a module -- non-distributed as far as I know -- created by Wolfgang. It provides grouped sectioning and footnotes:
...
a) Have you added support for grouped sectioning and footnotes in mkiv yet?
there are sectionworlds (core-swd) but i'm not sure if i will extend that in mkii (at some point i will freeze mkii in the sense that no new fundamental extensions will take place, only fixes and trivial extensions)
i'm working on a new sectioning mechanisms for mkiv (way more info to be carried around) but i need to make sure that it also provides proper downward compatibility (such mechanisms are rather interwoven with lists, numbering etc)
b) Does the above code seem safe for mkiv?
looks harmless enough to be safe
Do you want to criticise my code :-)
c) (For Wolfgang:) Has the above code been updated or extended etc. yet?
No, I never extended the code because I never used it myself.
i hav eno problems with grouped notes in the core, but it need to be done differently
- the proposed code assumes an already defined note
Right but there is no other way to do this in a module.
- best do this combined with the normal definition
so .. in core-not we then have:
.... .... \unexpanded\setvalue{\currentnote}{\setnote[#1]}% \unexpanded\setvalue{\currentnote\v!text}{\setnotetext[#1]}%
\unexpanded\setvalue{\e!start\currentnote}{\dodoubleempty\dostartcurrentnote[#1]}% \unexpanded\setvalue{\e!stop\currentnote}{dostopcurrentnote}} \setupnote[\currentnote][#2]}
\def\dostartcurrentnote[#1][#2]% {\setnote[#1][#2]\bgroup\ignorespaces}
\def\dostopcurrentnote {\removeunwantedspaces\egroup\noteparameter\c!next}
Wolfgang
Wolfgang Schuster wrote:
b) Does the above code seem safe for mkiv? looks harmless enough to be safe
Do you want to criticise my code :-)
i wouldn't dare; but given that it was a few lines and that i could not grep the do* macros i was willing to take the gamble -) (the definition code is in the beta now, but in a way that each note gets the start/stop automatically) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Idris Samawi Hamid ادريس سماوي ح امد
-
Wolfgang Schuster