summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-nicefrac.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-11-19 21:54:31 +0000
committerKarl Berry <karl@freefriends.org>2018-11-19 21:54:31 +0000
commit1850a94e252ed29b333b59a110dbb5a537787d57 (patch)
treee9a0a8d95079252240316228273855ab8bcd3708 /Master/texmf-dist/tex/latex/lwarp/lwarp-nicefrac.sty
parentf5e9d83dcdcb9517a654c1ed8287545279f528c8 (diff)
lwarp (19nov18)
git-svn-id: svn://tug.org/texlive/trunk@49196 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-nicefrac.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-nicefrac.sty26
1 files changed, 19 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-nicefrac.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-nicefrac.sty
index de194222e08..283424cf4c4 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-nicefrac.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-nicefrac.sty
@@ -17,16 +17,28 @@
%% version 2005/12/01 or later.
\LWR@ProvidesPackagePass{nicefrac}[1998/08/04]
-\LetLtxMacro\LWR@origUnitsNiceFrac\@UnitsNiceFrac
+\DeclareRobustCommand*{\LWR@HTML@@UnitsNiceFrac}[3][]{%
+ {% localize font selection
+ #1{%
+ \LWR@textcurrentfont{%
+ \InlineClass{numerator}{#2}%
+ /%
+ \InlineClass{denominator}{#3}%
+ }%
+ }%
+ }%
+}
+
+\LWR@formatted{@UnitsNiceFrac}
-\DeclareRobustCommand*{\@UnitsNiceFrac}[3][]{%
-\begingroup%
-\LetLtxMacro\@ensuredmath\LWR@origensuredmath%
-\LWR@origUnitsNiceFrac[#1]{#2}{#3}%
-\endgroup%
+\DeclareRobustCommand*{\LWR@HTML@@UnitsUglyFrac}[3][]{%
+ {% localize font selection
+ #1{\LWR@textcurrentfont{#2/#3}}%
+ }%
}
-\CustomizeMathJax{\newcommand{\nicefrac}[3][]{#2/#3}}
+\LWR@formatted{@UnitsUglyFrac}
+\CustomizeMathJax{\newcommand{\nicefrac}[3][]{#2/#3}}
\endinput
%%
%% End of file `lwarp-nicefrac.sty'.