Advertisement
Guest User

Untitled

a guest
Dec 29th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 7.84 KB | None | 0 0
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. %
  3. %       WEEKLY PLANNER
  4. %
  5. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  6.  
  7. % LAYOUT: Odd Page                          Even Page
  8. %         Week <N>                             <Month> <Year>
  9. %         Monday Day Month(abbr)    [Notes] || Friday Day Month(abbr)   [Notes]
  10. %         Tuesday Day Month(abbr)   [     ] || Saturday Day Month(abbr) [     ]
  11. %         Wednesday Day Month(abbr) [     ] || Sunday Day Month(abbr)   [     ]
  12. %         Thursday Day Month(abbr)  [     ] || Months MiniCals          Summary
  13.  
  14. % Settings-----------------------------------------------------------
  15.  
  16. % Space partitioning
  17. % - space for the hour entry at the beginning of the filler row
  18. \newlength{\HourBondingBoxWP}
  19. \setlength{\HourBondingBoxWP}{1.5ex}
  20. \newlength{\HourBondingBoxWPP}
  21. \setlength{\HourBondingBoxWPP}{1.5ex}
  22. %   |<--textwidth-------------------------------------------------------------------------------->|
  23. %   |<--DayFillerTotWidthWP------------------------------------------>|<--NotesFillerTotWidthWP-->|
  24. %   |<--DayFillerWidthWP-------------------------->|<-DayFillerSepWP->|<--NotesFillerTotWidthWP-->|
  25. %   |<-HourBondingBoxWP->|<-DayFillerRulerWidthWP->|<-DayFillerSepWP->|<--NotesFillerTotWidthWP-->|
  26. %   |<-HourBondingBoxWP->|<-DayFillerRulerWidthWP->|<-HourBondingBoxWP1->|<-DayFillerRulerWidthWP->|<-DayFillerSepWP->|<--NotesFillerTotWidthWP-->|
  27. \newlength{\DayFillerTotWidthWP}
  28. \setlength{\DayFillerTotWidthWP}{( \textwidth * 2 ) /3}
  29. \newlength{\DayFillerSepWP}
  30. \setlength{\DayFillerSepWP}{0.5em}
  31. \newlength{\DayFillerWidthWP}
  32. \setlength{\DayFillerWidthWP}{\DayFillerTotWidthWP - \DayFillerSepWP}
  33. \newlength{\DayFillerRulerWidthWP}
  34. \setlength{\DayFillerRulerWidthWP}{\DayFillerWidthWP - \HourBondingBoxWP}
  35. \newlength{\NotesFillerTotWidthWP}
  36. \setlength{\NotesFillerTotWidthWP}{\textwidth - \DayFillerTotWidthWP}
  37. % minicalendar space partitioning
  38. %   |<-DayFillerWidthWP-------------------------------------->|
  39. %   |<-PrevMonth->|<-sep->|<-CurrMonth->|<-sep->|<-NextMonth->|
  40. \newlength{\MinicalSepWP}
  41. \setlength{\MinicalSepWP}{2ex}
  42. \newlength{\MinicalWidthWP}
  43. \setlength{\MinicalWidthWP}{( \DayFillerWidthWP - 2 \MinicalSepWP ) / 3}
  44. %   column width in Minical
  45. \newlength{\MinicalColWidthWP}
  46. \setlength{\MinicalColWidthWP}{\MinicalWidthWP / 7}
  47.  
  48. % Day entry contents on Weekly Planner
  49. % - one row:
  50. %   <hour>________<-sep->___
  51. %   (#1 is the current hour, right aligned inside a makebox,  also using a vstrut to define heigh
  52. \newcommand{\DayFillerRowWP}[2]{%
  53.     \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}%
  54.     \hspace*{\DayFillerSepWP}%
  55.     \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}%
  56.     \hspace*{\DayFillerSepWP}%
  57.     {\large{$\square$}\color{WriteBgMain}\rule{\NotesFillerTotWidthWP - 9pt}{0.5pt}}}
  58. % - as above but no <hour>
  59. \newcommand{\DayFillerRowEWP}{%
  60.     \vstrut{11.5pt}%
  61.         {\color{WriteBgMain}\rule{\DayFillerWidthWP}{0.5pt}}%
  62.         \hspace*{\DayFillerSepWP}%
  63.         {\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}}}
  64. % - then fill, with hour intervals
  65. \newcommand{\DayFillerWP}{%
  66.     \DayFillerRowWP{\scriptsize{8}}{\scriptsize{14}}\break%
  67.     \DayFillerRowWP{\scriptsize{9}}{\scriptsize{15}}\break%
  68.     \DayFillerRowWP{\scriptsize{10}}{\scriptsize{16}}\break%
  69.     \DayFillerRowWP{\scriptsize{11}}{\scriptsize{17}}\break%
  70.     \DayFillerRowWP{\scriptsize{12}}{\scriptsize{18}}\break%
  71.     \DayFillerRowWP{\scriptsize{13}}{\scriptsize{19}}\break%
  72.     \DayFillerRowWP{}{\scriptsize{20}}\break%
  73.     }
  74.  
  75. % - Monthly Minicals, center the weekdays headline
  76. \newcommand{\myCentering}[1]{\hspace*{\fill}#1\hspace*{\fill}}
  77.  
  78. % Monthly minicalendars on Weekly Planner
  79. % Column types I,J,K
  80. % - weeekdays
  81. \newcolumntype{I}{>{\hfill\bfseries\tiny}p{\MinicalColWidthWP}@{\extracolsep\fill}}
  82. % - Saturday
  83. \newcolumntype{J}{>{\hfill\bfseries\tiny\vstrut{0pt}\color{WeekendDay}}p{\MinicalColWidthWP}@{\extracolsep\fill}}
  84. % - Sunday (last column)
  85. \newcolumntype{K}{>{\hfill\bfseries\tiny\vstrut{0pt}\color{WeekendDay}}p{\MinicalColWidthWP}}
  86.  
  87. \newcommand{\MonthMiniCalWP}[2]{%
  88.     {\renewcommand{\arraystretch}{0.6}%
  89.     \begin{tabular*}{\MinicalWidthWP}[t]{@{}*{5}{I}JK@{}}
  90.     \multicolumn{7}{>{\columncolor{HeadMainBg}}c}{\scriptsize\vstrut{1.1em}\bfseries\color{white}#1} \\
  91.     \rowcolor{HeadSubBg}%
  92.     \WkdayTblRowA{\myCentering} \\
  93.     #2
  94.     \end{tabular*}}}
  95.  
  96. % Day entry in Weekly Planner
  97. \newcommand{\DayWP}[1]{%
  98.     % gray shading bar
  99.     \makebox[0pt][l]{\smash[b]{\color{WriteBgSec}\rule[0\baselineskip]{\DayFillerWidthWP}{1\baselineskip}}}%
  100.     % Day (e.g. Monday 1 Jan)
  101.     % Notes: the parbox leaves the current insertion point (for the next box)
  102.     %        at the start of the Notes 'column' (also align text left)
  103.     %        so it joins with the Notes header
  104.     \parbox[t]{\DayFillerTotWidthWP}{\bfseries\itshape #1\hrulefill}%
  105.     \setlength{\unitlength}{1mm}%
  106.     \begin{picture}(40,8)
  107.         \put(20,0){\oval[2](40,8)[t]}
  108.         \put(1,0){\large\ding{52}}
  109.         \put(36,0){\large\ding{46}}
  110.     \end{picture}\hspace{\fill}\par%
  111.     \DayFillerWP%
  112.     \vspace{1ex}}
  113.  
  114. % Notes entry in Weekly Planner (right page, bottom section)
  115. \newcommand{\NotesWP}[6]{%
  116.     \makebox[0pt][l]{\smash[b]{\color{WriteBgSec}\rule[0\baselineskip]{\textwidth}{1\baselineskip}}}%
  117.     \parbox[t]{\DayFillerTotWidthWP}{\large\bfseries\Notes\hrulefill}%
  118.     \setlength{\unitlength}{1mm}%
  119.         \begin{picture}(40,8)
  120.         \parbox[t]{115pt}{\hrulefill}%
  121. %                \put(20,0){\oval[2](40,8)[t]}
  122. %                \put(1,0){\large\ding{46}}
  123. %                \put(36,0){\large\ding{52}}
  124.         \end{picture}\hspace{\fill}\par%
  125.     \renewcommand{\arraystretch}{0.55}%
  126.     \begin{tabular*}{\textwidth}[t]{@{}p{\DayFillerWidthWP}@{\hspace*{\DayFillerSepWP}}p{\NotesFillerTotWidthWP}@{}}
  127.     % the \color command mangles the spacing, typeset an \vstrut to fix and align with facing page
  128.     \vstrut{13.5pt}{\color{WriteBgMain}\rule{\textwidth}{0.5pt}} \\% & \vstrut{13.5pt}{\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}} \\
  129.     {\color{WriteBgMain}\rule{\textwidth}{0.5pt}} \\% & {\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}} \\
  130.     {\color{WriteBgMain}\rule{\textwidth}{0.5pt}} \\% & {\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}} \\
  131.                                                          & {\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}} \\
  132.     \smash[t]{\MonthMiniCalWP{#1}{#2}%
  133.     \hspace{\MinicalSepWP}%
  134.     \MonthMiniCalWP{#3}{#4}%
  135.     \hspace{\MinicalSepWP}%
  136.     \MonthMiniCalWP{#5}{#6}} &
  137.     {\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}}\break
  138.     {\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}}\break
  139.     {\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}}\break
  140.     {\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}}\break
  141.     {\color{WriteBgMain}\rule{\NotesFillerTotWidthWP}{0.5pt}}\break
  142.     \end{tabular*}}
  143.  
  144. % Left page
  145. \newcommand{\LeftPageWP}[5]{%
  146.     {\bfseries\Large\Week{} #1\vstrut[-0.2em]{1.2em}}\par
  147.     \nointerlineskip
  148.     \DayWP{\Monday{} #2}\par
  149.     \DayWP{\Tuesday{} #3}\par
  150.     \DayWP{\Wednesday{} #4}\par
  151.     \DayWP{\Thursday{} #5}\vspace*{\fill}%
  152.     \clearpage}
  153.  
  154. % Right page
  155.  
  156. \newcommand{\RightPageHeaderWP}[1]{%
  157.     {\hspace*{\fill}\bfseries\Large #1\vstrut[-0.2em]{1.2em}}\par%
  158.     \nointerlineskip}
  159.  
  160. \newcommand{\RightPageWP}[9]{%
  161.     \DayWP{\Friday{} #1}\par
  162.     \DayWP{\Saturday{} #2}\par
  163.     \DayWP{\Sunday{} #3}\par
  164.     \NotesWP{#4}{#5}{#6}{#7}{#8}{#9}\vspace*{\fill}%
  165.     \clearpage}
  166.  
  167. % Start--------------------------------------------------------------
  168.  
  169. %\LeftPageWP{1}{29 Dec}{30 Dec}{31 Dec}{1 Jan}
  170. %\RightPageHeaderWP{Dec 2008 -- Jan 2009}%
  171. %\RightPageWP{2 Jan}{3 Jan}{4 Jan}{December}{\MonthTblDecPrev}{January}{\MonthTblJan}{February}{\MonthTblFeb}
  172.  
  173. \input{DYI_Weekly_Planner_Tables}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement