-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDYI_Weekly_Planner.tex
163 lines (148 loc) · 6.97 KB
/
DYI_Weekly_Planner.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
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% WEERKLY PLANNER
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LAYOUT: Odd Page Even Page
% Week <N> <Month> <Year>
% Monday Day Month(abbr) [Notes] || Friday Day Month(abbr) [Notes]
% Tuesday Day Month(abbr) [ ] || Saturday Day Month(abbr) [ ]
% Wednesday Day Month(abbr) [ ] || Sunday Day Month(abbr) [ ]
% Thursday Day Month(abbr) [ ] || Months MiniCals Summary
% Settings-----------------------------------------------------------
% Space partitioning
% - space for the hour entry at the beginning of the filler row
\newlength{\HourBondingBoxWP}
\setlength{\HourBondingBoxWP}{2.5ex}
% |<--textwidth-------------------------------------------------------------------------------->|
% |<--DayFillerTotWidthWP------------------------------------------>|<--NotesFillerTotWidthWP-->|
% |<--DayFillerWidthWP-------------------------->|<-DayFillerSepWP->|<--NotesFillerTotWidthWP-->|
% |<-HourBondingBoxWP->|<-DayFillerRulerWidthWP->|<-DayFillerSepWP->|<--NotesFillerTotWidthWP-->|
\newlength{\DayFillerTotWidthWP}
\setlength{\DayFillerTotWidthWP}{( \textwidth * 2 ) /3}
\newlength{\DayFillerSepWP}
\setlength{\DayFillerSepWP}{1em}
\newlength{\DayFillerWidthWP}
\setlength{\DayFillerWidthWP}{\DayFillerTotWidthWP - \DayFillerSepWP}
\newlength{\DayFillerRulerWidthWP}
\setlength{\DayFillerRulerWidthWP}{\DayFillerWidthWP - \HourBondingBoxWP}
\newlength{\NotesFillerTotWidthWP}
\setlength{\NotesFillerTotWidthWP}{\textwidth - \DayFillerTotWidthWP}
% minicalendar space partitioning
% |<-DayFillerWidthWP-------------------------------------->|
% |<-PrevMonth->|<-sep->|<-CurrMonth->|<-sep->|<-NextMonth->|
\newlength{\MinicalSepWP}
\setlength{\MinicalSepWP}{2ex}
\newlength{\MinicalWidthWP}
\setlength{\MinicalWidthWP}{( \DayFillerWidthWP - 2 \MinicalSepWP ) / 3}
% column width in Minical
\newlength{\MinicalColWidthWP}
\setlength{\MinicalColWidthWP}{\MinicalWidthWP / 7}
% Day entry contents on Weekly Planner
% - one row:
% <hour>________<-sep->___
% (#1 is the current hour, right aligned inside a makebox, also using a vstrut to define heigh
\newcommand{\DayFillerRowWP}[1]{%
\makebox[\HourBondingBoxWP]{\hspace{\fill}\hspace{0.5em}}\vstrut{14pt}{\color{WriteBgMain}\rule{\DayFillerRulerWidthWP}{0.5pt}}%
\hspace*{\DayFillerSepWP}%
{\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}}}
% - as above but no <hour>
\newcommand{\DayFillerRowEWP}{%
\vstrut{11.5pt}%
{\color{WriteBgMain}\rule{\DayFillerWidthWP}{0.8pt}}%
\hspace*{\DayFillerSepWP}%
{\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.8pt}}}
% - then fill, with hour intervals
\newcommand{\DayFillerWP}{%
\DayFillerRowWP{10}\break%
\DayFillerRowWP{12}\break%
\DayFillerRowWP{2}\break%
\DayFillerRowWP{4}\break%
\DayFillerRowWP{6}\break%
\DayFillerRowWP{8}}
% Monthly minicalendars on Weekly Planner
% Column types I,J,K
% - weeekdays
\newcolumntype{I}{>{\hspace*{\fill}\bfseries\tiny}p{\MinicalColWidthWP}<{\hspace*{\fill}}@{\extracolsep\fill}}
% - Saturday
\newcolumntype{J}{>{\hspace*{\fill}\bfseries\tiny\vstrut{0pt}\color{WeekendDay}}p{\MinicalColWidthWP}<{\hspace*{\fill}}@{\extracolsep\fill}}
% - Sunday (last column)
\newcolumntype{K}{>{\hspace*{\fill}\bfseries\tiny\vstrut{0pt}\color{WeekendDay}}p{\MinicalColWidthWP}<{\hspace*{\fill}}}
% - Monthly Minicals, center the weekdays headline
\newcommand{\myCentering}[1]{\hspace*{\fill}#1\hspace*{\fill}}
\newcommand{\MonthMiniCalWP}[2]{%
{\renewcommand{\arraystretch}{0.6}%
\begin{tabular*}{\MinicalWidthWP}[t]{@{}K*{5}{I}J@{}}
\multicolumn{7}{>{\columncolor{HeadMainBg}}c}{\scriptsize\vstrut{1.1em}\bfseries\color{white}#1} \\
\rowcolor{HeadSubBg}%
\WkdayTblRowA{\myCentering} \\
#2
\end{tabular*}}}
% Day entry in Weekly Planner
\newcommand{\DayWP}[1]{%
% gray shading bar
\makebox[0pt][l]{\smash[b]{\color{WriteBgSec}\rule[-0.3\baselineskip]{\DayFillerWidthWP}{1.4\baselineskip}}}%
% Day (e.g. Monday 1 Jan)
% Notes: the parbox leaves the current insertion point (for the next box)
% at the start of the Notes 'column' (also align text left)
% so it joins with the Notes header
\parbox[t]{\DayFillerTotWidthWP}{\hspace{3pt}\large #1\hrulefill}%
\setlength{\unitlength}{1mm}%
\begin{picture}(40,8)
\put(20,0){\oval[2](40,8)[t]}
\put(1,0){\large\ding{50}}
\put(36,0){\large\ding{51}}
\end{picture}\hspace{\fill}\par%
\DayFillerWP%
\vspace{1ex}}
% Notes entry in Weekly Planner (right page, bottom section)
\newcommand{\NotesWP}[6]{%
\makebox[0pt][l]{\smash[b]{\color{WriteBgSec}\rule[-0.3\baselineskip]{\DayFillerWidthWP}{1.4\baselineskip}}}%
\parbox[t]{\DayFillerTotWidthWP}{\hspace{3pt}\large\Notes\hrulefill}%
\setlength{\unitlength}{1mm}%
\begin{picture}(40,8)
\put(20,0){\oval[2](40,8)[t]}
\put(1,0){\large\ding{50}}
\put(36,0){\large\ding{51}}
\end{picture}\hspace{\fill}\par%
\renewcommand{\arraystretch}{0.55}%
\begin{tabular*}{\textwidth}[t]{@{}p{\DayFillerWidthWP}@{\hspace*{\DayFillerSepWP}}p{\NotesFillerTotWidthWP}@{}}%
% the \color command mangles the spacing, typeset an \vstrut to fix and align with facing page
\vstrut{13.5pt}{\color{WriteBgMain}\rule{\DayFillerWidthWP}{0.5pt}} & \vstrut{13.5pt}{\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}} \\
{\color{WriteBgMain}\rule{\DayFillerWidthWP}{0.5pt}} & {\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}} \\
{\color{WriteBgMain}\rule{\DayFillerWidthWP}{0.5pt}} & {\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}} \\
& {\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}} \\
\smash[t]{\MonthMiniCalWP{#1}{#2}%
\hspace{\MinicalSepWP}%
\MonthMiniCalWP{#3}{#4}%
\hspace{\MinicalSepWP}%
\MonthMiniCalWP{#5}{#6}} &
{\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}}\break
{\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}}\break
{\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}}\break
{\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}}\break
\end{tabular*}}
% Left page
\newcommand{\LeftPageWP}[5]{%
{\bfseries\Large\Week{} #1\vstrut[-0.2em]{1.2em}}\par
\nointerlineskip
\DayWP{\Sunday{} #2}\par
\DayWP{\Monday{} #3}\par
\DayWP{\Tuesday{} #4}\par
\DayWP{\Wednesday{} #5}\vspace*{\fill}%
\clearpage}
% Right page
\newcommand{\RightPageHeaderWP}[1]{%
{\hspace*{\fill}\bfseries\Large #1\vstrut[-0.2em]{1.2em}}\par%
\nointerlineskip}
\newcommand{\RightPageWP}[9]{%
\DayWP{\Thursday{} #1}\par
\DayWP{\Friday{} #2}\par
\DayWP{\Saturday{} #3}\par
\NotesWP{#4}{#5}{#6}{#7}{#8}{#9}\vspace*{\fill}%
\clearpage}
% Start--------------------------------------------------------------
%\LeftPageWP{1}{29 Dec}{30 Dec}{31 Dec}{1 Jan}
%\RightPageHeaderWP{Dec 2008 -- Jan 2009}%
%\RightPageWP{2 Jan}{3 Jan}{4 Jan}{December}{\MonthTblDecPrev}{January}{\MonthTblJan}{February}{\MonthTblFeb}
\input{DYI_Weekly_Planner_Tables}