Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
5bd1ffb
creates full calendar w/ weeks numbered; shades days with the word exam
ClarissaMilligan Jul 24, 2026
010afb4
custom color coding added
ClarissaMilligan Jul 24, 2026
79f3802
fixed so works if no color codes provided
ClarissaMilligan Jul 24, 2026
ced71eb
added ability to gray out holidays
ClarissaMilligan Jul 24, 2026
36894b4
renamed to shading and allowed user to pick color
ClarissaMilligan Jul 24, 2026
b7f9daf
fixed days of month not flowing correctly; added ability to have mult…
ClarissaMilligan Jul 24, 2026
1b3e85b
removed some now un-needed code
ClarissaMilligan Jul 24, 2026
f2545c5
fixed issue where shade conditional was checking for contains instead…
ClarissaMilligan Jul 24, 2026
907367e
fixed issue where numbers were only bolded if other text was present
ClarissaMilligan Jul 24, 2026
272bb16
added ability to add assignments and other important dates
ClarissaMilligan Jul 24, 2026
0ae8beb
clean-up; resize box heights
ClarissaMilligan Jul 24, 2026
73f8377
fix that shading didnt work without a param
ClarissaMilligan Jul 24, 2026
1ae9455
rename header to draw-calendar; draw-calendar can now take string months
ClarissaMilligan Jul 27, 2026
3892cf6
fixed shadings to have assertions and take string months
ClarissaMilligan Jul 27, 2026
7081548
fully comment, add more assertions
ClarissaMilligan Jul 27, 2026
1acf039
add import to lib
ClarissaMilligan Jul 27, 2026
5609dff
now supports week overviews
ClarissaMilligan Jul 28, 2026
a7a6cf0
fixed week # offset
ClarissaMilligan Jul 28, 2026
ed05ff1
upped overview font size 1pt
ClarissaMilligan Jul 28, 2026
42760a5
fix leap year handling
ClarissaMilligan Jul 28, 2026
645dc1c
added function to help generate assignments that recur
ClarissaMilligan Jul 28, 2026
5649bd8
"privated" some functions; made the delimeter a global variable
ClarissaMilligan Jul 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions examples/calendar_example.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
#import "../src/calendars.typ"

#show: calendars.init

#let color-coding = (
("zyBooks", rgb("#10a178")),
("lab", rgb("#104fa1")),
("proj", rgb("#a19e10")),
("QUIZ", rgb("#a15d10")),
("exam", rgb("#a11010")),
("FINAL", rgb("#a11010")),
("MIDTERM", rgb("#a11010"))
)

#let non-recurring = (
(9, 2, "proj #1 opens"),
(9, 20, "proj #1 due"),
(9, 23, "proj #2 opens"),
(10, 18, "proj #2 due"),
(10, 21, "proj #3 opens"),
("November", 8, "proj #3 due"),
(11, 11, "proj #4 opens"),
(11, 29, "proj #4 due"),

(9, 16, "QUIZ #1"),
(10, 9, "MIDTERM"),
(11, 4, "QUIZ #2"),
(12, 11, "FINAL"),
)

#let zy = calendars.construct-recurring-dates(
("aug", 30),
11,
"zyBooks",
dates-to-skip: ((9, 6), (11, 15))
)

#let lab = calendars.construct-recurring-dates(
("sep", 6),
12,
"lab",
dates-to-skip: ((10, 18), (11, 29))
)
#let due-dates = zy + lab + non-recurring

#let holiday-encodings = ((
(9, 7),
("nov", 11),
(11, 25),
(11, 26),
(11, 27)
),
gray
)

#let finals-encodings = ((
(12, 7),
(12, 8),
("dec", 9),
(12, 10),
("december", 11)
),
rgb("#f59998")
)

#let shading-encodings = (
holiday-encodings,
finals-encodings
)

#let overviews = (
(1, "INTRO AND OOP REVIEW"),
(2, "CONTINUED REVIEW, ABSTRACT CLASSES, INTERFACES"),
(3, "DYNAMIC DISPATCH, INNER CLASSES, LAMBDAS"),
(4, "GENERICS"),
(5, "GENERICS, COLLECTIONS, LIST, ADT INTRO"),
(6, "ADTS, LISTS, STACKS, QUEUES, MAPS, SETS"),
(7, "MIDTERM WEEK"),
(8, "GUI"),
(9, "GUI"),
(10, "RECURSION"),
(11, "RECURSION"),
(12, "SEARCHING, SORTING, THREADING"),
(13, "THREADING"),
(14, "THANKSGIVING BREAK"),
(15, "CATCH-UP, INSTRUCTOR CHOSEN, REVIEW"),
(16, "FINALS WEEK")
)

#calendars.draw-calendar(
("aug", "dec"),
(23, 12),
title: "CS-1181 FA26",
color-codes: color-coding,
shading: shading-encodings,
due-dates: due-dates,
week-overviews: (overviews, rgb("#305e61")),
)
3 changes: 2 additions & 1 deletion lib.typ
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#import "src/exams.typ"
#import "src/labs.typ"
#import "src/labs.typ"
#import "src/calendars.typ"
Binary file modified manual/manual.pdf
Binary file not shown.
9 changes: 9 additions & 0 deletions manual/manual.typ
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
read("/src/labs.typ"),
label-prefix: "labs-" // avoid name collisions
)
#let calendar-docs = tidy.parse-module(
read("/src/calendars.typ"),
label-prefix: "calendars-" // avoid name collisions
)

= Exams Module
#tidy.show-module(exam-docs, style: tidy.styles.default)
Expand All @@ -19,3 +23,8 @@

= Labs Module
#tidy.show-module(lab-docs, style: tidy.styles.default)

#pagebreak()

= Calendars Module
#tidy.show-module(calendar-docs, style: tidy.styles.default)
Loading