-
Notifications
You must be signed in to change notification settings - Fork 0
/
mhotables.sty
48 lines (40 loc) · 1.95 KB
/
mhotables.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
%=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
% _ _
% | | | |
% _ __ ___ | |__ ___ | | ___ ___ _ __ ___ ___ _ __ ___
% | '_ ` _ \ | '_ \ / _ \ | |/ __| / _ \ | '_ \ / __| / _ \ | '_ ` _ \
% | | | | | || | | || (_) || |\__ \| (_) || | | | _ | (__ | (_) || | | | | |
% |_| |_| |_||_| |_| \___/ |_||___/ \___/ |_| |_|(_) \___| \___/ |_| |_| |_|
%
% Author: Mark H. Olson
% Website: https://mholson.com
% Github: https://github.com/mholson
%
% File: mhotables.sty
% Created: 2021-07-21
% Updated: 2021-07-21
%
% Description: Custom style file to customize the tabularray package.
%=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% PACKAGE OPTIONS & SETUP
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mhotables}[2021/07/21 A small tabularray customization package.]
% > > > Tables
\RequirePackage{tabularray}
\UseTblrLibrary{diagbox} % Enable diagonal boxes
\UseTblrLibrary{booktabs} % Support for booktabs
% > > > Table of values commands to be used with tabularray
\NewTableCommand\cellRed{\SetCell{bg=nordEleven,fg=nordSix}}
\NewTableCommand\cellGreen{\SetCell{bg=nordFourteen,fg=nordSix}}
\NewTableCommand\cellPurple{\SetCell{bg=nordFifteen,fg=nordSix}}
\NewTableCommand\cellOrange{\SetCell{bg=nordTwelve,fg=nordSix}}
\NewTableCommand\cellTeal{\SetCell{bg=nordEight,fg=nordSix}}
\NewTableCommand\cellGrey{\SetCell{bg=nordFour}}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\endinput
%=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
% End of file `mhotables.sty'.
%=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=