blob: 143fd4466e5eddb045104a7ea7d0028e4d075a84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
%D \module
%D [ file=node-mig,
%D version=2010.01.19,
%D title=\CONTEXT\ Node Macros,
%D subtitle=Inserts,
%D author=Hans Hagen,
%D date=\currentdate,
%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
\writestatus{loading}{ConTeXt Node Support / Migrations}
%D This is very experimental and although it is used in a
%D real project it mostly serves a testbed for Taco and me so
%D as prelude to extending the inserts mechanism.
%D
%D \starttyping
%D \automigrateinserts
%D
%D \hbox{\vbox{x\footnote{1}x\footnote{2}x\footnote{3}x}}
%D \vbox{x\footnote{4}x}
%D \hbox{\vbox{x\footnote{5}x}}
%D
%D \hbox{x}
%D \hbox{x\footnote{6}x}
%D \hbox{x}
%D
%D \starttabulate
%D \NC test \NC test \footnote{test} \input tufte \NC \NR
%D \NC test \NC test \footnote{test} \input tufte \NC \NR
%D \NC test \NC test \footnote{test} \input tufte \NC \NR
%D \NC test \NC test \footnote{test} \input tufte \NC \NR
%D \NC test \NC test \footnote{test} \input tufte \NC \NR
%D \NC test \NC test \footnote{test} \input tufte \NC \NR
%D \stoptabulate
%D \stoptyping
\unprotect
\registerctxluafile{node-mig}{1.001}
\newtoks\everyautomigratefootnotes
\newtoks\everyautomigratemarks
\def\automigrateinserts{\the\everyautomigratefootnotes} % soon default but does not work (yet) for notes in captions (themselves inserts)
\def\automigratemarks {\the\everyautomigratemarks}
\appendtoks
\let\postponenotes\relax
\enableexperiments[inserts.migrate,inserts.migrate.nested]%
\to \everyautomigratefootnotes
\appendtoks
\writestatus\m!system{migration of marks is normally not needed}%
\enableexperiments[marks.migrate]%
\to \everyautomigratemarks
\protect
|