| 1 |
%% |
| 2 |
%% This is file `lwarp-booktabs.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `booktabs') |
| 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 |
\IfPackageLoadedTF{booktabs}{}{ |
| 19 |
\LetLtxMacro\toprule\relax |
| 20 |
\LetLtxMacro\midrule\relax |
| 21 |
\LetLtxMacro\cmidrule\cline |
| 22 |
\LetLtxMacro\bottomrule\relax |
| 23 |
\LetLtxMacro\addlinespace\relax |
| 24 |
\LetLtxMacro\morecmidrules\relax |
| 25 |
\LetLtxMacro\specialrule\relax |
| 26 |
} |
| 27 |
\LWR@ProvidesPackagePass{booktabs}[2019/10/08] |
| 28 |
\LetLtxMacro\@BLTrule\@BTnormal |
| 29 |
\DeclareDocumentCommand{\LWR@HTML@toprule}{o d()}% |
| 30 |
{% |
| 31 |
\IfValueTF{#1}% |
| 32 |
{\LWR@docmidrule[#1](){1-\arabic{LWR@tabletotalLaTeXcols}}}% |
| 33 |
{% |
| 34 |
\ifbool{FormatWP}% |
| 35 |
{\LWR@docmidrule[#1](){1-\arabic{LWR@tabletotalLaTeXcols}}}% |
| 36 |
{\booltrue{LWR@doingtbrule}}% |
| 37 |
}% |
| 38 |
\LWR@getmynexttoken} |
| 39 |
|
| 40 |
\LWR@expandableformatted{toprule} |
| 41 |
|
| 42 |
\DeclareDocumentCommand{\LWR@HTML@midrule}{o d()}% |
| 43 |
{% |
| 44 |
\IfValueTF{#1}% |
| 45 |
{\LWR@docmidrule[#1](){1-\arabic{LWR@tabletotalLaTeXcols}}}% |
| 46 |
{% |
| 47 |
\ifbool{FormatWP}% |
| 48 |
{\LWR@docmidrule[#1](){1-\arabic{LWR@tabletotalLaTeXcols}}}% |
| 49 |
{\defaddtocounter{LWR@hlines}{1}}% |
| 50 |
}% |
| 51 |
\LWR@getmynexttoken} |
| 52 |
|
| 53 |
\LWR@expandableformatted{midrule} |
| 54 |
|
| 55 |
\DeclareDocumentCommand{\LWR@HTML@cmidrule}{O{\LWR@cmidrulewidth} d() m}{% |
| 56 |
\LWR@docmidrule[#1](#2){#3}% |
| 57 |
\LWR@getmynexttoken% |
| 58 |
}% |
| 59 |
|
| 60 |
\LWR@expandableformatted{cmidrule} |
| 61 |
|
| 62 |
\DeclareDocumentCommand{\LWR@HTML@bottomrule}{o d()}{% |
| 63 |
\IfValueTF{#1}% |
| 64 |
{\LWR@docmidrule[#1](){1-\arabic{LWR@tabletotalLaTeXcols}}}% |
| 65 |
{% |
| 66 |
\ifbool{FormatWP}% |
| 67 |
{\LWR@docmidrule[#1](){1-\arabic{LWR@tabletotalLaTeXcols}}}% |
| 68 |
{\booltrue{LWR@doingtbrule}}% |
| 69 |
}% |
| 70 |
\LWR@getmynexttoken% |
| 71 |
}% |
| 72 |
|
| 73 |
\LWR@expandableformatted{bottomrule} |
| 74 |
|
| 75 |
\DeclareDocumentCommand{\LWR@HTML@addlinespace}{o}{}% |
| 76 |
|
| 77 |
\LWR@expandableformatted{addlinespace} |
| 78 |
|
| 79 |
\DeclareDocumentCommand{\LWR@HTML@morecmidrules}{}{}% |
| 80 |
|
| 81 |
\LWR@expandableformatted{morecmidrules} |
| 82 |
|
| 83 |
\DeclareDocumentCommand{\LWR@HTML@specialrule}{m m m d()}% |
| 84 |
{\LWR@docmidrule[#1](){1-\arabic{LWR@tabletotalLaTeXcols}}\LWR@getmynexttoken}% |
| 85 |
|
| 86 |
\LWR@expandableformatted{specialrule} |
| 87 |
\begin{warpMathJax} |
| 88 |
\CustomizeMathJax{\newcommand{\toprule}[1][]{\hline}} |
| 89 |
\CustomizeMathJax{\let\midrule\toprule} |
| 90 |
\CustomizeMathJax{\let\bottomrule\toprule} |
| 91 |
\CustomizeMathJax{\def\LWRbooktabscmidruleparen(#1)#2{}} |
| 92 |
\CustomizeMathJax{\newcommand{\LWRbooktabscmidrulenoparen}[1]{}} |
| 93 |
\CustomizeMathJax{\newcommand{\cmidrule}[1][]{% |
| 94 |
\ifnextchar(\LWRbooktabscmidruleparen\LWRbooktabscmidrulenoparen% |
| 95 |
}} |
| 96 |
\CustomizeMathJax{\newcommand{\morecmidrules}{}} |
| 97 |
\CustomizeMathJax{\newcommand{\specialrule}[3]{\hline}} |
| 98 |
\CustomizeMathJax{\newcommand{\addlinespace}[1][]{}} |
| 99 |
\end{warpMathJax} |
| 100 |
|
| 101 |
\endinput |
| 102 |
%% |
| 103 |
%% End of file `lwarp-booktabs.sty'. |