| 1 |
%% |
| 2 |
%% This is file `lwarp-relsize.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `relsize') |
| 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{relsize}[2013/03/29] |
| 20 |
\let\LWR@origrelsize\relsize |
| 21 |
\LetLtxMacro\LWR@origlarger\larger |
| 22 |
\LetLtxMacro\LWR@origsmaller\smaller |
| 23 |
\let\LWR@relscale\relscale |
| 24 |
\LetLtxMacro\LWR@origtextlarger\textlarger |
| 25 |
\LetLtxMacro\LWR@origtextsmaller\textsmaller |
| 26 |
\let\LWR@textscale\textscale |
| 27 |
|
| 28 |
\appto\LWR@restoreorigformatting{% |
| 29 |
\let\relsize\LWR@origrelsize% |
| 30 |
\LetLtxMacro\larger\LWR@origlarger% |
| 31 |
\LetLtxMacro\smaller\LWR@origsmaller% |
| 32 |
\let\relscale\LWR@relscale% |
| 33 |
\LetLtxMacro\textlarger\LWR@origtextlarger% |
| 34 |
\LetLtxMacro\textsmaller\LWR@origtextsmaller% |
| 35 |
\let\textscale\LWR@textscale% |
| 36 |
} |
| 37 |
|
| 38 |
\newcounter{LWR@relsizetemp} |
| 39 |
|
| 40 |
\renewcommand*{\relsize}[1]{} |
| 41 |
\renewcommand*{\larger}[1][]{} |
| 42 |
\renewcommand*{\smaller}[1][]{} |
| 43 |
\renewcommand*{\relscale}[1]{} |
| 44 |
|
| 45 |
\renewcommand*{\textlarger}[2][1]{% |
| 46 |
\setcounter{LWR@relsizetemp}{100+(#1*20)}% |
| 47 |
\InlineClass[font-size:\arabic{LWR@relsizetemp}\%]{textlarger}{#2}% |
| 48 |
} |
| 49 |
|
| 50 |
\renewcommand*{\textsmaller}[2][1]{% |
| 51 |
\setcounter{LWR@relsizetemp}{100-(#1*20)}% |
| 52 |
\InlineClass[font-size:\arabic{LWR@relsizetemp}\%]{textsmaller}{#2}% |
| 53 |
} |
| 54 |
|
| 55 |
\renewcommand*{\textscale}[2]{% |
| 56 |
\setcounter{LWR@relsizetemp}{100*\real{#1}}% |
| 57 |
\InlineClass[font-size:\arabic{LWR@relsizetemp}\%]{textscale}{#2}% |
| 58 |
} |
| 59 |
\begin{warpMathJax} |
| 60 |
\CustomizeMathJax{\newcommand{\mathlarger}[1]{#1}} |
| 61 |
\CustomizeMathJax{\newcommand{\mathsmaller}[1]{#1}} |
| 62 |
\end{warpMathJax} |
| 63 |
|
| 64 |
\endinput |
| 65 |
%% |
| 66 |
%% End of file `lwarp-relsize.sty'. |