From 48924badeaf69130fc85e70d1dcc940fd89f29e4 Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 23 Jan 2025 13:14:05 -0800 Subject: [PATCH] Convert "Gallery" to typst --- src/Warm-Ups/Gallery/main.tex | 121 ---------------------------------- src/Warm-Ups/Gallery/main.typ | 103 +++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+), 121 deletions(-) delete mode 100755 src/Warm-Ups/Gallery/main.tex create mode 100644 src/Warm-Ups/Gallery/main.typ diff --git a/src/Warm-Ups/Gallery/main.tex b/src/Warm-Ups/Gallery/main.tex deleted file mode 100755 index e4541ac..0000000 --- a/src/Warm-Ups/Gallery/main.tex +++ /dev/null @@ -1,121 +0,0 @@ -\documentclass[ - solutions, - singlenumbering, - nopagenumber -]{../../../lib/tex/ormc_handout} -\usepackage{../../../lib/tex/macros} - - -\makeatletter -\newcommand{\thisone}{ - \if@solutions - {\color{red} $\Leftarrow$ \texttt{this one}} - \else\fi -} - -\title{Warm-Up: The Gallery} -\uptitler{\smallurl{}} -\subtitle{Prepared by Mark on \today} - -\begin{document} - - \maketitle - - A museum curator is arranging seven photographs on a gallery wall in accordance with the photographer's requirements. - They are titled as follows: Fence, Gardenias, Hibiscus, Irises, Katydid, Lotus, and Magnolia. - - The photograph's requirements are as follows: - \begin{itemize} - \item Gardenias must be immediately before Katydid. - \item Hibiscus must be somewhere before Katydid but cannot be the first photograph. - \item Irises and Lotus must be next to one another. - \item Magnolia must be one of the first three photographs. - \item Fence must be either first or seventh. - \end{itemize} - - \problem{} - Which of the below could be a valid ordering? \par - \note[Note]{We denote each painting by the first letter of its title.} - \begin{itemize} - \item \texttt{FHGMKIL} - \item \texttt{HMGKILF} - \item \texttt{ILMHGKF} \thisone{} - \item \texttt{LMIHGKF} - \item \texttt{MFHGKLI} - \end{itemize} - \vfill - - \problem{} - If Irises is immediately before Gardenias, which of the following could be true? - \begin{itemize} - \item Gardenias is fourth - \item Hibiscus is fourth - \item Irises is third - \item Lotus is second - \item Magnolia is third \thisone{} - \end{itemize} - \vfill - - \problem{} - The ordering of the photographs is fully determined if... - \begin{itemize} - \item Gardenias is fourth - \item Hibiscus is second - \item Irises is second - \item Lotus is first \thisone{} - \item Magnolia is third - \end{itemize} - - \vfill - \pagebreak - - \problem{} - If Magnolia is second, what CANNOT be true? - \begin{itemize} - \item Hibiscus is third - \item Hibiscus is fourth \thisone{} - \item Hibiscus is fifth - \item Gardenias is fourth - \item Gardenias is sixth - \end{itemize} - - \vfill - - \problem{} - Katydid cannot be in which position? - \begin{itemize} - \item Third \thisone{} - \item Fourth - \item Fifth - \item Sixth - \item Seventh - \end{itemize} - \vfill - - \problem{} - If Gardenias is fourth, what must be true? - \begin{itemize} - \item Fence is first \thisone{} - \item Hibiscus is third - \item Irises is seventh - \item Magnolia is first - \item Magnolia is second - \end{itemize} - \vfill - - \problem{} - Which one of the following, - if substituted for the second condition, - would have the same effect in determining the - arrangement of the photographs? - - \begin{itemize} - \item If Fence is seventh, Hibiscus is second - \item Gardenias is somewhere after Hibiscus, and either Fence or Magnolia is first - \item Hibiscus must be somewhere between the first and sixth photographs - \item Unless Hibiscus is second, it must be somewhere between Magnolia and Gardenias \thisone{} - \item Katydid is somewhere after Hibiscus, which must be after Fence. - \end{itemize} - \vfill - \pagebreak -\end{document} \ No newline at end of file diff --git a/src/Warm-Ups/Gallery/main.typ b/src/Warm-Ups/Gallery/main.typ new file mode 100644 index 0000000..10027b8 --- /dev/null +++ b/src/Warm-Ups/Gallery/main.typ @@ -0,0 +1,103 @@ +#import "@local/handout:0.1.0": * + +#show: handout.with( + title: [Warm-Up: The Gallery], + by: "Mark", +) + +#let thisone = if_solutions( + text(fill: ored, [#sym.arrow.l.double.long `this one`]), +) + +A museum curator is arranging seven photographs on a gallery wall in accordance with the photographer's requirements. +They are titled as follows: Fence, Gardenias, Hibiscus, Irises, Katydid, Lotus, and Magnolia. + +The photograph's requirements are as follows: +#v(2mm) +- Gardenias must be immediately before Katydid. +- Hibiscus must be somewhere before Katydid but cannot be the first photograph. +- Irises and Lotus must be next to one another. +- Magnolia must be one of the first three photographs. +- Fence must be either first or seventh. + + +#problem() +Which of the below could be a valid ordering? \ +#note([We denote each painting by the first letter of its title.], type: "Note") +- `FHGMKIL` +- `HMGKILF` +- `ILMHGKF` #thisone +- `LMIHGKF` +- `MFHGKLI` + +#v(1fr) + +#problem() +If Irises is immediately before Gardenias, which of the following could be true? +- Gardenias is fourth +- Hibiscus is fourth +- Irises is third +- Lotus is second +- Magnolia is third #thisone + +#v(1fr) + +#problem() +The ordering of the photographs is fully determined if... +- Gardenias is fourth +- Hibiscus is second +- Irises is second +- Lotus is first #thisone +- Magnolia is third + + +#v(1fr) +#pagebreak() + + + +#problem() +If Magnolia is second, what CANNOT be true? +- Hibiscus is third +- Hibiscus is fourth #thisone +- Hibiscus is fifth +- Gardenias is fourth +- Gardenias is sixth + + +#v(1fr) + +#problem() +Katydid cannot be in which position? +- Third #thisone +- Fourth +- Fifth +- Sixth +- Seventh + +#v(1fr) + +#problem() +If Gardenias is fourth, what must be true? +- Fence is first #thisone +- Hibiscus is third +- Irises is seventh +- Magnolia is first +- Magnolia is second + +#v(1fr) + +#problem() +Which one of the following, +if substituted for the second condition, +would have the same effect in determining the +arrangement of the photographs? + +- If Fence is seventh, Hibiscus is second +- Gardenias is somewhere after Hibiscus, and either Fence or Magnolia is first +- Hibiscus must be somewhere between the first and sixth photographs +- Unless Hibiscus is second, it must be somewhere between Magnolia and Gardenias \ + #if_solutions(text(fill: ored, [#sym.arrow.t.double `this one`])) +- Katydid is somewhere after Hibiscus, which must be after Fence. + +#v(1fr)