diff options
author | Karl Berry <karl@freefriends.org> | 2018-11-19 21:54:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-11-19 21:54:31 +0000 |
commit | 1850a94e252ed29b333b59a110dbb5a537787d57 (patch) | |
tree | e9a0a8d95079252240316228273855ab8bcd3708 /Master/texmf-dist/tex/latex/lwarp/lwarp-xfrac.sty | |
parent | f5e9d83dcdcb9517a654c1ed8287545279f528c8 (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-xfrac.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-xfrac.sty | 113 |
1 files changed, 52 insertions, 61 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-xfrac.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-xfrac.sty index d82834964ad..08d66341e34 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-xfrac.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-xfrac.sty @@ -29,77 +29,68 @@ \begin{warpHTML} -\newcommand*{\LWR@htmlsmallfontstart}{% -\LWR@htmltagc{span style="font-size:\xfracHTMLfontsize"}% -\LWR@nestspan% -} - -\newcommand*{\LWR@htmlsmallfontend}{% -\LWR@htmltagc{/span}% -\endLWR@nestspan% -} \DeclareInstance{xfrac}{default}{text}{ -numerator-format = {% -\begingroup% -\RenewDocumentCommand{\scalebox}{m o m}{##3}% -\LWR@htmlsmallfontstart\textsuperscript{#1}\,\LWR@htmlsmallfontend% -\endgroup% -}, -denominator-format = {% -\begingroup% -\RenewDocumentCommand{\scalebox}{m o m}{##3}% -\LWR@htmlsmallfontstart{}\,#1\LWR@htmlsmallfontend% -\endgroup% -}, -scaling = false + numerator-format = {% + \begingroup% + \RenewDocumentCommand{\scalebox}{m o m}{##3}% + \InlineClass{numerator}{#1}\,% + \endgroup% + }, + denominator-format = {% + \begingroup% + \RenewDocumentCommand{\scalebox}{m o m}{##3}% + \InlineClass{denominator}{#1}% + \endgroup% + }, + scaling = false } \DeclareInstance{xfrac}{lmr}{text}{ -numerator-format = {% -\begingroup% -\RenewDocumentCommand{\scalebox}{m o m}{##3}% -\LWR@htmlsmallfontstart\textsuperscript{#1}\,\LWR@htmlsmallfontend% -\endgroup% -}, -denominator-format = {% -\begingroup% -\RenewDocumentCommand{\scalebox}{m o m}{##3}% -\LWR@htmlsmallfontstart{}\,#1\LWR@htmlsmallfontend% -\endgroup% -}, -scaling = false + numerator-format = {% + \begingroup% + \RenewDocumentCommand{\scalebox}{m o m}{##3}% + \InlineClass{numerator}{#1}\,% + \endgroup% + }, + denominator-format = {% + \begingroup% + \RenewDocumentCommand{\scalebox}{m o m}{##3}% + \InlineClass{denominator}{#1}% + \endgroup% + }, + scaling = false } \DeclareInstance{xfrac}{lmss}{text}{ -numerator-format = {% -\begingroup% -\RenewDocumentCommand{\scalebox}{m o m}{##3}% -\LWR@htmlsmallfontstart\textsuperscript{#1}\,\LWR@htmlsmallfontend% -\endgroup% -}, -denominator-format = {% -\begingroup% -\RenewDocumentCommand{\scalebox}{m o m}{##3}% -\LWR@htmlsmallfontstart{}\,#1\LWR@htmlsmallfontend% -\endgroup% -}, -scaling = false + numerator-format = {% + \begingroup% + \RenewDocumentCommand{\scalebox}{m o m}{##3}% + \InlineClass{numerator}{#1}\,% + \endgroup% + }, + denominator-format = {% + \begingroup% + \RenewDocumentCommand{\scalebox}{m o m}{##3}% + \InlineClass{denominator}{#1}% + \endgroup% + }, + scaling = false } \DeclareInstance{xfrac}{lmtt}{text}{ -numerator-format = {% -\begingroup% -\RenewDocumentCommand{\scalebox}{m o m}{##3}% -\LWR@htmlsmallfontstart\textsuperscript{#1}\,\LWR@htmlsmallfontend% -\endgroup% -}, -denominator-format = {% -\begingroup% -\RenewDocumentCommand{\scalebox}{m o m}{##3}% -\LWR@htmlsmallfontstart{}\,#1\LWR@htmlsmallfontend% -\endgroup% -}, -scaling = false + numerator-format = {% + \begingroup% + \RenewDocumentCommand{\scalebox}{m o m}{##3}% + \InlineClass{numerator}{#1}\,% + \endgroup% + }, + denominator-format = {% + \begingroup% + \RenewDocumentCommand{\scalebox}{m o m}{##3}% + \InlineClass{denominator}{#1}% + \endgroup% + }, + scaling = false } |