-
Notifications
You must be signed in to change notification settings - Fork 1
/
mhotikz.sty
251 lines (219 loc) · 13.4 KB
/
mhotikz.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
% File: mhotikz.sty
% Author: Mark H. Olson
% Website: https://mholson.com
% Github: https://github.com/mholson
%
% Created: 2017-01-18
% Updated: 2022-06-28
%
% Description: Custom style file for most tikZ customizatins used across
% all my projects.
%
%=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Packages and Options
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mhotikz}
[2017/04/12 A small package for TikZ customizations]
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Tikz Libararies
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\RequirePackage{tikz}
\RequirePackage{tcolorbox}
\tcbuselibrary{skins,most,documentation}
\usetikzlibrary{
arrows.meta,
backgrounds,
fit,
chains,
calc,
decorations.pathmorphing,
decorations.pathreplacing,
decorations.text,
matrix,
mindmap,
positioning,
shapes,
shadows
}
\tikzset{ >=stealth', help lines/.style={dashed, thick}, axis/.style={<->}, important line/.style={thick}, connection/.style={thick, dotted},}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Distributive Law Cross Check Method
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\tikzstyle{firstterm} = [circle, draw=Blue, fill=Blue!40, text centered,minimum size=1cm]
\tikzstyle{binomsleftarrow} = [bend right=30,color=Blue]
\tikzstyle{binomsrightarrow} = [bend left=30,color=Red]
\tikzstyle{leftarrowmul} = [color=Blue, midway, left]
\tikzstyle{rightarrowmul} = [color=Red, midway, right]
\tikzstyle{downarrowadd} = [color=Teal, midway, right]
\tikzstyle{secondterm} = [circle, draw=Red, fill=Red!40, text centered, node distance=0.25cm,minimum size=1cm]
\tikzstyle{terms} = [rectangle, draw=SteelIII, fill=SteelI!40, text centered, node distance=0.25cm,minimum size=0.25cm]
\tikzstyle{xcheck} = [circle, draw=Teal, fill=Teal!40, text=Teal, text centered, node distance=0.25cm,minimum size=0.25cm]
\tikzstyle{factoradd} = [rectangle, draw=none, text centered, node distance=0.25cm,minimum size=1cm]
\tikzstyle{multiply1} = [rectangle, draw=Blue, fill=Blue!40, text centered, minimum height=0.75cm,minimum size=1cm]
\tikzstyle{multiply2} = [rectangle, draw=Red, fill=Red!40, text centered, minimum height=0.75cm,minimum size=1cm]
\tikzstyle{xmultiply} = [rectangle, draw=Teal, fill=Teal!40, text centered, minimum height=0.75cm,minimum size=1cm]
\tikzstyle{add} = [rectangle, draw=Teal, fill=Teal!40, text centered, minimum height=0.75cm,minimum size=1cm]
\tikzstyle{line} = [draw, color=Black!50, -latex]
\tikzstyle{lineRed} = [draw=Red,ultra thick, -latex]
\tikzstyle{lineBlue} = [draw=Blue,ultra thick, -latex]
\tikzstyle{lineTeal} = [draw=Teal,ultra thick, -latex]
% Define the style for the red dotted boxes
\tikzset{factordotted/.style={draw=Purple!50!white, line width=1pt, dash pattern=on 1pt off 4pt on 6pt off 4pt, inner sep=4mm, rectangle, rounded corners}}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% WORKFLOW SETUP: SIMPLIFYING EXPRESSIONS
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\tikzstyle{operation} = [rectangle, draw, fill=Blue!40, text centered]
\tikzstyle{function} = [rectangle, draw, fill=Purple!40, text centered]
\tikzstyle{definition} = [rectangle, draw, fill=Teal!40, text centered]
\tikzstyle{notation} = [rectangle, draw, fill=Green!40, text centered]
\tikzstyle{notations} = [rectangle, draw, fill=Green!40, text centered,text width=2em]
\tikzstyle{algorithm} = [rectangle, draw, fill=Orange!40, text centered]
\tikzstyle{delim} = [rectangle, draw, fill=Yellow!40, text centered]
\tikzstyle{law} = [rectangle, draw, fill=Red!40, text centered]
\tikzstyle{property} = [rectangle, draw, fill=Red!40, text centered]
\tikzstyle{hide} = [rectangle, draw, fill=GreyII, text centered, text=GreyI]
\tikzstyle{active} = [rectangle, draw, fill=SnowI, text=white, text centered]
\tikzset{functiondotted/.style={draw=Purple!50!white, line width=1pt,
dash pattern=on 1pt off 4pt on 6pt off 4pt,
inner sep=4mm, rectangle}}
\tikzset{productdotted/.style={draw=Blue!50!white, line width=1pt,
dash pattern=on 1pt off 4pt on 6pt off 4pt,
inner sep=4mm, rectangle}}
\tikzset{sumdotted/.style={draw=Red!50!white, line width=1pt,
dash pattern=on 1pt off 4pt on 6pt off 4pt,
inner sep=4mm, rectangle}}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% WORKFLOW SETUP TRIGONOMETRIC EQUATIONS
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\tikzstyle{decision} = [diamond, draw, fill=Green!20,
text width=4.5em, text badly centered, node distance=1.2cm, inner sep=0pt]
\tikzstyle{abscissa} = [rectangle, draw, fill=Blue!20,
text width=8em, text centered, rounded corners, node distance=1.2cm, minimum height=2.8em]
\tikzstyle{ordinate} = [rectangle, draw, fill=Red!20,
text width=8em, text centered, rounded corners, node distance=1.2cm, minimum height=2.8em]
\tikzstyle{task} = [rectangle, draw, fill=Purple!20,
minimum width=8em, text centered, rounded corners, node distance=1.2cm, minimum height=2.8em]
\tikzstyle{pointcircle} = [circle, draw, fill=SteelIII!20, text centered, node distance=1cm]
% Define the style for the red dotted boxes
\tikzset{bluedotted/.style={draw=Blue!50!white, line width=1pt,
dash pattern=on 1pt off 4pt on 6pt off 4pt,
inner sep=4mm, rectangle, rounded corners}}
% Define the style for the red dotted boxes
\tikzset{reddotted/.style={draw=Red!50!white, line width=1pt,
dash pattern=on 1pt off 4pt on 6pt off 4pt,
inner sep=4mm, rectangle, rounded corners}}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% WORKFLOW SETUP SINE LAW
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\tikzstyle{sldecision} = [diamond, draw, fill=LightGreen,
text width=4.5em, text badly centered, node distance=4cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=LightBlue,
text width=6em, text centered, rounded corners, node distance=3.5cm, minimum height=4em]
\tikzstyle{slredblock} = [circle, draw, fill=LightRed, text centered, node distance=4cm]
\tikzstyle{sldone} = [node distance=4cm]
\tikzstyle{slsoln} = [text centered, node distance=2cm,color=Red, text width=4.5em]
\tikzstyle{slline} = [draw, very thick, color=Black!50, -latex']
% Define the style for the grey dotted boxes
\tikzset{slgreydotted/.style={draw=SteelIII, line width=1pt,dash pattern=on 1pt off 4pt on 6pt off 4pt, inner sep=4mm, rectangle, rounded corners}}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% CURVE SKETHING WORKFLOW USING DERIVATIVES
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\tikzstyle{point} = [rectangle, draw, fill=Blue!40, text centered,rounded corners]
\tikzstyle{limit} = [rectangle, draw, fill=Purple!40, text centered,rounded corners]
\tikzstyle{class} = [rectangle, draw, fill=Green!40, text centered, rounded corners]
\tikzstyle{intervals} = [rectangle, draw, fill=Orange!40, text centered, rounded corners]
\tikzstyle{fd} = [rectangle, draw, fill=Red!40, text centered, rounded corners]
\tikzstyle{secondderivative} = [circle, draw, fill=GreyI,radius=0.5, text width=1em, node distance =2.5cm]
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% GENERAL WORKFLOW
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\tikzstyle{primaryrbox} = [rectangle, draw, fill=SteelIII!60, text centered, rounded corners]
\tikzstyle{secondaryrbox} = [rectangle, draw, fill=Orange!60, text centered, rounded corners]
\tikzstyle{tertiaryrbox} = [rectangle, draw, fill=Blue!60, text centered, rounded corners]
\tikzstyle{bluerbox} = [rectangle, draw, fill=Blue!60, text centered,rounded corners]
\tikzstyle{greyrbox} = [rectangle, draw, fill=GreyI!60, text centered,rounded corners]
\tikzstyle{purplerbox} = [rectangle, draw, fill=Purple!60, text centered,rounded corners]
\tikzstyle{greenrbox} = [rectangle, draw, fill=Blue!60, text centered, rounded corners]
\tikzstyle{orangerbox} = [rectangle, draw, fill=Orange!60, text centered, rounded corners]
\tikzstyle{redrbox} = [rectangle, draw, fill=Red!60, text centered, rounded corners]
\tikzstyle{circlenode} = [circle, draw, fill=Blue!60,radius=0.5, text width=1em, node distance =2.5cm]
\tikzstyle{line} = [draw, very thick, color=Black!50, -latex']
\tikzstyle{dashline} = [draw, very thick, dash pattern=on 1pt off 4pt on 6pt off 4pt,inner sep=4mm,color=Black!50, -latex']
% Define the style for the red dotted boxes
\tikzset{primarydotted/.style={draw=SteelIII!50!white, line width=1pt,dash pattern=on 1pt off 4pt on 6pt off 4pt, inner sep=4mm, rectangle, rounded corners}}
\tikzset{secondarydotted/.style={draw=Orange!50!white, line width=1pt,dash pattern=on 1pt off 4pt on 6pt off 4pt, inner sep=4mm, rectangle, rounded corners}}
\tikzset{tertiarydotted/.style={draw=Blue!50!white, line width=1pt,dash pattern=on 1pt off 4pt on 6pt off 4pt, inner sep=4mm, rectangle, rounded corners}}
\tikzset{reddotted/.style={draw=Red!50!white, line width=1pt,dash pattern=on 1pt off 4pt on 6pt off 4pt, inner sep=4mm, rectangle, rounded corners}}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% FORMATTED TAGS
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\newtcbox{\warningid}{enhanced,nobeforeafter,tcbox raise base,boxrule=0.4pt,top=0mm,bottom=0mm,
right=0mm,left=4mm,arc=1pt,boxsep=2pt,before upper={\phantom{d}},
colframe=Orange,coltext=SteelIII,colback=LightOrange,
overlay={\begin{tcbclipinterior}\fill[SnowI] (frame.south west)
rectangle node[text=Orange,font=\sffamily\bfseries\small] {\faExclamationCircle} ([xshift=6mm]frame.north west);\end{tcbclipinterior}}}
\robustify{\warningid}
%\pdfstringdefDisableCommands{%
% \def\warningid#1{'#1'}%
%}
\newtcbox{\infoid}{enhanced,nobeforeafter,tcbox raise base,boxrule=0.4pt,top=0mm,bottom=0mm,
right=0mm,left=4mm,arc=1pt,boxsep=2pt,before upper={\phantom{d}},
colframe=Blue,coltext=SteelIII,colback=LightBlue,
overlay={\begin{tcbclipinterior}\fill[SnowI] (frame.south west)
rectangle node[text=Blue,font=\sffamily\bfseries\small] {\faInfoCircle} ([xshift=6mm]frame.north west);\end{tcbclipinterior}}}
\robustify{\infoid}
%\pdfstringdefDisableCommands{%
% \def\infoid#1{'#1'}%
%}
\newtcbox{\vimeoid}{enhanced,nobeforeafter,tcbox raise base,boxrule=0.4pt,top=0mm,bottom=0mm,
right=0mm,left=4mm,arc=1pt,boxsep=2pt,before upper={\phantom{d}},
colframe=Blue,coltext=SnowI,colback=Blue,
overlay={\begin{tcbclipinterior}\fill[SnowI] (frame.south west)
rectangle node[text=PrimaryGreen,font=\sffamily\bfseries\small] {\faVimeoSquare} ([xshift=6mm]frame.north west);\end{tcbclipinterior}}}
\robustify{\vimeoid}
%\pdfstringdefDisableCommands{%
% \def\vimeoid#1{'#1'}%
%}
% Requires \tcbuselibrary{skins}
\newtcbox{\mhozid}{enhanced,nobeforeafter,tcbox raise base,boxrule=0.4pt,top=0mm,bottom=0mm,
right=0mm,left=4mm,arc=1pt,boxsep=2pt,box align=top,before upper={\vphantom{dlg}},
colframe=SnowI,coltext=SteelI,colback=SnowIII,
overlay={\begin{tcbclipinterior}\fill[SnowI] (frame.south west)
rectangle node[text=Teal,font=\sffamily\bfseries\tiny] {\faTag} ([xshift=4mm]frame.north west);\end{tcbclipinterior}}}
\robustify{\mhozid}
\pdfstringdefDisableCommands{%
\def\mhozid#1{'#1'}%
}
\newtcbox{\tbqn}{enhanced,nobeforeafter,tcbox raise base,boxrule=0.4pt,top=0mm,bottom=0mm,
right=0mm,left=4mm,arc=1pt,boxsep=2pt,before upper={\vphantom{dlg}},
colframe=Teal,coltext=Teal,colback=SnowIII,
overlay={\begin{tcbclipinterior}\fill[Teal] (frame.south west)
rectangle node[text=SnowIII,font=\sffamily\bfseries\tiny] {\faBookReader} ([xshift=4mm]frame.north west);\end{tcbclipinterior}}}
\robustify{\tbqn}
\pdfstringdefDisableCommands{%
\def\tbqn#1{'#1'}%
}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\endinput
%=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
% End of file `mhotikz.sty'.
%=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=