Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %
- % WEEKLY 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}{1.5ex}
- \newlength{\HourBondingBoxWPP}
- \setlength{\HourBondingBoxWPP}{1.5ex}
- % |<--textwidth-------------------------------------------------------------------------------->|
- % |<--DayFillerTotWidthWP------------------------------------------>|<--NotesFillerTotWidthWP-->|
- % |<--DayFillerWidthWP-------------------------->|<-DayFillerSepWP->|<--NotesFillerTotWidthWP-->|
- % |<-HourBondingBoxWP->|<-DayFillerRulerWidthWP->|<-DayFillerSepWP->|<--NotesFillerTotWidthWP-->|
- % |<-HourBondingBoxWP->|<-DayFillerRulerWidthWP->|<-HourBondingBoxWP1->|<-DayFillerRulerWidthWP->|<-DayFillerSepWP->|<--NotesFillerTotWidthWP-->|
- \newlength{\DayFillerTotWidthWP}
- \setlength{\DayFillerTotWidthWP}{( \textwidth * 2 ) /3}
- \newlength{\DayFillerSepWP}
- \setlength{\DayFillerSepWP}{0.5em}
- \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}[2]{%
- \makebox[\HourBondingBoxWP]{\hspace{\fill}#1\hspace{0.5em}}\vstrut{11.5pt}{\color{WriteBgMain}{\vrule}\hspace{0.5ex}{\vrule}\rule{(\DayFillerRulerWidthWP-18pt)/2}{0.5pt}\vrule}%
- \hspace*{\DayFillerSepWP}%
- \makebox[\HourBondingBoxWP]{\hspace{\fill}#2\hspace{0.5em}}\vstrut{11.5pt}{\color{WriteBgMain}{\vrule}\hspace{0.5ex}{\vrule}\rule{(\DayFillerRulerWidthWP-18pt)/2}{0.5pt}\vrule}%
- \hspace*{\DayFillerSepWP}%
- {\large{$\square$}\color{WriteBgMain}\rule{\NotesFillerTotWidthWP - 9pt}{0.5pt}}}
- % - as above but no <hour>
- \newcommand{\DayFillerRowEWP}{%
- \vstrut{11.5pt}%
- {\color{WriteBgMain}\rule{\DayFillerWidthWP}{0.5pt}}%
- \hspace*{\DayFillerSepWP}%
- {\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}}}
- % - then fill, with hour intervals
- \newcommand{\DayFillerWP}{%
- \DayFillerRowWP{\scriptsize{8}}{\scriptsize{14}}\break%
- \DayFillerRowWP{\scriptsize{9}}{\scriptsize{15}}\break%
- \DayFillerRowWP{\scriptsize{10}}{\scriptsize{16}}\break%
- \DayFillerRowWP{\scriptsize{11}}{\scriptsize{17}}\break%
- \DayFillerRowWP{\scriptsize{12}}{\scriptsize{18}}\break%
- \DayFillerRowWP{\scriptsize{13}}{\scriptsize{19}}\break%
- \DayFillerRowWP{}{\scriptsize{20}}\break%
- }
- % - Monthly Minicals, center the weekdays headline
- \newcommand{\myCentering}[1]{\hspace*{\fill}#1\hspace*{\fill}}
- % Monthly minicalendars on Weekly Planner
- % Column types I,J,K
- % - weeekdays
- \newcolumntype{I}{>{\hfill\bfseries\tiny}p{\MinicalColWidthWP}@{\extracolsep\fill}}
- % - Saturday
- \newcolumntype{J}{>{\hfill\bfseries\tiny\vstrut{0pt}\color{WeekendDay}}p{\MinicalColWidthWP}@{\extracolsep\fill}}
- % - Sunday (last column)
- \newcolumntype{K}{>{\hfill\bfseries\tiny\vstrut{0pt}\color{WeekendDay}}p{\MinicalColWidthWP}}
- \newcommand{\MonthMiniCalWP}[2]{%
- {\renewcommand{\arraystretch}{0.6}%
- \begin{tabular*}{\MinicalWidthWP}[t]{@{}*{5}{I}JK@{}}
- \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\baselineskip]{\DayFillerWidthWP}{1\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}{\bfseries\itshape #1\hrulefill}%
- \setlength{\unitlength}{1mm}%
- \begin{picture}(40,8)
- \put(20,0){\oval[2](40,8)[t]}
- \put(1,0){\large\ding{52}}
- \put(36,0){\large\ding{46}}
- \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\baselineskip]{\textwidth}{1\baselineskip}}}%
- \parbox[t]{\DayFillerTotWidthWP}{\large\bfseries\Notes\hrulefill}%
- \setlength{\unitlength}{1mm}%
- \begin{picture}(40,8)
- \parbox[t]{115pt}{\hrulefill}%
- % \put(20,0){\oval[2](40,8)[t]}
- % \put(1,0){\large\ding{46}}
- % \put(36,0){\large\ding{52}}
- \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{\textwidth}{0.5pt}} \\% & \vstrut{13.5pt}{\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}} \\
- {\color{WriteBgMain}\rule{\textwidth}{0.5pt}} \\% & {\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}} \\
- {\color{WriteBgMain}\rule{\textwidth}{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
- {\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{\Monday{} #2}\par
- \DayWP{\Tuesday{} #3}\par
- \DayWP{\Wednesday{} #4}\par
- \DayWP{\Thursday{} #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{\Friday{} #1}\par
- \DayWP{\Saturday{} #2}\par
- \DayWP{\Sunday{} #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}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement