From 1850a94e252ed29b333b59a110dbb5a537787d57 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 19 Nov 2018 21:54:31 +0000 Subject: lwarp (19nov18) git-svn-id: svn://tug.org/texlive/trunk@49196 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/lwarp/lwarp-nicefrac.sty | 26 ++++++++++++++++------ 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-nicefrac.sty') 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'. -- cgit v1.2.3