summaryrefslogtreecommitdiff
path: root/tex/context/base/spac-ali.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/spac-ali.mkiv')
-rw-r--r--tex/context/base/spac-ali.mkiv14
1 files changed, 13 insertions, 1 deletions
diff --git a/tex/context/base/spac-ali.mkiv b/tex/context/base/spac-ali.mkiv
index ff384d13d..57806b6f2 100644
--- a/tex/context/base/spac-ali.mkiv
+++ b/tex/context/base/spac-ali.mkiv
@@ -37,9 +37,21 @@
\installcorenamespace{aligncommand}
\installcorenamespace{alignhorizontal}
\installcorenamespace{alignvertical}
+
\installcorenamespace{alignmentnormalcache}
\installcorenamespace{alignmentraggedcache}
+% nasty hack:
+
+\installcorenamespace{alignmentnormalcacheodd}
+\installcorenamespace{alignmentnormalcacheeven}
+
+\installcorenamespace{alignmentraggedcacheodd}
+\installcorenamespace{alignmentraggedcacheeven}
+
+\def\??alignmentnormalcache{\ifodd\realpageno\??alignmentnormalcacheodd\else\??alignmentnormalcacheeven\fi}
+\def\??alignmentraggedcache{\ifodd\realpageno\??alignmentraggedcacheodd\else\??alignmentraggedcacheeven\fi}
+
\newtoks\everyresetalign % todo
% We will not use bodydir and pagedir so we disable them. That way we get
@@ -503,7 +515,7 @@
\rawprocesscommacommand[\askedraggedalign]\spac_align_collect
\fi
\normalexpanded{\t_spac_align_collected
- {% \resetrealignsignal % can go as it is alway set
+ {% \resetrealignsignal % can go as it is always set
\setfalse\raggedonelinerstate % bad
\the\t_spac_align_collected
\spac_align_flush_horizontal