summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/strc-mat.mkiv
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2017-11-08 23:59:48 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2017-11-08 23:59:48 +0100
commit3c5bdb02c68293a907c765f109641c3939c13f6c (patch)
tree59d2539750f6bf7daabf9546323b9a9087e992ec /tex/context/base/mkiv/strc-mat.mkiv
parent75fbb107b15d01179a4b772844144e0661240e77 (diff)
downloadcontext-3c5bdb02c68293a907c765f109641c3939c13f6c.tar.gz
2017-11-08 22:50:00
Diffstat (limited to 'tex/context/base/mkiv/strc-mat.mkiv')
-rw-r--r--tex/context/base/mkiv/strc-mat.mkiv16
1 files changed, 12 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/strc-mat.mkiv b/tex/context/base/mkiv/strc-mat.mkiv
index 507ae5548..20a639fa3 100644
--- a/tex/context/base/mkiv/strc-mat.mkiv
+++ b/tex/context/base/mkiv/strc-mat.mkiv
@@ -295,8 +295,14 @@
\endgroup}
\unexpanded\def\strc_formulas_place_current_number
- {\strc_formulas_handle_current_references
- \labeltexts\currentformula{\convertedcounter[\v!formula][]}}
+ {\ifx\namedformulaentry\empty
+ \strc_formulas_handle_current_references
+ \labeltexts\currentformula{\convertedcounter[\v!formula][]}%
+ \else
+ \expandafter % hm, the next one reset \namedformulaentry
+ \strc_formulas_handle_current_references
+ \namedformulaentry
+ \fi}
\def\theformuladestinationattribute#1%
{\iflocation\ifx#1\relax\else\ifx#1\empty\else
@@ -395,8 +401,10 @@
% needs checking ... too many:
\def\strc_formulas_handle_numbering_indeed
- {\strc_counters_increment\v!formula
- \doiftext\currentplaceformulasuffix{\strc_counters_setown_sub\v!formula\plustwo\currentplaceformulasuffix}%
+ {\ifx\namedformulaentry\empty
+ \strc_counters_increment\v!formula
+ \doiftext\currentplaceformulasuffix{\strc_counters_setown_sub\v!formula\plustwo\currentplaceformulasuffix}%
+ \fi
\placecurrentformulanumber}
\def\strc_formulas_handle_numbering