Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-nicefrac.sty

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