| 1 |
%% |
| 2 |
%% This is file `lwarp-xfrac.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `xfrac') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
\LWR@ProvidesPackagePass{xfrac}[2018-08-23] |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
\newcommand*{\xfracHTMLfontsize}{.6em} |
| 26 |
|
| 27 |
\DeclareInstance{xfrac}{default}{text}{ |
| 28 |
numerator-format = {% |
| 29 |
\begingroup% |
| 30 |
\RenewDocumentCommand{\scalebox}{m o m}{##3}% |
| 31 |
\InlineClass{numerator}{#1}\,% |
| 32 |
\endgroup% |
| 33 |
}, |
| 34 |
denominator-format = {% |
| 35 |
\begingroup% |
| 36 |
\RenewDocumentCommand{\scalebox}{m o m}{##3}% |
| 37 |
\InlineClass{denominator}{#1}% |
| 38 |
\endgroup% |
| 39 |
}, |
| 40 |
scaling = false |
| 41 |
} |
| 42 |
|
| 43 |
\DeclareInstance{xfrac}{lmr}{text}{ |
| 44 |
numerator-format = {% |
| 45 |
\begingroup% |
| 46 |
\RenewDocumentCommand{\scalebox}{m o m}{##3}% |
| 47 |
\InlineClass{numerator}{#1}\,% |
| 48 |
\endgroup% |
| 49 |
}, |
| 50 |
denominator-format = {% |
| 51 |
\begingroup% |
| 52 |
\RenewDocumentCommand{\scalebox}{m o m}{##3}% |
| 53 |
\InlineClass{denominator}{#1}% |
| 54 |
\endgroup% |
| 55 |
}, |
| 56 |
scaling = false |
| 57 |
} |
| 58 |
|
| 59 |
\DeclareInstance{xfrac}{lmss}{text}{ |
| 60 |
numerator-format = {% |
| 61 |
\begingroup% |
| 62 |
\RenewDocumentCommand{\scalebox}{m o m}{##3}% |
| 63 |
\InlineClass{numerator}{#1}\,% |
| 64 |
\endgroup% |
| 65 |
}, |
| 66 |
denominator-format = {% |
| 67 |
\begingroup% |
| 68 |
\RenewDocumentCommand{\scalebox}{m o m}{##3}% |
| 69 |
\InlineClass{denominator}{#1}% |
| 70 |
\endgroup% |
| 71 |
}, |
| 72 |
scaling = false |
| 73 |
} |
| 74 |
|
| 75 |
\DeclareInstance{xfrac}{lmtt}{text}{ |
| 76 |
numerator-format = {% |
| 77 |
\begingroup% |
| 78 |
\RenewDocumentCommand{\scalebox}{m o m}{##3}% |
| 79 |
\InlineClass{numerator}{#1}\,% |
| 80 |
\endgroup% |
| 81 |
}, |
| 82 |
denominator-format = {% |
| 83 |
\begingroup% |
| 84 |
\RenewDocumentCommand{\scalebox}{m o m}{##3}% |
| 85 |
\InlineClass{denominator}{#1}% |
| 86 |
\endgroup% |
| 87 |
}, |
| 88 |
scaling = false |
| 89 |
} |
| 90 |
|
| 91 |
\begin{warpMathJax} |
| 92 |
\CustomizeMathJax{\newcommand{\LWRsfrac}[2][/]{{}^\LWRsfracnumerator\!#1{}_{#2}}} |
| 93 |
\CustomizeMathJax{\newcommand{\sfrac}[2][]{\def\LWRsfracnumerator{#2}\LWRsfrac}} |
| 94 |
\end{warpMathJax} |
| 95 |
|
| 96 |
\endinput |
| 97 |
%% |
| 98 |
%% End of file `lwarp-xfrac.sty'. |