-
Notifications
You must be signed in to change notification settings - Fork 1
/
local.sty
167 lines (132 loc) · 3.26 KB
/
local.sty
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
\usepackage{fontspec}
\defaultfontfeatures{Ligatures={TeX}}
\setmainfont{TeX Gyre Pagella}
\newfontfamily\dejaVuSans{DejaVu Sans}
% === June ===
\SetPhoto[bleed=3mm, file={obscure-crop}, yOffset=-150mm]{June}
\SetQuote[yOffset=-3mm]{June}{%
\centering
\setlength{\parskip}{10pt}%
\Large
\color{black!80}
I shall have less to say,\\
But I shall be gone.
\textit{The Sound of the Trees} by Robert Frost
}
\SetCalendar[bg/.style={opacity=1}]{June}
\SetEvents{June}{%
\parseMonthMarksDayTextUsing{./data/events.csv}%
\parseMonthMarksDayText%
\parseMonthMarksNote%
}{%
\raggedright
\parseMonthEvents[%
filter pred = hasNote,
format cmd = {
\textsuperscript{\eMark}~\eMonthShort~\eDay:\space%
\eNote\ifnumless{\eIdx}{\eMaxIdx}{,\space}{}%
},
]%
}
% === July ===
\SetPhoto[bleed=3mm, file={obscure-crop}]{July}
\SetQuote[%
xOffset=0.5\linewidth - 0.5\paperwidth -3mm,
yOffset=-20mm,
]{July}{%
\begin{tikzpicture}%
\node [
fill=white, opacity=0.6, minimum width={\paperwidth + 3mm},
minimum height=30mm] {};%
\node [] {%
\begin{minipage}{\paperwidth + 3mm}%
\centering
\Large
\color{white}
I shall have less to say,\\
But I shall be gone.
\textit{The Sound of the Trees} by Robert Frost
\end{minipage}%
};
\end{tikzpicture}%
}
\SetCalendar[bg/.style={opacity=1}]{July}
\SetEvents{July}{%
\parseMonthMarksDayTextUsing{./data/events.csv}%
\parseMonthMarksDayText%
\parseMonthMarksNote%
}{%
\raggedright
\parseMonthEvents[%
filter pred = hasNote,
format cmd = {
\textsuperscript{\eMark}~\eMonthShort~\eDay:\space%
\eNote\ifnumless{\eIdx}{\eMaxIdx}{,\space}{}%
},
]%
}
% === August ===
\SetPhoto[bleed=3mm, file={obscure-crop}]{August}
\SetQuote[xOffset=-5mm, yOffset=-20mm]{August}{%
\raggedright
\setlength{\parskip}{10pt}%
\Large
\color{white}
I shall set forth for somewhere,\\
I shall make the reckless choice\\
Some day when they are in voice\\
And tossing so as to scare\\
The white clouds over them on.\\
I shall have less to say,\\
But I shall be gone.
\textit{The Sound of the Trees} by Robert Frost
}
\SetCalendar[bg/.style={opacity=0.8}]{August}
\SetEvents{August}{%
\parseMonthMarksDayTextUsing{./data/events.csv}%
\parseMonthMarksDayText%
\parseMonthMarksNote%
}{%
\raggedright
\parseMonthEvents[%
filter pred = hasNote,
format cmd = {
\textsuperscript{\eMark}~\eMonthShort~\eDay:\space%
\eNote\ifnumless{\eIdx}{\eMaxIdx}{,\space}{}%
},
]%
}
% === Year Planner ===
\newcommand\plannerYearFmt{\fontsize{26}{26}\selectfont\color{orangegold}}
\newlength\plannerNotesSep
\setlength{\plannerNotesSep}{3mm}
\newcommand\preYearPlannerPageHook{%
\renewcommand\monthMarkFmt{\fontsize{7}{7}\selectfont}%
\setlength{\markNumberAbove}{-9pt}%
\setlength{\markNumberRight}{-6pt}%
\setlength{\markDayTextAbove}{-11pt}%
\setlength{\markDayTextRight}{-6pt}%
}
\newcommand\postYearPlannerPageHook{%
\setlength{\markNumberAbove}{-10pt}%
\setlength{\markNumberRight}{-3pt}%
\setlength{\markDayTextAbove}{-10pt}%
\setlength{\markDayTextRight}{-3pt}%
}
\newcommand\printPlannerTitle{\plannerYearFmt \CalendarYear}
\newcommand\YearPlannerPage{%
\newpage
\ifvarnishmask
\mbox{}
\else
\preYearPlannerPageHook
{\centering
{\printPlannerTitle}
\vspace*{7mm}
\YearPlannerPortrait
\vspace*{\plannerNotesSep}
\plannerEvents
}
\postYearPlannerPageHook
\fi
}