diff --git a/Advanced/Continued Fractions/main.tex b/Advanced/Continued Fractions/main.tex index 4f3b677..beeaf10 100755 --- a/Advanced/Continued Fractions/main.tex +++ b/Advanced/Continued Fractions/main.tex @@ -11,10 +11,10 @@ \usepackage{multicol} \uptitlel{Advanced 2} -\uptitler{Fall 2023} +\uptitler{\smallurl{}} \title{Continued Fractions} \subtitle{ - Prepared by \githref{Mark} on \today \\ + Prepared by Mark on \today \\ Based on a handout by Matthew Gherman and Adam Lott } diff --git a/Advanced/Cryptography/main.tex b/Advanced/Cryptography/main.tex index 8c727f5..0084b73 100755 --- a/Advanced/Cryptography/main.tex +++ b/Advanced/Cryptography/main.tex @@ -10,9 +10,9 @@ \usepackage{multicol} \uptitlel{Advanced 1A} -\uptitler{Spring 2022} +\uptitler{\smallurl{}} \title{Intro to Cryptography} -\subtitle{Prepared by \githref{Mark} on \today{}} +\subtitle{Prepared by Mark on \today{}} \begin{document} diff --git a/Advanced/DFAs/main.tex b/Advanced/DFAs/main.tex index 87660dc..28a25b7 100755 --- a/Advanced/DFAs/main.tex +++ b/Advanced/DFAs/main.tex @@ -9,9 +9,9 @@ \input{tikzset.tex} \uptitlel{Advanced 2} -\uptitler{Winter 2022} +\uptitler{\smallurl{}} \title{Finite Automata} -\subtitle{Prepared by \githref{Mark} and Nikita on \today{}} +\subtitle{Prepared by Mark and Nikita on \today{}} \begin{document} diff --git a/Advanced/De Bruijn/main.tex b/Advanced/De Bruijn/main.tex index d60bbb5..2f55c6e 100755 --- a/Advanced/De Bruijn/main.tex +++ b/Advanced/De Bruijn/main.tex @@ -10,9 +10,9 @@ \input{tikzset.tex} \uptitlel{Advanced 2} -\uptitler{Spring 2024} +\uptitler{\smallurl{}} \title{De Bruijn Sequences} -\subtitle{Prepared by \githref{Mark} on \today{}} +\subtitle{Prepared by Mark on \today{}} \begin{document} diff --git a/Advanced/Definable Sets/main.tex b/Advanced/Definable Sets/main.tex index 8b96f77..969aa20 100755 --- a/Advanced/Definable Sets/main.tex +++ b/Advanced/Definable Sets/main.tex @@ -11,9 +11,9 @@ \usepackage{mathtools} \uptitlel{Advanced 2} -\uptitler{Spring 2023} +\uptitler{\smallurl{}} \title{Definable Sets} -\subtitle{Prepared by \githref{Mark} on \today{}} +\subtitle{Prepared by Mark on \today{}} \begin{document} diff --git a/Advanced/Error-Correcting Codes/main.tex b/Advanced/Error-Correcting Codes/main.tex index 0317934..c2d8faf 100755 --- a/Advanced/Error-Correcting Codes/main.tex +++ b/Advanced/Error-Correcting Codes/main.tex @@ -12,9 +12,9 @@ \usetikzlibrary{patterns} \uptitlel{Advanced 2} -\uptitler{Fall 2022} +\uptitler{\smallurl{}} \title{Error-Correcting Codes} -\subtitle{Prepared by \githref{Mark} on \today} +\subtitle{Prepared by Mark on \today} \begin{document} diff --git a/Advanced/Estimathon/main.tex b/Advanced/Estimathon/main.tex index 595e422..ae301e3 100755 --- a/Advanced/Estimathon/main.tex +++ b/Advanced/Estimathon/main.tex @@ -8,9 +8,9 @@ \usepackage{../../resources/macros} \uptitlel{Advanced 2} -\uptitler{Winter 2023} +\uptitler{\smallurl{}} \title{Estimathon} -\subtitle{Prepared by \githref{Mark} on \today{}} +\subtitle{Prepared by Mark on \today{}} \begin{document} diff --git a/Advanced/Graph Algorithms/main.tex b/Advanced/Graph Algorithms/main.tex index 7959cce..6b4c9da 100755 --- a/Advanced/Graph Algorithms/main.tex +++ b/Advanced/Graph Algorithms/main.tex @@ -8,9 +8,9 @@ \input{tikxset} \uptitlel{Advanced 2} -\uptitler{Fall 2022} +\uptitler{\smallurl{}} \title{Algorithms on Graphs: Flow} -\subtitle{Prepared by \githref{Mark} on \today} +\subtitle{Prepared by Mark on \today} \begin{document} diff --git a/Advanced/Intro to Proofs/main.tex b/Advanced/Intro to Proofs/main.tex index 7096522..e9a72d8 100755 --- a/Advanced/Intro to Proofs/main.tex +++ b/Advanced/Intro to Proofs/main.tex @@ -8,9 +8,9 @@ \uptitlel{Advanced 2} -\uptitler{Fall 2023} +\uptitler{\smallurl{}} \title{Intro to Proofs} -\subtitle{Prepared by \githref{Mark} on \today{}} +\subtitle{Prepared by Mark on \today{}} \begin{document} diff --git a/Advanced/Introduction to Quantum/main.tex b/Advanced/Introduction to Quantum/main.tex index d0038aa..a990526 100755 --- a/Advanced/Introduction to Quantum/main.tex +++ b/Advanced/Introduction to Quantum/main.tex @@ -7,9 +7,9 @@ \input{src/tikzset} \uptitlel{Advanced 2} -\uptitler{Winter 2024} +\uptitler{\smallurl{}} \title{Intro to Quantum Computing} -\subtitle{Prepared by \githref{Mark} on \today{}} +\subtitle{Prepared by Mark on \today{}} \def\ket#1{\left|#1\right\rangle} \def\bra#1{\left\langle#1\right|} diff --git a/Advanced/Introduction to Quantum/src/main.tex b/Advanced/Introduction to Quantum/src/main.tex index 3958d60..2a964f2 100755 --- a/Advanced/Introduction to Quantum/src/main.tex +++ b/Advanced/Introduction to Quantum/src/main.tex @@ -24,9 +24,9 @@ \input{tikzset} \uptitlel{Advanced 2} -\uptitler{Winter 2024} +\uptitler{\smallurl{}} \title{Intro to Quantum Computing} -\subtitle{Prepared by \githref{Mark} on \today{}} +\subtitle{Prepared by Mark on \today{}} \def\ket#1{\left|#1\right\rangle} \def\bra#1{\left\langle#1\right|} diff --git a/Advanced/Lambda Calculus/main.tex b/Advanced/Lambda Calculus/main.tex index 6032a54..e5a1ccf 100755 --- a/Advanced/Lambda Calculus/main.tex +++ b/Advanced/Lambda Calculus/main.tex @@ -38,9 +38,9 @@ \uptitlel{Advanced 2} -\uptitler{Fall 2023} +\uptitler{\smallurl{}} \title{Lambda Calculus} -\subtitle{Prepared by \githref{Mark} on \today{}} +\subtitle{Prepared by Mark on \today{}} \begin{document} diff --git a/Advanced/Lattices/main.tex b/Advanced/Lattices/main.tex index a6f34ac..5f469ac 100755 --- a/Advanced/Lattices/main.tex +++ b/Advanced/Lattices/main.tex @@ -12,9 +12,9 @@ \renewcommand{\arraystretch}{1.2} \uptitlel{Advanced 2} -\uptitler{Spring 2023} +\uptitler{\smallurl{}} \title{Lattices} -\subtitle{Prepared by \githref{Mark} on \today} +\subtitle{Prepared by Mark on \today} \begin{document} diff --git a/Advanced/Mock a Mockingbird/main.tex b/Advanced/Mock a Mockingbird/main.tex index 521fb16..6dab7e1 100755 --- a/Advanced/Mock a Mockingbird/main.tex +++ b/Advanced/Mock a Mockingbird/main.tex @@ -67,10 +67,10 @@ \uptitlel{Advanced 2} -\uptitler{Spring 2023} +\uptitler{\smallurl{}} \title{To Mock a Mockingbird} \subtitle{ - Prepared by \githref{Mark} on \today \\ + Prepared by Mark on \today \\ Based on a book of the same name. } diff --git a/Advanced/Nonstandard Analysis/main.tex b/Advanced/Nonstandard Analysis/main.tex index bcdf52e..bf35a4f 100755 --- a/Advanced/Nonstandard Analysis/main.tex +++ b/Advanced/Nonstandard Analysis/main.tex @@ -24,10 +24,10 @@ \usepackage{units} \uptitlel{Advanced 2} -\uptitler{Winter 2024} +\uptitler{\smallurl{}} \title{Nonstandard Analysis} \subtitle{ - Prepared by \githref{Mark} on \today{} \\ + Prepared by Mark on \today{} \\ Based on handouts by Nikita and Stepan } diff --git a/Advanced/Origami/main.tex b/Advanced/Origami/main.tex index 8d96790..b7e5256 100755 --- a/Advanced/Origami/main.tex +++ b/Advanced/Origami/main.tex @@ -8,7 +8,7 @@ \graphicspath{ {./images/} } \uptitlel{Advanced 2} -\uptitler{Winter 2022} +\uptitler{\smallurl{}} \title{Origami} \subtitle{Prepared by everyone on \today} @@ -218,12 +218,12 @@ \note{Proposed by Nikita} \begin{enumerate}[label = \textbf{\alph{enumi}:}] \item Construct a regular hexagon using a ruler and compass. - + \item Cut the triangle with angles $72^\circ$, $72^\circ$, $36^\circ$ into 2 isosceles triangles. - + \item Using triangle similarity, prove that the ratio of the sides in this triangle is equal to the golden ratio $\varphi = \frac{1+\sqrt{5}}{2}$. - + \item Find a way to construct a regular pentagon using only a ruler and compass. \end{enumerate} diff --git a/Advanced/Pidgeonhole Problems/main.tex b/Advanced/Pidgeonhole Problems/main.tex index d3bca21..c62de90 100755 --- a/Advanced/Pidgeonhole Problems/main.tex +++ b/Advanced/Pidgeonhole Problems/main.tex @@ -10,9 +10,9 @@ \usepackage{tikz} \uptitlel{Advanced 2} -\uptitler{Winter 2022} +\uptitler{\smallurl{}} \title{Pidgeonhole Problems} -\subtitle{Prepared by \githref{Mark} on \today} +\subtitle{Prepared by Mark on \today} \begin{document} diff --git a/Advanced/Random Walks/main.tex b/Advanced/Random Walks/main.tex index e3afff7..8770dcc 100755 --- a/Advanced/Random Walks/main.tex +++ b/Advanced/Random Walks/main.tex @@ -13,10 +13,10 @@ \usepackage{circuitikz} \uptitlel{Advanced 2} -\uptitler{Fall 2023} +\uptitler{\smallurl{}} \title{Random Walks and Resistance} \subtitle{ - Prepared by \githref{Mark} on \today{} \\ + Prepared by Mark on \today{} \\ Based on a handout by Aaron Anderson } diff --git a/Advanced/Retrograde Analysis/main.tex b/Advanced/Retrograde Analysis/main.tex index 3b91fc9..2e9aa34 100755 --- a/Advanced/Retrograde Analysis/main.tex +++ b/Advanced/Retrograde Analysis/main.tex @@ -20,10 +20,10 @@ } \uptitlel{Advanced 2} -\uptitler{Fall 2023} +\uptitler{\smallurl{}} \title{Retrograde Analysis} \subtitle{ - Prepared by \githref{Mark} on \today{} \\ + Prepared by Mark on \today{} \\ Based on books\footnotemark{} by Raymond Smullyan } @@ -37,7 +37,7 @@ } \input{parts/01 intro} - + \input{parts/02 easy} \input{parts/03 medium} \input{parts/04 hard} diff --git a/Advanced/Size of Sets/main.tex b/Advanced/Size of Sets/main.tex index 65f7188..68d1abc 100755 --- a/Advanced/Size of Sets/main.tex +++ b/Advanced/Size of Sets/main.tex @@ -9,9 +9,9 @@ \uptitlel{Advanced 1} -\uptitler{Summer 2023} +\uptitler{\smallurl{}} \title{The Size of Sets} -\subtitle{Prepared by \githref{Mark} on \today{}} +\subtitle{Prepared by Mark on \today{}} \begin{document} diff --git a/Advanced/Symmetric Group/main.tex b/Advanced/Symmetric Group/main.tex index 9a0ae66..be9f550 100755 --- a/Advanced/Symmetric Group/main.tex +++ b/Advanced/Symmetric Group/main.tex @@ -8,9 +8,9 @@ \usetikzlibrary{calc} \uptitlel{Advanced 2} -\uptitler{Winter 2023} +\uptitler{\smallurl{}} \title{Symmetric Groups} -\subtitle{Prepared by \githref{Mark} on \today{}} +\subtitle{Prepared by Mark on \today{}} diff --git a/Intermediate/An Introduction to Graph Theory/main.tex b/Intermediate/An Introduction to Graph Theory/main.tex index ccb5aca..fdd02ed 100755 --- a/Intermediate/An Introduction to Graph Theory/main.tex +++ b/Intermediate/An Introduction to Graph Theory/main.tex @@ -11,10 +11,10 @@ \usepackage{adjustbox} \uptitlel{Intermediate 2} -\uptitler{ORMC Summer Sessions} +\uptitler{\smallurl{}} \title{An Introduction to Graph Theory} \subtitle{ - Prepared by \githref{Mark} on \today \\ + Prepared by Mark on \today \\ Based on a handout by Oleg Gleizer } diff --git a/Intermediate/Combinatorics/main.tex b/Intermediate/Combinatorics/main.tex index 39b8751..785c9d9 100755 --- a/Intermediate/Combinatorics/main.tex +++ b/Intermediate/Combinatorics/main.tex @@ -20,9 +20,9 @@ } \uptitlel{Advanced 1} -\uptitler{ORMC Summer Sessions} +\uptitler{\smallurl{}} \title{Combinatorics} -\subtitle{Prepared by \githref{Mark} on \today} +\subtitle{Prepared by Mark on \today} \begin{document} diff --git a/Intermediate/Instant Insanity/main.tex b/Intermediate/Instant Insanity/main.tex index 12198b6..79236bc 100755 --- a/Intermediate/Instant Insanity/main.tex +++ b/Intermediate/Instant Insanity/main.tex @@ -10,10 +10,10 @@ \uptitlel{Intermediate 2} -\uptitler{ORMC Summer Sessions} +\uptitler{\smallurl{}} \title{Graph Theory and Instant Insanity} \subtitle{ - Prepared by \githref{Mark} on \today \\ + Prepared by Mark on \today \\ Based on a handout by Oleg Gleizer } diff --git a/Intermediate/Newton's Laws/main.tex b/Intermediate/Newton's Laws/main.tex index 36987d6..3874f5d 100755 --- a/Intermediate/Newton's Laws/main.tex +++ b/Intermediate/Newton's Laws/main.tex @@ -8,10 +8,10 @@ \uptitlel{Intermediate 2} -\uptitler{ORMC Summer Sessions} +\uptitler{\smallurl{}} \title{Newton's Laws of Motion} \subtitle{ - Prepared by \githref{Mark} on \today \\ + Prepared by Mark on \today \\ Based on a handout by Oleg Gleizer } diff --git a/Intermediate/Probability/main.tex b/Intermediate/Probability/main.tex index a6eee42..2ef0251 100755 --- a/Intermediate/Probability/main.tex +++ b/Intermediate/Probability/main.tex @@ -14,10 +14,10 @@ \uptitlel{Intermediate 2} -\uptitler{ORMC Summer Sessions} +\uptitler{\smallurl{}} \title{Probability} \subtitle{ - Prepared by \githref{Mark} on \today \\ + Prepared by Mark on \today \\ Based on a handout by Oleg Gleizer } diff --git a/Intermediate/Slide Rules/main.tex b/Intermediate/Slide Rules/main.tex index 624c436..275df07 100755 --- a/Intermediate/Slide Rules/main.tex +++ b/Intermediate/Slide Rules/main.tex @@ -27,9 +27,9 @@ \uptitlel{Intermediate 2} -\uptitler{Summer 2022} +\uptitler{\smallurl{}} \title{Slide Rules} -\subtitle{Prepared by \githref{Mark} on \today} +\subtitle{Prepared by Mark on \today} \begin{document} diff --git a/Intermediate/Vectors 1/main.tex b/Intermediate/Vectors 1/main.tex index 4a97463..745dcf8 100755 --- a/Intermediate/Vectors 1/main.tex +++ b/Intermediate/Vectors 1/main.tex @@ -6,10 +6,10 @@ \uptitlel{Intermediate 2} -\uptitler{ORMC Summer Sessions} +\uptitler{\smallurl{}} \title{Vectors 1} \subtitle{ - Prepared by \githref{Mark} on \today \\ + Prepared by Mark on \today \\ Based on a handout by Oleg Gleizer } diff --git a/Intermediate/Vectors 2/main.tex b/Intermediate/Vectors 2/main.tex index 863a211..4d6b257 100755 --- a/Intermediate/Vectors 2/main.tex +++ b/Intermediate/Vectors 2/main.tex @@ -5,10 +5,10 @@ \uptitlel{Intermediate 2} -\uptitler{ORMC Summer Sessions} +\uptitler{\smallurl{}} \title{Vectors 2} \subtitle{ - Prepared by \githref{Mark} on \today \\ + Prepared by Mark on \today \\ Based on a handout by Oleg Gleizer } diff --git a/Misc/Moscow Puzzles/main.tex b/Misc/Moscow Puzzles/main.tex index ea5e5a5..6f83bc8 100755 --- a/Misc/Moscow Puzzles/main.tex +++ b/Misc/Moscow Puzzles/main.tex @@ -12,10 +12,10 @@ \uptitlel{Intermediate 2} -\uptitler{ORMC Summer Sessions} +\uptitler{\smallurl{}} \title{Warm - Up} \subtitle{ - Prepared by \githref{Mark} on \today \\ + Prepared by Mark on \today \\ \medskip These problems were originally found in \\ Boris Kordemsky's \textit{The Moscow Puzzles} diff --git a/Misc/Proof Techniques/main.tex b/Misc/Proof Techniques/main.tex index 4a52475..9e32ac1 100755 --- a/Misc/Proof Techniques/main.tex +++ b/Misc/Proof Techniques/main.tex @@ -9,9 +9,9 @@ \usepackage{units} \uptitlel{Math Circle Basics} -\uptitler{} +\uptitler{\smallurl{}} \title{Proof Techniques} -\subtitle{Prepared by \githref{Mark} on \today{}} +\subtitle{Prepared by Mark on \today{}} % Default \implies is ugly \let\implies\Rightarrow diff --git a/Misc/Warm-Ups/adders.tex b/Misc/Warm-Ups/adders.tex index 2096dd4..61abfe5 100755 --- a/Misc/Warm-Ups/adders.tex +++ b/Misc/Warm-Ups/adders.tex @@ -7,7 +7,8 @@ \title{Warm-Up: Adders} -\subtitle{Prepared by \githref{Mark} on \today} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today} \begin{document} diff --git a/Misc/Warm-Ups/ast.tex b/Misc/Warm-Ups/ast.tex index e12ad50..32813aa 100755 --- a/Misc/Warm-Ups/ast.tex +++ b/Misc/Warm-Ups/ast.tex @@ -12,7 +12,8 @@ \title{Warm-Up: What's an AST?} -\subtitle{Prepared by \githref{Mark} on \today. \\ Based on a true story.} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today. \\ Based on a true story.} \begin{document} diff --git a/Misc/Warm-Ups/electician.tex b/Misc/Warm-Ups/electician.tex index e65c3ef..5086d32 100755 --- a/Misc/Warm-Ups/electician.tex +++ b/Misc/Warm-Ups/electician.tex @@ -25,7 +25,8 @@ \title{The Electrician's Warm-Up} -\subtitle{Prepared by \githref{Mark} on \today} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today} \begin{document} diff --git a/Misc/Warm-Ups/flipflop.tex b/Misc/Warm-Ups/flipflop.tex index d8fab6f..0cb93ba 100755 --- a/Misc/Warm-Ups/flipflop.tex +++ b/Misc/Warm-Ups/flipflop.tex @@ -14,7 +14,8 @@ \title{Warm-Up: Flip-Flops} -\subtitle{Prepared by \githref{Mark} on \today.} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today.} \begin{document} @@ -30,7 +31,7 @@ \begin{tikzpicture}[circuit logic US, scale=2] % tikz notes: % -|: Select vertical of first and horizontal of second - + % Gates \node[or gate] (or) at (0,0) {\tiny\texttt{or}}; \node[not gate] (not) at (0,-0.8) {\tiny\texttt{not}}; @@ -102,7 +103,7 @@ \begin{solution} This is another S-R (\say{set-reset}) latch. \end{solution} - + \vfill \pagebreak @@ -122,8 +123,8 @@ \begin{center} \begin{tikzpicture}[circuit logic US, scale=2] - - + + % Gates \node[nand gate] (nandc) at (1.4,0) {\tiny\texttt{nand}}; \node[nand gate] (nandd) at (1.4,-1.2) {\tiny\texttt{nand}}; diff --git a/Misc/Warm-Ups/fmod.tex b/Misc/Warm-Ups/fmod.tex index 98ade46..0f2b180 100755 --- a/Misc/Warm-Ups/fmod.tex +++ b/Misc/Warm-Ups/fmod.tex @@ -8,7 +8,8 @@ \title{Warm-Up: \texttt{fmod}} -\subtitle{Prepared by \githref{Mark} on \today.} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today.} \begin{document} diff --git a/Misc/Warm-Ups/gallery.tex b/Misc/Warm-Ups/gallery.tex index fb4a07b..265ee93 100755 --- a/Misc/Warm-Ups/gallery.tex +++ b/Misc/Warm-Ups/gallery.tex @@ -14,7 +14,8 @@ } \title{Warm-Up: The Gallery} -\subtitle{Prepared by \githref{Mark} on \today} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today} \begin{document} diff --git a/Misc/Warm-Ups/jump chess.tex b/Misc/Warm-Ups/jump chess.tex index 6a3aff9..5eb6b28 100755 --- a/Misc/Warm-Ups/jump chess.tex +++ b/Misc/Warm-Ups/jump chess.tex @@ -12,7 +12,8 @@ \usepackage{xskak} \title{Warm Up: Jump Chess} -\subtitle{Prepared by \githref{Mark} on \today} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today} % Source: Khan LSAT prep diff --git a/Misc/Warm-Ups/mario.tex b/Misc/Warm-Ups/mario.tex index 7e664b8..e640531 100755 --- a/Misc/Warm-Ups/mario.tex +++ b/Misc/Warm-Ups/mario.tex @@ -8,7 +8,8 @@ \title{Warm-Up: Mario Kart} -\subtitle{Prepared by \githref{Mark} on \today} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today} \begin{document} diff --git a/Misc/Warm-Ups/median.tex b/Misc/Warm-Ups/median.tex index f3b4840..b39d5f8 100755 --- a/Misc/Warm-Ups/median.tex +++ b/Misc/Warm-Ups/median.tex @@ -9,7 +9,8 @@ \title{Warm-Up: A Familiar Concept} -\subtitle{Prepared by \githref{Mark} on \today} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today} \begin{document} diff --git a/Misc/Warm-Ups/nontransitive dice.tex b/Misc/Warm-Ups/nontransitive dice.tex index 9a10342..3fb80a3 100755 --- a/Misc/Warm-Ups/nontransitive dice.tex +++ b/Misc/Warm-Ups/nontransitive dice.tex @@ -40,7 +40,8 @@ } \title{Warm Up: Odd dice} -\subtitle{Prepared by \githref{Mark} on \today} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today} \begin{document} @@ -99,7 +100,7 @@ \node[main] (d) at (1, -2) {$d$}; \node[main] (e) at (-1, -2) {$e$}; \end{scope} - + \draw[->] (a) edge (b) (b) edge (c) diff --git a/Misc/Warm-Ups/painting.tex b/Misc/Warm-Ups/painting.tex index bb72dfa..1b3ed39 100755 --- a/Misc/Warm-Ups/painting.tex +++ b/Misc/Warm-Ups/painting.tex @@ -6,7 +6,8 @@ \usepackage{../../resources/macros} \title{Warm-Up: Painting} -\subtitle{Prepared by \githref{Mark} on \today.} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today.} \begin{document} diff --git a/Misc/Warm-Ups/partitions.tex b/Misc/Warm-Ups/partitions.tex index 951833c..3e1d751 100755 --- a/Misc/Warm-Ups/partitions.tex +++ b/Misc/Warm-Ups/partitions.tex @@ -7,7 +7,8 @@ \title{Warm-Up: Partition Products} -\subtitle{Prepared by \githref{Mark} on \today.} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today.} \begin{document} diff --git a/Misc/Warm-Ups/primes.tex b/Misc/Warm-Ups/primes.tex index 52f335f..dbeaac4 100755 --- a/Misc/Warm-Ups/primes.tex +++ b/Misc/Warm-Ups/primes.tex @@ -1,12 +1,14 @@ \documentclass[ solutions, singlenumbering, - nopagenumber + nopagenumber, + hidewarning ]{../../resources/ormc_handout} \usepackage{../../resources/macros} \title{Warm-Up: Prime Factors} -\subtitle{Prepared by \githref{Mark} on \today.} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today.} \begin{document} diff --git a/Misc/Warm-Ups/raid.tex b/Misc/Warm-Ups/raid.tex index 7f6c23e..bce4d0d 100755 --- a/Misc/Warm-Ups/raid.tex +++ b/Misc/Warm-Ups/raid.tex @@ -12,7 +12,8 @@ \title{The Sysadmin's Warm-Up} -\subtitle{Prepared by \githref{Mark} on \today} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today} \begin{document} diff --git a/Misc/Warm-Ups/regex.tex b/Misc/Warm-Ups/regex.tex index fc42e3b..3956d8a 100644 --- a/Misc/Warm-Ups/regex.tex +++ b/Misc/Warm-Ups/regex.tex @@ -16,7 +16,8 @@ \title{The Regex Warm-Up} -\subtitle{Prepared by \githref{Mark} on \today} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today} \begin{document} diff --git a/Misc/Warm-Ups/sin.tex b/Misc/Warm-Ups/sin.tex index 13d5b07..a520635 100755 --- a/Misc/Warm-Ups/sin.tex +++ b/Misc/Warm-Ups/sin.tex @@ -7,7 +7,8 @@ \title{Warm-Up: Exact answers} -\subtitle{Prepared by \githref{Mark} on \today} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today} \begin{document} diff --git a/Misc/Warm-Ups/snake.tex b/Misc/Warm-Ups/snake.tex new file mode 100755 index 0000000..8c286f3 --- /dev/null +++ b/Misc/Warm-Ups/snake.tex @@ -0,0 +1,233 @@ +\documentclass[ + solutions, + singlenumbering, + nopagenumber +]{../../resources/ormc_handout} +\usepackage{../../resources/macros} + +\usepackage{ifthen} + +\usetikzlibrary{arrows.meta} +\usetikzlibrary{shapes.geometric} +\usetikzlibrary{patterns} + +% We put nodes in a separate layer, so we can +% slightly overlap with paths for a perfect fit +\pgfdeclarelayer{nodes} +\pgfdeclarelayer{path} +\pgfsetlayers{main,nodes} + +% Layer settings +\tikzset{ + % Layer hack, lets us write + % later = * in scopes. + layer/.style = { + execute at begin scope={\pgfonlayer{#1}}, + execute at end scope={\endpgfonlayer} + }, + % + % Arrowhead tweak + >={Latex[ width=2mm, length=2mm ]}, + % + % Labels inside edges + label/.style = { + rectangle, + % For automatic red background in solutions + fill = \ORMCbgcolor, + draw = none, + rounded corners = 0mm + }, + % + % Nodes + main/.style = { + draw, + circle, + fill = white, + line width = 0.4mm, + text width = 5mm, + align = center + }, + accept/.style = { + draw, + circle, + fill = white, + double, + double distance = 0.5mm, + line width = 0.4mm, + text width = 5mm, + align = center + }, +} + + + +\title{Warm-Up: Snakes} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today} + +\begin{document} + + \maketitle + \newcounter{mycounter} + \setcounter{mycounter}{0} + \newif\iftmp + + \begin{center} + \begin{tikzpicture}[scale = 0.6] + \begin{scope}[layer = nodes] + \foreach \r in {1,3,5,7,9} { + \foreach \i in {1,...,10} { + \pgfmathparse{Mod(\i-1,10)} + \let\x\pgfmathresult + \pgfmathparse{div(\i-1,10) + \r} + \let\y\pgfmathresult + \pgfmathparse{(\r-1)*10+\i} + \let\z\pgfmathresult + + \tmpfalse + \pgfmathapproxequalto{\z}{4} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{5} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{19} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{21} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{28} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{31} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{35} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{44} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{47} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{52} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{53} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{59} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{70} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{76} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{81} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{88} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{98} + \ifpgfmathcomparison\tmptrue + \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + + \stepcounter{mycounter} + \iftmp + \node[accept] (\arabic{mycounter}) at (2*\x, 2*\y) { + $\pgfmathprintnumber{\z}$ + }; + \else + \node[main] (\arabic{mycounter}) at (2*\x, 2*\y) { + $\pgfmathprintnumber{\z}$ + }; + \fi + } + + \foreach \i in {1,...,10} { + \pgfmathparse{9 - Mod(\i-1,10)} + \let\x\pgfmathresult + \pgfmathparse{div(\i-1,10) + \r + 1} + \let\y\pgfmathresult + \pgfmathparse{\r*10+\i} + \let\z\pgfmathresult + + \tmpfalse + \pgfmathapproxequalto{\z}{4} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{5} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{19} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{21} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{28} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{31} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{35} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{44} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{47} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{52} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{53} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{59} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{70} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{76} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{81} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{88} + \ifpgfmathcomparison\tmptrue + \else\pgfmathapproxequalto{\z}{98} + \ifpgfmathcomparison\tmptrue + \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + + \stepcounter{mycounter} + + \iftmp + \node[accept] (\arabic{mycounter}) at (2*\x, 2*\y) { + $\pgfmathprintnumber{\z}$ + }; + \else + \node[main] (\arabic{mycounter}) at (2*\x, 2*\y) { + $\pgfmathprintnumber{\z}$ + }; + \fi + } + } + \end{scope} + + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (4) -- +(1,0) -- +(1, 13) -- +(3, 13) -> (75); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (5) -- +(0,-1) -- +(1,-1) -- +(1,1) -- (15); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (19) -- +(1, 0) -- +(1, 5) -- + (-1, 5) -- (41); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (21) -- +(1, 0) -- +(1,-5) -- +(3, -5) -- (3); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (28) -- +(1,0) -- +(1,3) -- +(3,3) -- (50); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (31) -- +(1,0) -- +(1,-7) -- +(-3, -7) -- (8); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (35) -- +(-1,0) -- +(-1,11) -- (96); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (44) -- +(-1,0) -- +(-1,7) -- +(-3,7) -- (82); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (47) -- +(1,0) -- +(1,-3) -- +(5,-3) -- (30); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (52) -- +(-1, 0) -- +(-1, -1) -- +(-5,-1) -- +(-5,-5) -- +(-11,-5) -- (23); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (53) -- +(-1,0) -- +(-1,7) -- (94); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (59) -- +(-1, 0) -- +(-1,1) -- +(-3,1) -- +(-3,9) -- +(7, 9) -- (95); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (70) -- +(-1, 0) -- +(-1, 5) -- (91); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (76) -- +(-1, 0) -- +(-1,-1) -- +(-5,-1) -- +(-5,-5) -- +(-7,-5) -- (41); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (81) -- +(0, -1) -- +(3, -1) -- +(3, -3) -- (62); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (88) -- +(1, 0) -- +(1, -3) -- +(-1,-3) -- (67); + \draw[->, line width = 0.6mm, rounded corners = 2mm] + (98) -- +(0, 1.5) -- +(15.5, 1.5) -- +(15.5,-15) -- +(13, -15) -- (12); + \end{tikzpicture} + \end{center} + +\end{document} \ No newline at end of file diff --git a/Misc/Warm-Ups/strings.tex b/Misc/Warm-Ups/strings.tex index 76b166a..5fb17c5 100755 --- a/Misc/Warm-Ups/strings.tex +++ b/Misc/Warm-Ups/strings.tex @@ -9,7 +9,8 @@ \title{Warm-Up: Fuse Timers} -\subtitle{Prepared by \githref{Mark} on \today.} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today.} \begin{document} diff --git a/Misc/Warm-Ups/travellers.tex b/Misc/Warm-Ups/travellers.tex index 0de4c7e..39e222c 100755 --- a/Misc/Warm-Ups/travellers.tex +++ b/Misc/Warm-Ups/travellers.tex @@ -6,7 +6,8 @@ \usepackage{../../resources/macros} \title{Warm-Up: Travellers} -\subtitle{Prepared by \githref{Mark} on \today} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today} \begin{document} diff --git a/Misc/Warm-Ups/ttt.tex b/Misc/Warm-Ups/ttt.tex index 7479302..fd55c69 100755 --- a/Misc/Warm-Ups/ttt.tex +++ b/Misc/Warm-Ups/ttt.tex @@ -40,7 +40,8 @@ % The player who makes a three in a row of Xs (or black chips) wins the game \title{Warm-Up: Big-Tac-Toe} -\subtitle{Prepared by \githref{Mark} on \today.} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today.} \begin{document} diff --git a/Misc/Warm-Ups/wild ttt.tex b/Misc/Warm-Ups/wild ttt.tex index 26dc1e1..93e7052 100755 --- a/Misc/Warm-Ups/wild ttt.tex +++ b/Misc/Warm-Ups/wild ttt.tex @@ -16,7 +16,8 @@ \title{Warm-Up: Wild Tic-Tac-Toe} -\subtitle{Prepared by \githref{Mark} on \today.} +\uptitler{\smallurl{}} +\subtitle{Prepared by Mark on \today.} \begin{document} diff --git a/resources/macros.sty b/resources/macros.sty index b5e364f..e4e5cca 100644 --- a/resources/macros.sty +++ b/resources/macros.sty @@ -7,7 +7,7 @@ % Link to this repo, used in titles -\newcommand{\githref}[1]{\href{https://betalupi.com}{#1}} +\newcommand{\smallurl}{\small\texttt{\href{https://betalupi.com/handouts}{https://betalupi.com/handouts}}}