summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-xfrac.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-xfrac.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-xfrac.sty113
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
}