summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/math-frc.mkxl
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkxl/math-frc.mkxl')
-rw-r--r--tex/context/base/mkxl/math-frc.mkxl18
1 files changed, 13 insertions, 5 deletions
diff --git a/tex/context/base/mkxl/math-frc.mkxl b/tex/context/base/mkxl/math-frc.mkxl
index 5c1eab8dd..7e6f7c5ce 100644
--- a/tex/context/base/mkxl/math-frc.mkxl
+++ b/tex/context/base/mkxl/math-frc.mkxl
@@ -110,7 +110,7 @@
\setupmathfractions
[\c!rule=\v!symbol,
- \c!middle=\fractionbarextenderuc]
+ \c!symbol=\fractionbarextenderuc]
\appendtoks
\instance\frozen\protected\edefcsname\currentmathfraction\endcsname{\math_frac{\currentmathfraction}}%
@@ -311,15 +311,23 @@
{\edef\p_method {\mathfractionparameter\c!method}%
\edef\p_rule {\mathfractionparameter\c!rule}%
\edef\p_thickness{\mathfractionparameter\c!rulethickness}%
- \scratchcounterone \mathfractionparameter\c!left \relax
- \scratchcountertwo \mathfractionparameter\c!right \relax
- \scratchcounterthree \mathfractionparameter\c!middle \relax
+ \scratchcounterone \mathfractionparameter\c!left \relax
+ \scratchcountertwo \mathfractionparameter\c!right \relax
+ \scratchcounterthree
+ \ifx\p_method\v!horizontal
+ \mathfractionparameter\c!middle
+ \orelse\ifx\p_method\v!line
+ \mathfractionparameter\c!middle
+ \else
+ \mathfractionparameter\c!symbol
+ \fi
+ \relax
\ifcsname
\??fractionmethods
\p_method
\ifx\p_method\v!horizontal
\orelse\ifx\p_method\v!line
- \orelse\ifcsname\??fractionmethods\p_method\p_rule\endcsname
+ \orelse\ifcsname\??fractionmethods\p_method\p_rule\endcsname % \v!vertical
\p_rule
\else
\v!auto