-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexample-monthly.tex
116 lines (105 loc) · 3.05 KB
/
example-monthly.tex
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
\documentclass[12pt,twoside,openright]{article}
\usepackage[a5paper,margin=8mm,bindingoffset=7mm]{geometry}
\usepackage{tikz}
\usetikzlibrary{notebook}
\IfFileExists{local.tex}{
\input{local.tex}
}{}
\begin{document}
\pgfcalendarcalc[Month]{\year-\month-last+1}{\Month}
% \pgfcalendarcalc[Month]{2024-04-01}{\Month}
\pgfcalendarcalc[LastDay]{\MonthY-\MonthM-last}{\LastDay}
\nbkeys{
my notes/.style={fill elem=dotted,label={north east}{#1},},
my notes/.default=Notes,
}
\def\BlockMonth{
\ifnum\DayOfMonth=0\relax
\notebookpage{
calendar/next week/.style={},
calendar=\Month,
every label/.append style={font=\Huge},
space={[dotted,bottom]4cm},
fill elem={},
label={center}{
\Huge \MonthY\\\pgfcalendarmonthname{\MonthM}
}
}
\notebookpage{
month list={\ThisDay}{Memorable/3,X/.33,Y/.33,Z/.33,/1},
columns={X/2,Y/2,Z/2},
}
%\notebookpage{
% box={[fill=gray!50,draw]
% \Huge Backlog\hfill \pgfcalendarmonthname{\M} - \Y},
% columns={[fill=gray!30,draw]Project/1,Task/3,Prio{/}State/1,Due/1},
% fill elem={draw,lines},
% vline/.list={\elemwidth/6,\elemwidth/6*4,\elemwidth/6*5},
%}
%\notebookpage{my notes}
\fi
}
\def\BlockWeek{
\ifnum\WD=0\relax
\pgfcalendarcalc[Sunday]{\ThisDay+7}{\Sunday}
\notebookpage{
box={\textbf{This Week} \hfill \ThisDay\ \ --\ \ \Sunday\hspace{1em}},
column divider={1.3pt},
columns={[fill=gray!30,draw]Project/1,Task/3,Prio{/}State/1,Due/1},
elem lines=12,
vline/.list={\elemwidth/6,\elemwidth/6*4,\elemwidth/6*4.5,\elemwidth/6*5},
box={[fill=gray!30,draw]\textbf{Ideas/Tasks to Review}},
elem lines=8,
vline/.list={\elemwidth/6,\elemwidth/6*5},
}
\notebookpage{
calendar=\ThisDay,
my notes
}
\fi
}
\def\BlockWeekday{
\ifnum\WD<5\relax
\cleardoublepage
\notebookpage{
columns={%
{\textbf{\pgfcalendarweekdayname{\WD}, \D.\M.\Y}}/5,%
/1%
},
columns={[draw]\color{gray}W/2,\color{gray}H/2,\color{gray}R/2},
%space={[bottom]1mm},
todo={[draw]2},
my notes={},
time codes={7,...,21},
vline={[gray,dash pattern=on 2.5mm off 2.5mm, dash phase=-1.25mm, line width=0.5\pgflinewidth]40mm},
}
\notebookpage{my notes}
\fi
}
\def\BlockWeekend{
\ifnum\WD=4\relax
\cleardoublepage
\fi
\ifnum\WD>4\relax
\notebookpage{
columns={%
{\textbf{\pgfcalendarweekdayname{\WD}, \D.\M.\Y}}/5
/1%
},
columns={[draw]\color{gray}W/2,\color{gray}H/2,\color{gray}R/2},
my notes
}
\fi
}
\overfullrule=5mm
\foreach \DayOfMonth [parse=true] in {0,...,\LastDayD-1} {
\pgfcalendarcalc{\Month+\DayOfMonth}{\ThisDay}
\BlockMonth
\BlockWeek
\BlockWeekday
\BlockWeekend
}
\notebookpage{my notes}
% \notebookpage{my notes}
% \notebookpage{my notes}
\end{document}