summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-units.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-units.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-units.sty24
1 files changed, 24 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-units.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-units.sty
index 28e7405a572..d868e6d83b2 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-units.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-units.sty
@@ -17,9 +17,33 @@
%% version 2005/12/01 or later.
\LWR@ProvidesPackagePass{units}[1998/08/04]
+\DeclareRobustCommand*{\LWR@HTML@unit}[2][]{%
+\ifblank{#1}%
+ {\LWR@textcurrentfont{#2}}%
+ {%
+ #1%
+ \ifthenelse{\boolean{B@UnitsLoose}}{~}{\,}%
+ \LWR@textcurrentfont{#2}%
+ }%
+}
+\LWR@formatted{unit}
+\DeclareRobustCommand*{\LWR@HTML@unitfrac}[3][]{%
+\ifblank{#1}%
+ {%
+ \nicefrac{#2}{#3}%
+ }%
+ {%
+ #1%
+ \ifthenelse{\boolean{B@UnitsLoose}}{~}{\,}%
+ \nicefrac{#2}{#3}%
+ }%
+}
+
+\LWR@formatted{unitfrac}
\CustomizeMathJax{\newcommand{\unit}[2][]{#1 #2}}
\CustomizeMathJax{\newcommand{\unitfrac}[3][]{#1 #2/#3}}
+
\endinput
%%
%% End of file `lwarp-units.sty'.