From 6197bdb2204037621e8ead2c4298ce670bdbc0b2 Mon Sep 17 00:00:00 2001 From: Mark Date: Wed, 22 Jan 2025 21:18:07 -0800 Subject: [PATCH] Convert "fmod" to typst --- src/Warm-Ups/fmod/main.tex | 22 ---------------------- src/Warm-Ups/fmod/main.typ | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 22 deletions(-) delete mode 100755 src/Warm-Ups/fmod/main.tex create mode 100644 src/Warm-Ups/fmod/main.typ diff --git a/src/Warm-Ups/fmod/main.tex b/src/Warm-Ups/fmod/main.tex deleted file mode 100755 index 693d94e..0000000 --- a/src/Warm-Ups/fmod/main.tex +++ /dev/null @@ -1,22 +0,0 @@ -\documentclass[ - solutions, - hidewarning, - singlenumbering, - nopagenumber -]{../../../lib/tex/ormc_handout} -\usepackage{../../../lib/tex/macros} - - -\title{Warm-Up: \texttt{fmod}} -\uptitler{\smallurl{}} -\subtitle{Prepared by Mark on \today.} - -\begin{document} - - \maketitle - - \problem{} - I'm sure you're all familiar with how \texttt{mod(a, b)} and \texttt{remainder(a, b)} work with integers. \par - Devise an equivalent for floats (i.e, real numbers). - -\end{document} \ No newline at end of file diff --git a/src/Warm-Ups/fmod/main.typ b/src/Warm-Ups/fmod/main.typ new file mode 100644 index 0000000..752e2a0 --- /dev/null +++ b/src/Warm-Ups/fmod/main.typ @@ -0,0 +1,16 @@ +#import "@local/handout:0.1.0": * + +#show: doc => handout( + doc, + quarter: link( + "https://betalupi.com/handouts", + "betalupi.com/handouts", + ), + + title: [Warm-Up: `fmod`], + by: "Mark", +) + +#problem() +I'm sure you're all familiar with how `mod(a, b)` and `remainder(a, b)` \ work when `a` and `b` are integers. +Devise an equivalent for floats (i.e, real numbers).