-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tex
More file actions
55 lines (40 loc) · 1.09 KB
/
main.tex
File metadata and controls
55 lines (40 loc) · 1.09 KB
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
\documentclass{guidednotes}
\geometry{showframe}
\usepackage{adjustbox}
\setauthor{Kelvin Chan}{University of Western Ontario}
\setcourse{Calculus}{Calc}{1000}{Calculus I}
\setterm{2025-09-03}{2025-12-05}{reading week}
\begin{document}
\begin{week}{MONTH X to X}
\section{Introduction}
The first line is prefixed with nothing.
\blanklines{3}
The second line is prefixed with medskip.
\blanklines{3}
There are some lines left.
There are some lines left.
\blanklinesfill
\end{week}
\begin{week}{MONTH X to X}
placeholder
\end{week}
% DO NOT REMOVE
\backmatter{}
\begin{luacode}
local offset = titlepage + frontmatter
local prev = offset + 1
for i, pagenum in pairs(weeks) do
local f = io.open(string.format("./publish/week%d.tex", i), "w")
local a = prev
local b = pagenum + offset - 1
local s = string.format("\\includepdf[pages=%d-%d]{../build/main.pdf}", a, b)
f:write("\\documentclass{article}")
f:write("\\usepackage{pdfpages}")
f:write("\\begin{document}")
f:write(s)
f:write("\\end{document}")
f:close()
prev = b + 1
end
\end{luacode}
\end{document}