-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpreamble.tex
780 lines (666 loc) · 29.2 KB
/
preamble.tex
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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
\graphicspath{
{./}
{1-1QuantitativeReasoning/}
{1-2RelationsAndGraphs/}
{1-3ChangingInTandem/}
{2-1LinearEquations/}
{2-2LinearModeling/}
{2-3ExponentialModeling/}
{3-1WhatIsAFunction/}
{3-2FunctionProperties/}
{3-3AverageRatesOfChange/}
{4-1BuildingNewFunctions/}
{4-2Quadratics/}
{4-3Polynomials/}
{4-4Roots/}
{5-1IntroToTransformations/}
{5-2ExponentialFunctions/}
{5-3IntroToLogarithms/}
{6-1RationalFunctions/}
{6-2DomainandRangeRevisited/}
{6-3AsympOfRationalFunctions/}
{7-0Review/}
{7-1CompositionOfFunctions/}
{7-2ZerosOfFunctions/}
{7-3FunctionTransformationsRevisited/}
{7-4SolvingInequalities/}
{8-1FunctionTransformations/}
{8-2SolvingInequalities/}
{7-5FunctionTransformationsProject/}
{8-1RightTriangleTrig/}
{8-2TheUnitCircle/}
{8-3TrigIdentities/}
{9-1UnitCircleToFunctionGraph/}
{9-2TrigFunctions/}
{9-3TrigTransformations/}
{9-4SomeApplicationsOfTrig/}
{10-1InverseFunctionsRevisited/}
{10-2Logarithms/}
{10-3InverseTrig/}
{11-1SystemsOfEquations/}
{11-2NonlinearSystems/}
{11-3ApplicationsOfSystems/}
{11-4SecantLinesRevisited/}
{11-5FunctionsTheBigPicture/}
{14-1DisplacementVsDistance/}
{1-1QuantitativeReasoning/exercises/}
{1-2RelationsAndGraphs/exercises/}
{../1-3ChangingInTandem/exercises/}
{../2-1LinearEquations/exercises/}
{../2-2LinearModeling/exercises/}
{../2-3ExponentialModeling/exercises/}
{../3-1WhatIsAFunction/exercises/}
{../3-2FunctionProperties/exercises/}
{../3-3AverageRatesOfChange/exercises/}
{../5-2ExponentialFunctions/exercises/}
{../4-1BuildingNewFunctions/exercises/}
{../4-2Quadratics/exercises/}
{../4-3Polynomials/exercises/}
{../4-4Roots/exercises/}
{../5-1RationalFunctions/exercises/}
{../6-1Domain/exercises/}
{../6-2Range/exercises/}
{../6-3CompositionOfFunctions/exercises/}
{../7-1ZerosOfFunctions/exercises/}
{../7-XZerosOfPolynomials/exercises/}
{../7-2ZerosOfFamousFunctions/exercises/}
{../8-1FunctionTransformations/exercises/}
{../11-1SystemsOfEquations/exercises/}
{../7-5FunctionTransformationsProject/exercises/}
{../7-0Review/exercises/}
{../7-4SolvingInequalities/exercises/}
{../7-5FunctionTransformationsProject/exercises/}
{../8-1RightTriangleTrig/exercises/}
{../8-2TheUnitCircle/exercises/}
{../8-3TrigIdentities/exercises/}
{../9-1UnitCircleToFunctionGraph/exercises/}
{../9-2TrigFunctions/exercises/}
{../9-3TrigTransformations/exercises/}
{../9-4SomeApplicationsOfTrig/exercises/}
{../10-1InverseFunctionsRevisited/exercises/}
{../10-2Logarithms/exercises/}
{../10-3InverseTrig/exercises/}
{../11-1SystemsOfEquations/exercises/}
{../11-2NonlinearSystems/exercises/}
{../11-3ApplicationsOfSystems/exercises/}
{../11-4SecantLinesRevisited/exercises/}
{../11-5FunctionsTheBigPicture/exercises/}
{../14-1DisplacementVsDistance/exercises/}
{../5-1IntroToTransformations/exercises/}
{../5-2ExponentialFunctions/exercises/}
{../5-3IntroToLogarithms/exercises/}
{../6-1RationalFunctions/exercises/}
{../6-2DomainandRangeRevisited/exercises/}
{../6-3AsympOfRationalFunctions/exercises/}
{../7-1CompositionOfFunctions/exercises/}
{../7-2ZerosOfFunctions/exercises/}
{../7-3ZerosOfPolynomials/exercises/}
{../7-4ZerosOfFamousFunctions/exercises/}
{7-3FunctionTransformationsRevisited/exercises/}
{7-4SolvingInequalities/exercises/}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\link}[2][]{\href{#2}{\underline{#1}}% the optional argument,
% a name for the link as a clickable link
\ifthenelse{\equal{#1}{}}% if no optional argument, then
{\url{#2}}% just print the name
{
%\footnote{See #1 at \url{#2}}
}}% include the link address as a footnote
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareGraphicsExtensions{.pdf,.png,.jpg,.eps}
\newcommand{\mooculus}{\textsf{\textbf{MOOC}\textnormal{\textsf{ULUS}}}}
\newcommand{\av}{\mathrm{AROC}}
\newcommand{\tech}{Desmos}
\newcommand{\calcHW}{\includegraphics[width=0.5cm, trim={0 4mm 0 0}]{calc.png} \, }
\usepackage[makeroom]{cancel} %% for strike outs
\ifxake
\else
\usepackage[most]{tcolorbox}
\fi
%\typeout{************************************************}
%\typeout{New Environments}
%\typeout{************************************************}
%% to fix for web can be removed when deployed offically with ximera2
\let\image\relax\let\endimage\relax
\NewEnviron{image}{%
\begin{center}\BODY\end{center}% center
}
\NewEnviron{folder}{
\addcontentsline{toc}{section}{\textbf{\BODY}}
}
%\ifxake
%\let\summary\relax
%\let\endsummary\relax
%\newtheorem*{summary}{Summary}
\newenvironment{callout}{\begin{remark}}{\end{remark}}
\newenvironment{overview}{\begin{remark}\textbf{Overview}~}{\end{remark}}
\newenvironment{objectives}{\begin{remark}\textbf{Objectives}\\}{\end{remark}}
\newenvironment{motivatingQuestions}{\begin{remark}\textbf{Motivating Questions}~}{\end{remark}}
\newenvironment{MM}{\begin{remark}\textbf{Metacognitive Moment}~}{\end{remark}}
%% NEEDED FOR XIMERA 2
%\ximerizedEnvironment{summary}
%\ximerizedEnvironment{callout}
%\ximerizedEnvironment{overview}
%\ximerizedEnvironment{objectives}
%\ximerizedEnvironment{motivatingQuestions}
%\ximerizedEnvironment{MM}
%% \else
%% %% CALLOUT
%% \NewEnviron{callout}{
%% \begin{tcolorbox}[colback=blue!5, breakable,pad at break*=1mm]
%% \BODY
%% \end{tcolorbox}
%% }
%% %% MOTIVATING QUESTIONS
%% \NewEnviron{motivatingQuestions}{
%% \begin{tcolorbox}[ breakable,pad at break*=1mm]
%% \textbf{\Large Motivating Questions}\hfill
%% %\begin{itemize}[label=\textbullet]
%% \BODY
%% %\end{itemize}
%% \end{tcolorbox}
%% }
%% %% OBJECTIVES
%% \NewEnviron{objectives}{
%% \vspace{.5in}
%% %\begin{tcolorbox}[colback=orange!5, breakable,pad at break*=1mm]
%% \textbf{\Large Learning Objectives}
%% \begin{itemize}[label=\textbullet]
%% \BODY
%% \end{itemize}
%% %\end{tcolorbox}
%% }
%% %% DEFINITION
%% \let\definition\relax
%% \let\enddefinition\relax
%% \NewEnviron{definition}{
%% \begin{tcolorbox}[ breakable,pad at break*=1mm]
%% \noindent\textbf{Definition}~
%% \BODY
%% \end{tcolorbox}
%% }
%% %% OVERVIEW
%% \let\overview\relax
%% \let\overview\relax
%% \NewEnviron{overview}{
%% \begin{tcolorbox}[ breakable,pad at break*=1mm]
%% \textbf{\Large Overview}
%% %\begin{itemize}[label=\textbullet] %% breaks Xake
%% \BODY
%% %\end{itemize}
%% \end{tcolorbox}
%% }
%% %% SUMMARY
%% \let\summary\relax
%% \let\endsummary\relax
%% \NewEnviron{summary}{
%% \begin{tcolorbox}[ breakable,pad at break*=1mm]
%% \textbf{\Large Summary}
%% %\begin{itemize}[label=\textbullet] %% breaks Xake
%% \BODY
%% %\end{itemize}
%% \end{tcolorbox}
%% }
%% %% REMARK
%% \let\remark\relax
%% \let\endremark\relax
%% \NewEnviron{remark}{
%% \begin{tcolorbox}[colback=green!5, breakable,pad at break*=1mm]
%% \noindent\textbf{Remark}~
%% \BODY
%% \end{tcolorbox}
%% }
%% %% EXPLANATION
%% \let\explanation\relax
%% \let\endexplanation\relax
%% \NewEnviron{explanation}{
%% \normalfont
%% \noindent\textbf{Explanation}~
%% \BODY
%% }
%% %% EXPLORATION
%% \let\exploration\relax
%% \let\endexploration\relax
%% \NewEnviron{exploration}{
%% \begin{tcolorbox}[colback=yellow!10, breakable,pad at break*=1mm]
%% \noindent\textbf{Exploration}~
%% \BODY
%% \end{tcolorbox}
%% }
%% %% METACOGNITIVE MOMENTS
%% \let\MM\relax
%% \let\endMM\relax
%% \NewEnviron{MM}{
%% \begin{tcolorbox}[colback=pink!15, breakable,pad at break*=1mm]
%% \noindent\textbf{Metacognitive Moment}~
%% \BODY
%% \end{tcolorbox}
%% }
%% \fi
%Notes on what envirnoment to use: Example with Explanation in text; if they are supposed to answer- Problem; no answer - Exploration
%\typeout{************************************************}
%% Header and footers
%\typeout{************************************************}
\newcommand{\licenseAcknowledgement}{Licensed under Creative Commons 4.0}
\newcommand{\licenseAPC}{\renewcommand{\licenseAcknowledgement}{\textbf{Acknowledgements:} Active Prelude to Calculus (https://activecalculus.org/prelude) }}
\newcommand{\licenseSZ}{\renewcommand{\licenseAcknowledgement}{\textbf{Acknowledgements:} Stitz Zeager Open Source Mathematics (https://www.stitz-zeager.com/) }}
\newcommand{\licenseAPCSZ}{\renewcommand{\licenseAcknowledgement}{\textbf{Acknowledgements:} Active Prelude to Calculus (https://activecalculus.org/prelude) and Stitz Zeager Open Source Mathematics (https://www.stitz-zeager.com/) }}
\newcommand{\licenseORCCA}{\renewcommand{\licenseAcknowledgement}{\textbf{Acknowledgements:} Original source material, products with readable and accessible
math content, and other information freely available at pcc.edu/orcca.}}
\newcommand{\licenseY}{\renewcommand{\licenseAcknowledgement}{\textbf{Acknowledgements:} Yoshiwara Books (https://yoshiwarabooks.org/)}}
\newcommand{\licenseOS}{\renewcommand{\licenseAcknowledgement}{\textbf{Acknowledgements:} OpenStax College Algebra (https://openstax.org/details/books/college-algebra)}}
\newcommand{\licenseAPCSZCSCC}{\renewcommand{\licenseAcknowledgement}{\textbf{Acknowledgements:} Source material includes: Active Prelude to Calculus (https://activecalculus.org/prelude), Stitz Zeager Open Source Mathematics (https://www.stitz-zeager.com/), CSCC PreCalculus and Calculus texts (https://ximera.osu.edu/csccmathematics)}}
\newcommand{\licenseAPCSZORCCA}{\renewcommand{\licenseAcknowledgement}{\textbf{Acknowledgements:} Source material includes: Active Prelude to Calculus (https://activecalculus.org/prelude), Stitz Zeager Open Source Mathematics (https://www.stitz-zeager.com/), ORCCA: Original source material, products with readable and accessible math content, and other information freely available at pcc.edu/orcca.}}
\ifxake\else %% do nothing on the website
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[R]{\sectionmark}
\fancyfoot[L]{\thepage}
\fancyfoot[C]{\begin{minipage}{.8\textwidth}\tiny\licenseAcknowledgement\end{minipage}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fi
%%%%%%%%%%%%%%%%
%\typeout{************************************************}
%\typeout{Table of Contents}
%\typeout{************************************************}
%% Edit this to change the font style
\newcommand{\sectionHeadStyle}{\sffamily\bfseries}
\makeatletter
%% part uses arabic numerals
\renewcommand*\thepart{\arabic{part}}
\ifxake\else
\renewcommand\chapterstyle{%
\def\maketitle{%
\addtocounter{titlenumber}{1}%
\pagestyle{fancy}
\phantomsection
\addcontentsline{toc}{section}{\textbf{\thepart.\thetitlenumber\hspace{1em}\@title}}%
{\flushleft\small\sectionHeadStyle\@pretitle\par\vspace{-1.5em}}%
{\flushleft\LARGE\sectionHeadStyle\thepart.\thetitlenumber\hspace{1em}\@title \par }%
{\setcounter{problem}{0}\setcounter{sectiontitlenumber}{0}}%
\par}}
\renewcommand\sectionstyle{%
\def\maketitle{%
\addtocounter{sectiontitlenumber}{1}
\pagestyle{fancy}
\phantomsection
\addcontentsline{toc}{subsection}{\thepart.\thetitlenumber.\thesectiontitlenumber\hspace{1em}\@title}%
{\flushleft\small\sectionHeadStyle\@pretitle\par\vspace{-1.5em}}%
{\flushleft\Large\sectionHeadStyle\thepart.\thetitlenumber.\thesectiontitlenumber\hspace{1em}\@title \par}%
%{\setcounter{subsectiontitlenumber}{0}}%
\par}}
\renewcommand\section{\@startsection{paragraph}{10}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\large\sectionHeadStyle}}
\renewcommand\subsection{\@startsection{subparagraph}{10}{\z@}%
{3.25ex \@plus1ex \@minus.2ex}%
{-1em}%
{\normalfont\normalsize\sectionHeadStyle}}
\fi
%% redefine Part
\renewcommand\part{%
{\setcounter{titlenumber}{0}}
\if@openright
\cleardoublepage
\else
\clearpage
\fi
\thispagestyle{plain}%
\if@twocolumn
\onecolumn
\@tempswatrue
\else
\@tempswafalse
\fi
\null\vfil
\secdef\@part\@spart}
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >-2\relax
\refstepcounter{part}%
\addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
\else
\addcontentsline{toc}{part}{#1}%
\fi
\markboth{}{}%
{\centering
\interlinepenalty \@M
\normalfont
\ifnum \c@secnumdepth >-2\relax
\huge\sffamily\bfseries \partname\nobreakspace\thepart
\par
\vskip 20\p@
\fi
\Huge \bfseries #2\par}%
\@endpart}
\def\@spart#1{%
{\centering
\interlinepenalty \@M
\normalfont
\Huge \bfseries #1\par}%
\@endpart}
\def\@endpart{\vfil\newpage
\if@twoside
\if@openright
\null
\thispagestyle{empty}%
\newpage
\fi
\fi
\if@tempswa
\twocolumn
\fi}
\makeatother
%\typeout{************************************************}
%\typeout{Stuff from Ximera}
%\typeout{************************************************}
\usepackage{array} %% This is for typesetting long division
\setlength{\extrarowheight}{+.1cm}
\newdimen\digitwidth
\settowidth\digitwidth{9}
\def\divrule#1#2{
\noalign{\moveright#1\digitwidth
\vbox{\hrule width#2\digitwidth}}}
\newcommand{\RR}{\mathbb R}
\newcommand{\R}{\mathbb R}
\newcommand{\N}{\mathbb N}
\newcommand{\Z}{\mathbb Z}
\newcommand{\sagemath}{\textsf{SageMath}}
\def\d{\,d}
%\renewcommand{\d}{\mathop{}\!d}
\newcommand{\dd}[2][]{\frac{\d #1}{\d #2}}
\newcommand{\pp}[2][]{\frac{\partial #1}{\partial #2}}
\renewcommand{\l}{\ell}
\newcommand{\ddx}{\frac{d}{\d x}}
%\newcommand{\unit}{\,\mathrm}
\newcommand{\unit}{\mathop{}\!\mathrm}
\newcommand{\eval}[1]{\bigg[ #1 \bigg]}
\newcommand{\seq}[1]{\left( #1 \right)}
\renewcommand{\epsilon}{\varepsilon}
\renewcommand{\phi}{\varphi}
\renewcommand{\iff}{\Leftrightarrow}
\DeclareMathOperator{\arccot}{arccot}
\DeclareMathOperator{\arcsec}{arcsec}
\DeclareMathOperator{\arccsc}{arccsc}
\DeclareMathOperator{\sign}{sign}
%\DeclareMathOperator{\divergence}{divergence}
%\DeclareMathOperator{\curl}[1]{\grad\cross #1}
\newcommand{\lto}{\mathop{\longrightarrow\,}\limits}
\renewcommand{\bar}{\overline}
\colorlet{textColor}{black}
\colorlet{background}{white}
\colorlet{penColor}{blue!50!black} % Color of a curve in a plot
\colorlet{penColor2}{red!50!black}% Color of a curve in a plot
\colorlet{penColor3}{red!50!blue} % Color of a curve in a plot
\colorlet{penColor4}{green!50!black} % Color of a curve in a plot
\colorlet{penColor5}{orange!80!black} % Color of a curve in a plot
\colorlet{penColor6}{yellow!70!black} % Color of a curve in a plot
\colorlet{fill1}{penColor!20} % Color of fill in a plot
\colorlet{fill2}{penColor2!20} % Color of fill in a plot
\colorlet{fillp}{fill1} % Color of positive area
\colorlet{filln}{penColor2!20} % Color of negative area
\colorlet{fill3}{penColor3!20} % Fill
\colorlet{fill4}{penColor4!20} % Fill
\colorlet{fill5}{penColor5!20} % Fill
\colorlet{gridColor}{gray!50} % Color of grid in a plot
\newcommand{\surfaceColor}{violet}
\newcommand{\surfaceColorTwo}{redyellow}
\newcommand{\sliceColor}{greenyellow}
\pgfmathdeclarefunction{gauss}{2}{% gives gaussian
\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}%
}
%\typeout{************************************************}
%\typeout{ORCCA Preamble.Tex}
%\typeout{************************************************}
%% \usepackage{geometry}
%% \geometry{letterpaper,total={408pt,9.0in}}
%% Custom Page Layout Adjustments (use latex.geometry)
%% \usepackage{amsmath,amssymb}
%% \usepackage{pgfplots}
\usepackage{pifont} %needed for symbols, s.a. airplane symbol
\usetikzlibrary{positioning,fit,backgrounds} %needed for nested diagrams
\usetikzlibrary{calc,trees,positioning,arrows,fit,shapes} %needed for set diagrams
\usetikzlibrary{decorations.text} %needed for text following a curve
\usetikzlibrary{arrows,arrows.meta} %needed for open/closed intervals
\usetikzlibrary{positioning,3d,shapes.geometric} %needed for 3d number sets tower
%% NEEDED FOR XIMERA 1
%\usetkzobj{all} %NO LONGER VALID
%%%%%%%%%%%%%%
\usepackage{tikz-3dplot}
\usepackage{tkz-euclide} %needed for triangle diagrams
\usepgfplotslibrary{fillbetween} %shade regions of a plot
\usetikzlibrary{shadows} %function diagrams
\usetikzlibrary{positioning} %function diagrams
\usetikzlibrary{shapes} %function diagrams
%%% global colors from https://www.pcc.edu/web-services/style-guide/basics/color/ %%%
\definecolor{ruby}{HTML}{9E0C0F}
\definecolor{turquoise}{HTML}{008099}
\definecolor{emerald}{HTML}{1c8464}
\definecolor{amber}{HTML}{c7502a}
\definecolor{amethyst}{HTML}{70485b}
\definecolor{sapphire}{HTML}{263c53}
\colorlet{firstcolor}{sapphire}
\colorlet{secondcolor}{turquoise}
\colorlet{thirdcolor}{emerald}
\colorlet{fourthcolor}{amber}
\colorlet{fifthcolor}{amethyst}
\colorlet{sixthcolor}{ruby}
\colorlet{highlightcolor}{green!50!black}
\colorlet{graphbackground}{white}
\colorlet{wood}{brown!60!white}
%%% curve, dot, and graph custom styles %%%
\pgfplotsset{firstcurve/.style = {color=firstcolor, mark=none, line width=1pt, {Kite}-{Kite}, solid}}
\pgfplotsset{secondcurve/.style = {color=secondcolor, mark=none, line width=1pt, {Kite}-{Kite}, solid}}
\pgfplotsset{thirdcurve/.style = {color=thirdcolor, mark=none, line width=1pt, {Kite}-{Kite}, solid}}
\pgfplotsset{fourthcurve/.style = {color=fourthcolor, mark=none, line width=1pt, {Kite}-{Kite}, solid}}
\pgfplotsset{fifthcurve/.style = {color=fifthcolor, mark=none, line width=1pt, {Kite}-{Kite}, solid}}
\pgfplotsset{highlightcurve/.style = {color=highlightcolor, mark=none, line width=5pt, -, opacity=0.3}} % thick, opaque curve for highlighting
\pgfplotsset{asymptote/.style = {color=gray, mark=none, line width=1pt, <->, dashed}}
\pgfplotsset{symmetryaxis/.style = {color=gray, mark=none, line width=1pt, <->, dashed}}
\pgfplotsset{guideline/.style = {color=gray, mark=none, line width=1pt, -}}
\tikzset{guideline/.style = {color=gray, mark=none, line width=1pt, -}}
\pgfplotsset{altitude/.style = {dashed, color=gray, thick, mark=none, -}}
\tikzset{altitude/.style = {dashed, color=gray, thick, mark=none, -}}
\pgfplotsset{radius/.style = {dashed, thick, mark=none, -}}
\tikzset{radius/.style = {dashed, thick, mark=none, -}}
\pgfplotsset{rightangle/.style = {color=gray, mark=none, -}}
\tikzset{rightangle/.style = {color=gray, mark=none, -}}
\pgfplotsset{closedboundary/.style = {color=black, mark=none, line width=1pt, {Kite}-{Kite},solid}}
\tikzset{closedboundary/.style = {color=black, mark=none, line width=1pt, {Kite}-{Kite},solid}}
\pgfplotsset{openboundary/.style = {color=black, mark=none, line width=1pt, {Kite}-{Kite},dashed}}
\tikzset{openboundary/.style = {color=black, mark=none, line width=1pt, {Kite}-{Kite},dashed}}
\tikzset{verticallinetest/.style = {color=gray, mark=none, line width=1pt, <->,dashed}}
\pgfplotsset{soliddot/.style = {color=firstcolor, mark=*, only marks}}
\pgfplotsset{hollowdot/.style = {color=firstcolor, mark=*, only marks, fill=graphbackground}}
\pgfplotsset{blankgraph/.style = {xmin=-10, xmax=10,
ymin=-10, ymax=10,
axis line style={-, draw opacity=0 },
axis lines=box,
major tick length=0mm,
xtick={-10,-9,...,10},
ytick={-10,-9,...,10},
grid=major,
grid style={solid,gray!20},
xticklabels={,,},
yticklabels={,,},
minor xtick=,
minor ytick=,
xlabel={},ylabel={},
width=0.75\textwidth,
}
}
\pgfplotsset{numberline/.style = {xmin=-10,xmax=10,
minor xtick={-11,-10,...,11},
xtick={-10,-5,...,10},
every tick/.append style={thick},
axis y line=none,
y=15pt,
axis lines=middle,
enlarge x limits,
grid=none,
clip=false,
axis background/.style={},
after end axis/.code={
\path (axis cs:0,0)
node [anchor=north,yshift=-0.075cm] {\footnotesize 0};
},
every axis x label/.style={at={(current axis.right of origin)},anchor=north},
}
}
\pgfplotsset{openinterval/.style={color=firstcolor,mark=none,ultra thick,{Parenthesis}-{Parenthesis}}}
\pgfplotsset{openclosedinterval/.style={color=firstcolor,mark=none,ultra thick,{Parenthesis}-{Bracket}}}
\pgfplotsset{closedinterval/.style={color=firstcolor,mark=none,ultra thick,{Bracket}-{Bracket}}}
\pgfplotsset{closedopeninterval/.style={color=firstcolor,mark=none,ultra thick,{Bracket}-{Parenthesis}}}
\pgfplotsset{infiniteopeninterval/.style={color=firstcolor,mark=none,ultra thick,{Kite}-{Parenthesis}}}
\pgfplotsset{openinfiniteinterval/.style={color=firstcolor,mark=none,ultra thick,{Parenthesis}-{Kite}}}
\pgfplotsset{infiniteclosedinterval/.style={color=firstcolor,mark=none,ultra thick,{Kite}-{Bracket}}}
\pgfplotsset{closedinfiniteinterval/.style={color=firstcolor,mark=none,ultra thick,{Bracket}-{Kite}}}
\pgfplotsset{infiniteinterval/.style={color=firstcolor,mark=none,ultra thick,{Kite}-{Kite}}}
\pgfplotsset{interval/.style= {ultra thick, -}}
%%% cycle list of plot styles for graphs with multiple plots %%%
\pgfplotscreateplotcyclelist{pccstylelist}{%
firstcurve\\%
secondcurve\\%
thirdcurve\\%
fourthcurve\\%
fifthcurve\\%
}
%%% default plot settings %%%
\pgfplotsset{every axis/.append style={
axis x line=middle, % put the x axis in the middle
axis y line=middle, % put the y axis in the middle
axis line style={<->}, % arrows on the axis
scaled ticks=false,
tick label style={/pgf/number format/fixed},
xlabel={$x$}, % default put x on x-axis
ylabel={$y$}, % default put y on y-axis
xmin = -7,xmax = 7, % most graphs have this window
ymin = -7,ymax = 7, % most graphs have this window
domain = -7:7,
xtick = {-6,-4,...,6}, % label these ticks
ytick = {-6,-4,...,6}, % label these ticks
yticklabel style={inner sep=0.333ex},
minor xtick = {-7,-6,...,7}, % include these ticks, some without label
minor ytick = {-7,-6,...,7}, % include these ticks, some without label
scale only axis, % don't consider axis and tick labels for width and height calculation
cycle list name=pccstylelist,
tick label style={font=\footnotesize},
legend cell align=left,
grid = both,
grid style = {solid,gray!20},
axis background/.style={fill=graphbackground},
}}
\pgfplotsset{framed/.style={axis background/.style ={draw=gray}}}
%\pgfplotsset{framed/.style={axis background/.style ={draw=gray,fill=graphbackground,rounded corners=3ex}}}
%%% other tikz (not pgfplots) settings %%%
%\tikzset{axisnode/.style={font=\scriptsize,text=black}}
\tikzset{>=stealth}
%%% for nested diagram in types of numbers section %%%
\newcommand\drawnestedsets[4]{
\def\position{#1} % initial position
\def\nbsets{#2} % number of sets
\def\listofnestedsets{#3} % list of sets
\def\reversedlistofcolors{#4} % reversed list of colors
% position and draw labels of sets
\coordinate (circle-0) at (#1);
\coordinate (set-0) at (#1);
\foreach \set [count=\c] in \listofnestedsets {
\pgfmathtruncatemacro{\cminusone}{\c - 1}
% label of current set (below previous nested set)
\node[below=3pt of circle-\cminusone,inner sep=0]
(set-\c) {\set};
% current set (fit current label and previous set)
\node[circle,inner sep=0,fit=(circle-\cminusone)(set-\c)]
(circle-\c) {};
}
% draw and fill sets in reverse order
\begin{scope}[on background layer]
\foreach \col[count=\c] in \reversedlistofcolors {
\pgfmathtruncatemacro{\invc}{\nbsets-\c}
\pgfmathtruncatemacro{\invcplusone}{\invc+1}
\node[circle,draw,fill=\col,inner sep=0,
fit=(circle-\invc)(set-\invcplusone)] {};
}
\end{scope}
}
\ifdefined\tikzset
\tikzset{ampersand replacement = \amp}
\fi
\newcommand{\abs}[1]{\left\lvert#1\right\rvert}
%\newcommand{\point}[2]{\left(#1,#2\right)}
\newcommand{\highlight}[1]{\definecolor{sapphire}{RGB}{59,90,125} {\color{sapphire}{{#1}}}}
\newcommand{\firsthighlight}[1]{\definecolor{sapphire}{RGB}{59,90,125} {\color{sapphire}{{#1}}}}
\newcommand{\secondhighlight}[1]{\definecolor{emerald}{RGB}{20,97,75} {\color{emerald}{{#1}}}}
\newcommand{\unhighlight}[1]{{\color{black}{{#1}}}}
\newcommand{\lowlight}[1]{{\color{lightgray}{#1}}}
\newcommand{\attention}[1]{\mathord{\overset{\downarrow}{#1}}}
\newcommand{\nextoperation}[1]{\mathord{\boxed{#1}}}
\newcommand{\substitute}[1]{{\color{blue}{{#1}}}}
\newcommand{\pinover}[2]{\overset{\overset{\mathrm{\ #2\ }}{|}}{\strut #1 \strut}}
\newcommand{\addright}[1]{{\color{blue}{{{}+#1}}}}
\newcommand{\addleft}[1]{{\color{blue}{{#1+{}}}}}
\newcommand{\subtractright}[1]{{\color{blue}{{{}-#1}}}}
\newcommand{\multiplyright}[2][\cdot]{{\color{blue}{{{}#1#2}}}}
\newcommand{\multiplyleft}[2][\cdot]{{\color{blue}{{#2#1{}}}}}
\newcommand{\divideunder}[2]{\frac{#1}{{\color{blue}{{#2}}}}}
\newcommand{\divideright}[1]{{\color{blue}{{{}\div#1}}}}
\newcommand{\negate}[1]{{\color{blue}{{-}}}\left(#1\right)}
\newcommand{\cancelhighlight}[1]{\definecolor{sapphire}{RGB}{59,90,125}{\color{sapphire}{{\cancel{#1}}}}}
\newcommand{\secondcancelhighlight}[1]{\definecolor{emerald}{RGB}{20,97,75}{\color{emerald}{{\bcancel{#1}}}}}
\newcommand{\thirdcancelhighlight}[1]{\definecolor{amethyst}{HTML}{70485b}{\color{amethyst}{{\xcancel{#1}}}}}
\newcommand{\lt}{<} %% Bart: WHY?
\newcommand{\gt}{>} %% Bart: WHY?
\newcommand{\amp}{&} %% Bart: WHY?
%%% These commands break Xake
%% \newcommand{\apple}{\text{🍎}}
%% \newcommand{\banana}{\text{🍌}}
%% \newcommand{\pear}{\text{🍐}}
%% \newcommand{\cat}{\text{🐱}}
%% \newcommand{\dog}{\text{🐶}}
\newcommand{\apple}{PICTURE OF APPLE}
\newcommand{\banana}{PICTURE OF BANANA}
\newcommand{\pear}{PICTURE OF PEAR}
\newcommand{\cat}{PICTURE OF CAT}
\newcommand{\dog}{PICTURE OF DOG}
%%%%% INDEX STUFF
\newcommand{\dfn}[1]{\textbf{#1}\index{#1}}
\usepackage{imakeidx}
\makeindex[intoc]
\makeatletter
\gdef\ttl@savemark{\sectionmark{}}
\makeatother
% for drawing cube in Optimization problem
\usetikzlibrary{quotes,arrows.meta}
\tikzset{
annotated cuboid/.pic={
\tikzset{%
every edge quotes/.append style={midway, auto},
/cuboid/.cd,
#1
}
\draw [every edge/.append style={pic actions, densely dashed, opacity=.5}, pic actions]
(0,0,0) coordinate (o) -- ++(-\cubescale*\cubex,0,0) coordinate (a) -- ++(0,-\cubescale*\cubey,0) coordinate (b) edge coordinate [pos=1] (g) ++(0,0,-\cubescale*\cubez) -- ++(\cubescale*\cubex,0,0) coordinate (c) -- cycle
(o) -- ++(0,0,-\cubescale*\cubez) coordinate (d) -- ++(0,-\cubescale*\cubey,0) coordinate (e) edge (g) -- (c) -- cycle
(o) -- (a) -- ++(0,0,-\cubescale*\cubez) coordinate (f) edge (g) -- (d) -- cycle;
\path [every edge/.append style={pic actions, |-|}]
(b) +(0,-5pt) coordinate (b1) edge ["x"'] (b1 -| c)
(b) +(-5pt,0) coordinate (b2) edge ["y"] (b2 |- a)
(c) +(3.5pt,-3.5pt) coordinate (c2) edge ["x"'] ([xshift=3.5pt,yshift=-3.5pt]e)
;
},
/cuboid/.search also={/tikz},
/cuboid/.cd,
width/.store in=\cubex,
height/.store in=\cubey,
depth/.store in=\cubez,
units/.store in=\cubeunits,
scale/.store in=\cubescale,
width=10,
height=10,
depth=10,
units=cm,
scale=.1,
}