summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/page-mar.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/page-mar.tex')
-rw-r--r--Master/texmf-dist/tex/context/base/page-mar.tex12
1 files changed, 6 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/context/base/page-mar.tex b/Master/texmf-dist/tex/context/base/page-mar.tex
index e11d0d15e08..c6804704b2f 100644
--- a/Master/texmf-dist/tex/context/base/page-mar.tex
+++ b/Master/texmf-dist/tex/context/base/page-mar.tex
@@ -2,7 +2,7 @@
%D [ file=page-mar, % moved here from main-001
%D version=1997.03.31,
%D title=\CONTEXT\ Core Macros,
-%D subtitle=Marginal Things
+%D subtitle=Marginal Things,
%D author=Hans Hagen,
%D date=\currentdate,
%D copyright={PRAGMA / Hans Hagen \& Ton Otten}]
@@ -193,8 +193,8 @@
\let \margincontentseparator \empty
\def \margincontentstrutheight {\strutht}
-\newcounter\margincontentlevel
-\newdimen \margincontentheight
+\newcount\margincontentlevel
+\newdimen\margincontentheight
\def\setupinmargin
{\dodoubleempty\dosetupinmargin}
@@ -700,8 +700,8 @@
{\global\chardef\margintextcollected\plusone
\edef\margincontenttag{#1}%
\ifx\margincontenttag\empty
- \doglobal\increment\margincontentlevel
- \let\margincontenttag\margincontentlevel
+ \global\advance\margincontentlevel\plusone
+ \edef\margincontenttag{\number\margincontentlevel}%
\fi
\checkinmargin[\margincontenttag]%
\doglobal \appendetoks
@@ -790,7 +790,7 @@
% Yet undocumented, for a manual flush in for instance headers.
\def\resetmargincontent
- {\doglobal\newcounter\margincontentlevel
+ {\global\margincontentlevel\zerocount
\global\chardef\margintextcollected\zerocount
\global\collectedmargintexts\emptytoks}