Changed weekly left to «tabularray» environment

This commit is contained in:
Kenneth John Odle 2023-09-05 19:30:31 -04:00
parent a4e014f1fe
commit 409ae1ac41

209
2024.tex Normal file
View File

@ -0,0 +1,209 @@
\documentclass[twoside]{book}
\usepackage[
letterpaper,
inner=25mm,
outer=25mm,
bindingoffset=5mm,
textheight=10in,
top=1in,
bottom=1in,
footskip=0.5in
]{geometry}
\usepackage{graphicx}
\usepackage{kpfonts}
% \usepackage{array}
% \usepackage{multirow}
% \usepackage{colortbl}
% \usepackage{tikz}
% Use tab stops when we need to
\usepackage{tabto}
% Use font colors
% \usepackage[dvipsnames]{xcolor}
% Use a better tabular system (2022.12.26 - currently on "Habits" pages)
\usepackage{tabularray}
\usepackage{ninecolors}
\author{Kenneth John Odle}
\usepackage[utf8]{inputenc}
% Put page numbers in bottom center
\pagestyle{plain}
% Add our copyright image
\usepackage{graphicx}
\graphicspath{ {./images/} }
% Let's put explanatory stuff in two columns a half inch apart
% \usepackage{multicol}
% \setlength\columnsep{0.4in}
% 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 ~}}
%\newcommand\cc{\ocircle}
%\let\iiint=\relax
\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. 1.3.0
\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{Habits}
\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
\newgeometry{
width=8.5in,
height=11in,
inner=20mm,
outer=10mm,
bindingoffset=0mm,
textheight=10in,
top=0.6in,
bottom=1in,
footskip=0.5in,
marginparwidth=0mm,
marginparsep=0mm
}
%\newcounter{ct}
%\forloop{ct}{1}{\value{ct}<54}{
%%%%%%%%%%%%%%%%%%%%%
% Begin a new week
\newpage
\noindent \tabto{4mm} \textbf{Week } \\ %\thect} \\
% Left table top
Month and Year \vspace{1mm}
\begin{tblr}{
width=175mm,
colspec={ | X[8,c] | X[53,l] | X[53,l] | X[53,l] | },
rowspec={
| Q % Header row
| [1pt,black]Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q
% Above is first row of each section; below is subsequent rows
| Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q
| Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q
| Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q
| Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q
| Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q
| Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q | [0.5pt,blue5]Q
|
},
rows={2mm, m, rowsep=1pt} % Row height(depends on contents?); position; row separation
}
% Header
\textbf{Day} & \textbf{Tasks Today} & \textbf{Tasks This Week} & \textbf{Goal Steps} \\
% Monday
\SetCell[r=5]{c} \textbf{Mon} & & & \kcir Read \\
& & & \kcir \kcir Exercise \\
& & & \kcir \kcir Create \\
& & & $ \bigcirc ~ \bigcirc $ \\
& & & $ \bigcirc ~ \bigcirc $ \\
% Tuesday
\SetCell[r=5]{c} \textbf{Tue} & & & \kcir Read \\
& & & \kcir \kcir Exercise \\
& & & \kcir \kcir Create \\
& & & $ \bigcirc ~ \bigcirc $ \\
& & & $ \bigcirc ~ \bigcirc $ \\
% Wednesday
\SetCell[r=5]{c} \textbf{Wed} & & & \kcir Read \\
& & & \kcir \kcir Exercise \\
& & & \kcir \kcir Create \\
& & & $ \bigcirc ~ \bigcirc $ \\ \cline{2-4}
& & & $ \bigcirc ~ \bigcirc $ \\
% Thursday
\SetCell[r=5]{c} \textbf{Thu} & & & \kcir Read \\
& & & \kcir \kcir Exercise \\
& & & \kcir \kcir Create \\
& & & $ \bigcirc ~ \bigcirc $ \\
& & & $ \bigcirc ~ \bigcirc $ \\
% Friday
\SetCell[r=5]{c} \textbf{Fri} & & & \kcir Read \\
& & & \kcir \kcir Exercise \\
& & & \kcir \kcir Create \\
& & & $ \bigcirc ~ \bigcirc $ \\
& & & $ \bigcirc ~ \bigcirc $ \\
% Saturday
\SetCell[r=5]{c} \textbf{Sat} & & & \kcir \kcir Read \\
& & & \kcir \kcir Exercise \\
& & & \kcir \kcir \kcir \kcir Create \\
& & & $ \bigcirc ~ \bigcirc $ \\
& & & $ \bigcirc ~ \bigcirc $ \\
% Sunday
\SetCell[r=5]{c} \textbf{Sun} & & & \kcir \kcir Read \\
& & & \kcir \kcir Exercise \\
& & & \kcir \kcir \kcir \kcir Create \\
& & & $ \bigcirc ~ \bigcirc $ \\
& & & $ \bigcirc ~ \bigcirc $ \\
\end{tblr}
\end{document}