| 1 |
%% |
| 2 |
%% This is file `lwarp-units.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `units') |
| 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 |
\LWR@ProvidesPackagePass{units}[1998/08/04] |
| 21 |
\DeclareRobustCommand*{\LWR@HTML@unit}[2][]{% |
| 22 |
\ifblank{#1}% |
| 23 |
{\LWR@textcurrentfont{#2}}% |
| 24 |
{% |
| 25 |
#1% |
| 26 |
\ifthenelse{\boolean{B@UnitsLoose}}{~}{\,}% |
| 27 |
\LWR@textcurrentfont{#2}% |
| 28 |
}% |
| 29 |
} |
| 30 |
\LWR@formatted{unit} |
| 31 |
\DeclareRobustCommand*{\LWR@HTML@unitfrac}[3][]{% |
| 32 |
\ifblank{#1}% |
| 33 |
{% |
| 34 |
\nicefrac{#2}{#3}% |
| 35 |
}% |
| 36 |
{% |
| 37 |
#1% |
| 38 |
\ifthenelse{\boolean{B@UnitsLoose}}{~}{\,}% |
| 39 |
\nicefrac{#2}{#3}% |
| 40 |
}% |
| 41 |
} |
| 42 |
|
| 43 |
\LWR@formatted{unitfrac} |
| 44 |
\begin{warpMathJax} |
| 45 |
\CustomizeMathJax{\newcommand{\unit}[2][]{#1 \mathinner{#2}}} |
| 46 |
\CustomizeMathJax{\newcommand{\unitfrac}[3][]{#1 \mathinner{{}^{#2}\!/\!_{#3}}}} |
| 47 |
\end{warpMathJax} |
| 48 |
|
| 49 |
|
| 50 |
\endinput |
| 51 |
%% |
| 52 |
%% End of file `lwarp-units.sty'. |