\documentclass[twoside]{book}
\usepackage[
	letterpaper,
	bindingoffset=15mm,
	textheight=250mm,
	textwidth=175mm,
	top=14mm,
	footskip=5mm,
	marginparwidth=0mm,
	marginparsep=0mm
	]{geometry}

% Prettier fonts
\usepackage[nott]{kpfonts}

% Adjusting things
% \usepackage{microtype}

% Two-columns in introduction
\usepackage{multicol}
\setlength{\columnsep}{8mm}

% Use tab stops when we need to
\usepackage{tabto}

% Use a better tabular system (2022.12.26 - currently on "Habits" pages)
\usepackage{tabularray}
\usepackage{ninecolors}

\author{Kenneth John Odle}

% Put page numbers in bottom center
\pagestyle{plain}

% Add our copyright image
\usepackage{graphicx}
\graphicspath{ {./images/} }

% https://texfaq.org/FAQ-repeat-num
% https://ctan.org/pkg/forloop
% Output a variable value: https://sodocumentation.net/latex/topic/9224/counters--if-statements-and-loops-with-latex
\usepackage{forloop}

% Draw circles, but redefine the command first
\usepackage{wasysym}
\newcommand\kcir{{\large \Circle ~}}

% Draw squares on Finances column
\newcommand{\kfin}{\texttt{\hfill {\Large $\Box$}\,AP {\Large $\Box$}\,Pd {\Large $\Box$}\,X}}

% Week at top of each page
\def\kyear{2023}
\newcounter{ct}
\newcommand{\kweek}{
\begin{tblr}{
	width=175mm,
	colspec={ X[1,c] X[1,c] X[7,c] },
	vlines = {0.5pt,solid},
	hlines = {0.5pt,solid},
	rows={5mm, m, rowsep=1.5pt}
	}
	\textbf{Week \thect} & \kyear & Jan\hphantom{wi}Feb\hphantom{wi}Mar\hphantom{wi}Apr\hphantom{wi}May\hphantom{wi}Jun\hphantom{wi}Jul\hphantom{wi}Aug\hphantom{wi}Sep\hphantom{wi}Oct\hphantom{wi}Nov\hphantom{wi}Dec
\end{tblr}
\vspace{3mm}
}

\usepackage{verbatim}

\raggedright
\raggedbottom

\begin{document}

\chapter*{}

\thispagestyle{empty}
% \pagenumbering{gobble}
% Eliminates page number on reverse side; see https://texfaq.org/FAQ-nopageno


\begin{center}
{\Huge Planning Notebook}
\medskip

by Kenneth John Odle
\medskip

v. 2.4.0 \\ 2024 Version
\medskip

\today{}

\vspace*{10cm}

\includegraphics[scale=0.5]{ccancs4}
\bigskip

\begin{minipage}{14cm}
\begin{flushleft}
This work is provided under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
\end{flushleft}
This means:

\begin{itemize}
 \itemsep-0.30em
	\item You are free to share this work. 
	\item You are free to adapt this work.
	\item You are free to share your adaptation(s) of this work.
	\item You are not allowed to sell this work or your adaptation(s) of this work.
	\item You must attribute it to the author by providing the following link:
\end{itemize}

\texttt{https://git.kjodle.net/kjodle/planner-in-latex}

\end{minipage}
\end{center}

\chapter*{Introduction}

\begin{multicols}{2}

This document is part of a never-ending search for the perfect planner. 

My goal was to create a planner where I can plan my days, weeks, and entire year ahead of time as much as possible. In addition to a regular planner where I can make note of everyday life events (i.e., medical appointments), I also wanted a way to incorporate annual goals into my weekly plans. I believe the reason so many new year's resolutions fail is that we simply forget about them. If you want to achieve something, you have to keep that goal in front of you. I also wanted a place to reflect on my progress on those goals, both on a monthly and on an annual basis.

Prior to this year, this was contained in a single document. Several notable changes have led this to being version 2.0.0, most notably: 

\begin{itemize}
	\item The research on goals and habits has been moved to a separate document (``Notes'').
	\item The annual and monthly goals and reflection pages have been moved to a separate document (``Annual Goals''). This makes it easier to refer to them when planning your weeks.
	\item Tables have been reconstructed entirely using the \texttt{tabularray} package for greater consistency.
\end{itemize}

You are welcome to download the pdf of this planner and use it. You can also customize it by forking or downloading the package and making whatever changes you may want. All of these documents have been written in \LaTeX{}; only the most basic working knowledge of that language should be required to make basic changes.

If you choose to fork this work, please note that it is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License and your work, should you choose to release it (and I encourage you to) is required to be released under the same license.

\end{multicols}

%\newpage
%\thispagestyle{plain} % empty
%\mbox{}
% Not part of the table definition; it just makes sure to get us off this introductory page
% Be sure the next page is a left (i.e., even-numbered) page.

%%%%%%%%%%%%%%%%%%%%%
% Begin a new week


\forloop{ct}{1}{\value{ct}<54}{
%%%%%%%%%%%%%%%%%%%%%
% Begin a new week

% First Left Page
\newpage
\kweek

\begin{tblr}{
	width=175mm, 
	colspec={ | X[30,l] | X[35,l] | X[35,l] | },
	rowspec={ 
		| Q % Header Row
		| Q | Q | Q | Q
		| Q | Q | Q | Q
		| Q | Q | Q | Q
		|
		},
	rows={5.5mm, m, rowsep=1.5pt} % 
	}
	
	% Header
	\SetCell{bg=yellow7} \textbf{Yearly Goal} & \SetCell{bg=yellow8} \textbf{Monthly Goal} & \SetCell{bg=yellow9} \textbf{Weekly Activities} \\
	% Table Content
		\SetCell[r=4]{l} & \SetCell[r=2]{l} & \\ 
		 & &  \\  
		 & \SetCell[r=2]{l} &  \\  
		 & &  \\  
		\SetCell[r=4]{l} & \SetCell[r=2]{l} & \\ 
		 & &  \\  
		 & \SetCell[r=2]{l} &  \\  
		 & &  \\  
		\SetCell[r=4]{l} & \SetCell[r=2]{l} & \\ 
		 & &  \\  
		 & \SetCell[r=2]{l} &  \\  
		 & &  \\  
\end{tblr}

\vspace{10mm}

\begin{tblr}{
	width=175mm, 
	colspec={ | X[55,l] | X[1,l] | X[5,c,gray9] | [gray8]X[39,l] | },
	hline{1,2,4,6,8,10,12,14,16} = {1, 3-4}{0.5pt},
	hline{3} = {1}{0.5pt,black},
	hline{3} = {4}{0.5pt,gray7},
	hline{5,7,9,11,13,15} = {1}{0.5pt},
	rows={5.5mm, m, rowsep=2pt} 
	}
	%Header
	\SetCell{bg=teal9} \textbf{Tasks this week} & & \textbf{Day} & \SetCell{bg=teal9} \textbf{Chores} \\
	%Body
	\kcir & & \SetCell[r=2]{c} M &  \kcir \\
	\kcir & & & \kcir \\
	\kcir & & \SetCell[r=2]{c} Tu & \kcir Clean bathroom sinks \\
	\kcir & & & \kcir Clean toilets \\
	\kcir & & \SetCell[r=2]{c} W & \kcir Clean bathtub \\
	\kcir & & & \kcir Pickup floor \hspace{2em} \kcir Dust \\
	\kcir & & \SetCell[r=2]{c} Th & \kcir Vacuum \\
	\kcir & & & \kcir Kitchen floor \\
	\kcir & & \SetCell[r=2]{c} F & \kcir Clear off DR table \\
	\kcir & & & \kcir Clean office\\
	\kcir & & \SetCell[r=2]{c} Sa & \kcir Meal planning \\
	\kcir & & & \kcir Grocery planning \\
	\kcir & & \SetCell[r=2]{c} Su & \kcir Grocery shopping \\
	\kcir & & & \kcir Meal prep\\
\end{tblr}

% First Right Page
\newpage
\kweek


\begin{tblr}{
	width=175mm,
	colspec={ X[47,l] X[1.5,l] X[51.5,l] },
	vlines = {0.5pt,solid},
	hlines = {0.5pt,solid},
	rows={5mm, m, rowsep=1.5pt},
%	hline{7,12,17,22,27,32} = {2-3}{0.5pt,solid,azure4},
%	hline{1,2,Z} = {1-3}{0.5pt,solid,gray1},
%	hline{9,10,13,14,17,18,21,22} = {1-1}{0.5pt,solid,gray1}
	}
	\SetCell{bg=green9} \textbf{Pre-week Notes:} & \SetCell[c=2]{l, bg=azure9}\textbf{Log:}\\
	& \SetCell[r=5]{c, fg=gray2}\rotatebox[origin=c]{90}{{\footnotesize Monday}} & \\
	& & \\
	& & \\
	& & \\
	& & \\
	& \SetCell[r=5]{c, fg=gray2}\rotatebox[origin=c]{90}{{\footnotesize Tuesday}} & \\
	& & \\
	\SetCell{bg=violet9} \textbf{Hoping For:} & & \\
	& & \\
	& & \\
	& \SetCell[r=5]{c, fg=gray2}\rotatebox[origin=c]{90}{{\footnotesize Wednesday}} & \\
	\SetCell{bg=violet9} \textbf{Looking For:} & & \\
	& & \\
	& & \\
	& & \\
	\SetCell{bg=violet9} \textbf{Grateful For:} & \SetCell[r=5]{c, fg=gray2}\rotatebox[origin=c]{90}{{\footnotesize Thursday}} & \\
	& & \\
	& & \\
	& & \\
	\SetCell{bg=brown9} \textbf{Post-week Notes:} & & \\
	& \SetCell[r=5]{c, fg=gray2}\rotatebox[origin=c]{90}{{\footnotesize Friday}} & \\
	& & \\
	& & \\
	& & \\
	& & \\
	& \SetCell[r=5]{c, fg=gray2}\rotatebox[origin=c]{90}{{\footnotesize Saturday}} & \\
	& & \\
	& & \\
	& & \\
	& & \\
	& \SetCell[r=5]{c, fg=gray2}\rotatebox[origin=c]{90}{{\footnotesize Sunday}} & \\
	& & \\
	& & \\
	& & \\
	& & \\
\end{tblr}
\vspace{5mm}


% Second Left Page
\newpage
\kweek

\begin{tblr}{
	width=175mm, 
	colspec={ |[0.75pt] X[6,c] |[0.75pt] X[47,l] |[0.75pt] X[47,l] |[0.75pt] },
	rowspec= {
		|[0.75pt]Q % Header
		|[0.75pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q
		|[0.75pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q
		|[0.75pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q
		|[0.75pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q
		|[0.75pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q
		|[0.75pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q
		|[0.75pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q
		|[0.75pt]
		},
	rows={5.3mm, m, rowsep=1.3pt} 
	}
	
	% Header
	\textbf{Day} & \SetCell{bg=teal9} \textbf{Tasks Today} & \SetCell{bg=yellow9} \textbf{Goal Steps} \\
		% Monday
		\SetCell[r=5]{c} \textbf{Mon} & \kcir & \kcir Read \\ 
		 & \kcir & \kcir \kcir Exercise \\  
		 & \kcir & \kcir \kcir Create \\  
		 & \kcir & \kcir \\  
		 & \kcir & \kcir \\  
		% Tuesday
		\SetCell[r=5]{c} \textbf{Tue} & \kcir & \kcir Read \\ 
		 & \kcir & \kcir \kcir Exercise \\  
		 & \kcir & \kcir \kcir Create \\  
		 & \kcir & \kcir \\ 
		 & \kcir & \kcir \\  
		% Wednesday
		\SetCell[r=5]{c} \textbf{Wed} & \kcir & \kcir Read \\
		 & \kcir & \kcir \kcir Exercise \\  
		 & \kcir & \kcir \kcir Create \\  
		 & \kcir & \kcir \\  
		 & \kcir & \kcir \\  
		% Thursday
		\SetCell[r=5]{c} \textbf{Thu} & \kcir & \kcir Read \\ 
		 & \kcir & \kcir \kcir Exercise \\  
		 & \kcir & \kcir \kcir Create \\  
		 & \kcir & \kcir \\  
		 & \kcir & \kcir \\  
		% Friday
		\SetCell[r=5]{c} \textbf{Fri} & \kcir & \kcir Read \\ 
		 & \kcir & \kcir \kcir Exercise \\  
		 & \kcir & \kcir \kcir Create \\  
		 & \kcir & \kcir \\  
		 & \kcir & \kcir \\  
		% Saturday
		\SetCell[r=5]{c} \textbf{Sat} & \kcir Mail & \kcir \kcir Read \\ 
		 & \kcir & \kcir \kcir Exercise \\  
		 & \kcir & \kcir \kcir \kcir \kcir Create \\  
		 & \kcir & \kcir \\  
		 & \kcir & \kcir \\  
		% Sunday
		\SetCell[r=5]{c} \textbf{Sun} & \kcir Finances for next week & \kcir \kcir Read \\ 
		 & \kcir Goals/Activities for next week & \kcir \kcir Exercise \\  
		 & \kcir & \kcir \kcir \kcir \kcir Create \\  
		 & \kcir & \kcir \\  
		 & \kcir & \kcir \\  
\end{tblr}

% Second Right Page
\newpage
\kweek

\begin{tblr}{
	width=175mm, 
	colspec={ |[0.75pt] X[6,c] |[0.75pt] X[47,l] |[0.75pt] X[47,l] |[0.75pt] },
	rowspec= {
		|[0.75pt]Q % Header
		|[0.75pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q
		|[0.75pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q
		|[0.75pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q
		|[0.75pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q
		|[0.75pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q
		|[0.75pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q
		|[0.75pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q |[0.25pt]Q
		|[0.75pt]
		},
	rows={5.3mm, m, rowsep=1.3pt} 
	}
	
	% Header
	\textbf{Day} & \SetCell{bg=green9} \textbf{Finances} & \SetCell{bg=brown9} \textbf{Health} \\
		% Monday
		\SetCell[r=5]{c} \textbf{Mon} & \kfin & \\ 
		 & \kfin & \\  
		 & \kfin & \\  
		 & \kfin & \\  
		 & \kfin & \\  
		% Tuesday
		\SetCell[r=5]{c} \textbf{Tue} & \kfin & \\ 
		 & \kfin & \\  
		 & \kfin & \\  
		 & \kfin & \\  
		 & \kfin & \\  
		% Wednesday
		\SetCell[r=5]{c} \textbf{Wed} & \kfin & \\
		 & \kfin & \\  
		 & \kfin & \\  
		 & \kfin & \\  
		 & \kfin & \\  
		% Thursday
		\SetCell[r=5]{c} \textbf{Thu} & \kfin & \\ 
		 & \kfin & \\  
		 & \kfin & \\  
		 & \kfin & \\  
		 & \kfin & \\  
		% Friday
		\SetCell[r=5]{c} \textbf{Fri} & \kfin & \\ 
		 & \kfin & \\  
		 & \kfin & \\  
		 & \kfin & \\  
		 & \kfin & \\  
		% Saturday
		\SetCell[r=5]{c} \textbf{Sat} & \kfin & \\ 
		 & \kfin & \\  
		 & \kfin & \\  
		 & \kfin & \\  
		 & \kfin & \\  
		% Sunday
		\SetCell[r=5]{c} \textbf{Sun} & \kfin & \\ 
		 & \kfin & \\  
		 & \kfin & \\  
		 & \kfin & \\  
		 & \kfin & \\  
\end{tblr}

} % End forloop

\end{document}