summaryrefslogtreecommitdiff
path: root/tex/context/base/anch-snc.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/anch-snc.mkiv')
-rw-r--r--tex/context/base/anch-snc.mkiv20
1 files changed, 15 insertions, 5 deletions
diff --git a/tex/context/base/anch-snc.mkiv b/tex/context/base/anch-snc.mkiv
index 32222bb50..c7448f3a1 100644
--- a/tex/context/base/anch-snc.mkiv
+++ b/tex/context/base/anch-snc.mkiv
@@ -17,6 +17,7 @@
\unprotect
+\ifx\s!num \undefined \def\s!num {num} \fi
\ifx\s!set \undefined \def\s!set {set} \fi
\ifx\s!reset \undefined \def\s!reset {reset} \fi
\ifx\s!preset \undefined \def\s!preset {preset} \fi
@@ -155,10 +156,14 @@
%
% \appendtoks \flushsyncpositions \to \neverypar
-\protect \endinput
+\protect
+
+\continueifinputfile{anch-snc.mkiv}
\starttext
+\setupbodyfont[dejavu]
+
\definesyncpositions[1]
\startuseMPgraphic{sync}
@@ -185,9 +190,14 @@
\setupbackgrounds[page][background=tempoverlay]
-\syncposition[1][1] \input ward \endgraf
-\syncposition[1][2] \input ward \endgraf
-\syncposition[1][3] \input ward \endgraf
-\syncposition[1][4] \input ward \endgraf
+\dorecurse {100} {
+
+ \startchapter[title={Test #1}]
+ \syncposition[1][1] \dorecurse{10}{\input ward \endgraf}
+ \syncposition[1][2] \dorecurse{4}{\input ward \endgraf}
+ \syncposition[1][3] \dorecurse{7}{\input ward \endgraf}
+ \syncposition[1][4] \dorecurse{3}{\input ward \endgraf}
+ \stopchapter
+}
\stoptext