summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-tag.mkiv
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2014-08-27 12:34:00 +0200
committerHans Hagen <pragma@wxs.nl>2014-08-27 12:34:00 +0200
commit7eb8593f39b61673c90d12c2fc590933cedf3db0 (patch)
treeac058c5e9596f806edfb03969fc39764e33d391e /tex/context/base/strc-tag.mkiv
parent236b439da00fe0baaf9d7ad6ce684ecd6109555c (diff)
downloadcontext-7eb8593f39b61673c90d12c2fc590933cedf3db0.tar.gz
beta 2014.08.27 12:34
Diffstat (limited to 'tex/context/base/strc-tag.mkiv')
-rw-r--r--tex/context/base/strc-tag.mkiv18
1 files changed, 15 insertions, 3 deletions
diff --git a/tex/context/base/strc-tag.mkiv b/tex/context/base/strc-tag.mkiv
index 83eb3c142..a1cdac592 100644
--- a/tex/context/base/strc-tag.mkiv
+++ b/tex/context/base/strc-tag.mkiv
@@ -374,12 +374,24 @@
\let\startpar\startparagraph
\let\stoppar \stopparagraph
+\def\strc_tags_document_start_indeed
+ {\glet\strc_tags_document_start_indeed\relax
+ \dostarttagged\t!document\empty}
+
+\def\strc_tags_document_stop_indeed
+ {\glet\strc_tags_document_stop_indeed\relax
+ \dostoptagged}
+
\appendtoks
- \dostarttagged\t!document\empty
-\to \everystarttext
+ \strc_tags_document_start_indeed % here because otherwise products don't get a root (starttext before env)
+\to \everyenableelements
+
+% \appendtoks
+% \strc_tags_document_start_indeed
+% \to \everystarttext
\appendtoks
- \dostoptagged
+ \strc_tags_document_stop_indeed
\to \everystoptext
\appendtoks