Debian Codegraph @

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

raw
1 %%
2 %% This is file `lwarp-diagbox.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `diagbox')
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{diagbox}[2016/12/28]
20 \LetLtxMacro\LWR@origdiagbox@double\diagbox@double
21 \LetLtxMacro\LWR@origdiagbox@triple\diagbox@triple
22
23 \appto\LWR@restoreorigformatting{%
24 \LetLtxMacro\diagbox@double\LWR@origdiagbox@double%
25 \LetLtxMacro\diagbox@triple\LWR@origdiagbox@triple%
26 }
27
28 \newcommand{\LWR@diagbox@AB}[4]{
29 \begingroup%
30 \LetLtxMacro\\\newline%
31 \BlockClassSingle{diagbox#1}{#2}%
32 \BlockClassSingle{diagbox#3}{#4}%
33 \endgroup%
34 \LWR@stoppars%
35 }
36
37 \newcommand{\LWR@diagboxNW}[2]{%
38 \LWR@diagbox@AB{E}{#2}{W}{#1}%
39 }
40
41 \newcommand{\LWR@diagboxNE}[2]{%
42 \LWR@diagbox@AB{W}{#1}{E}{#2}%
43 }
44
45 \let\LWR@diagboxSW\LWR@diagboxNE
46 \let\LWR@diagboxSE\LWR@diagboxNW
47
48 \def\diagbox@double#1#2#3{%
49 \setkeys{diagbox}{dir=NW,#1}%
50 \@nameuse{LWR@diagbox\diagbox@dir}{#2}{#3}%
51 }
52
53 \newcommand{\LWR@diagboxTNW}[3]{%
54 \BlockClassSingle{diagboxtitleN}{#1}
55 \LWR@diagboxNW{#2}{#3}
56 }
57
58 \newcommand{\LWR@diagboxTNE}[3]{%
59 \BlockClassSingle{diagboxtitleN}{#1}
60 \LWR@diagboxNE{#2}{#3}
61 }
62
63 \newcommand{\LWR@diagboxTSW}[3]{%
64 \LWR@diagboxSW{#2}{#3}
65 \BlockClassSingle{diagboxtitleS}{#1}
66 \LWR@stoppars%
67 }
68
69 \newcommand{\LWR@diagboxTSE}[3]{%
70 \LWR@diagboxSE{#2}{#3}
71 \BlockClassSingle{diagboxtitleS}{#1}
72 \LWR@stoppars%
73 }
74 \def\diagbox@triple#1#2#3#4{%
75 \setkeys{diagbox}{dir=NW,#1}%
76 \@nameuse{LWR@diagboxT\diagbox@dir}{#3}{#2}{#4}%
77 }
78
79 \endinput
80 %%
81 %% End of file `lwarp-diagbox.sty'.