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-units.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-units.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-units.sty | 24 |
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'. |