\documentclass[11pt,letterpaper]{article}

% Packages
\usepackage[utf8]{inputenc}
\usepackage[margin=0.75in]{geometry}
\usepackage{array}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{fancyhdr}
\usepackage{amsmath}
\usepackage{amssymb}

% Page setup
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot[C]{\footnotesize Cornell Notes Template (LaTeX) | Free from KenzNote.com}

% Custom commands
\newcommand{\headerfield}[2]{
    \textbf{#1:} \underline{\hspace{#2}}
}

% Document begins
\begin{document}

% Header section
\noindent
\begin{tabular}{@{}ll@{}}
    \headerfield{Subject}{2.5in} & \headerfield{Date}{1.5in} \\[0.1in]
    \multicolumn{2}{@{}l}{\headerfield{Topic}{5.5in}}
\end{tabular}

\vspace{0.2in}
\noindent\rule{\textwidth}{2pt}
\vspace{0.15in}

% Cornell Notes main section
\noindent
\begin{tabular}{|>{\raggedright\arraybackslash}p{2.3in}|>{\raggedright\arraybackslash}p{4.7in}|}
\hline
\multicolumn{1}{|c|}{\textbf{Cue Column}} & \multicolumn{1}{c|}{\textbf{Notes}} \\
\hline
 & \\[0.2in]
% Cue questions go here & Main notes go here \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
 & \\[0.2in]
\hline
\end{tabular}

\vspace{0.15in}

% Summary section
\noindent
\begin{tabular}{|>{\raggedright\arraybackslash}p{7in}|}
\hline
\textbf{Summary} \\[0.05in]
\hline
 \\[0.15in]
 \\[0.15in]
 \\[0.15in]
 \\[0.15in]
\hline
\end{tabular}

\vspace{0.2in}

% Usage instructions (comment out after first use)
\begin{center}
\fbox{
\begin{minipage}{6.5in}
\small
\textbf{How to Use This Template:}
\begin{enumerate}
    \item \textbf{During lecture:} Take notes in the right column only
    \item \textbf{Within 24 hours:} Add cue questions/keywords in left column
    \item \textbf{After review:} Write summary at bottom (2-4 sentences)
    \item \textbf{For study:} Cover right column, test yourself with left column
\end{enumerate}

\textbf{For Math/Science:} Use \verb|\[ equation \]| for display math, \verb|$equation$| for inline

\textbf{Compile:} \texttt{pdflatex cornell-notes-template.tex}
\end{minipage}
}
\end{center}

\end{document}

% ============================================
% EXAMPLE WITH CONTENT (uncomment to see)
% ============================================
%
% \begin{tabular}{|>{\raggedright\arraybackslash}p{2.3in}|>{\raggedright\arraybackslash}p{4.7in}|}
% \hline
% \multicolumn{1}{|c|}{\textbf{Cue Column}} & \multicolumn{1}{c|}{\textbf{Notes}} \\
% \hline
% What is the Pythagorean theorem? &
% \textbf{Pythagorean Theorem:} In a right triangle, $a^2 + b^2 = c^2$ where $c$ is the hypotenuse.
%
% \[
% a^2 + b^2 = c^2
% \]
% \\[0.2in]
%
% When is it used? &
% \textbf{Applications:}
% \begin{itemize}
%     \item Finding distance between two points
%     \item Calculating diagonal measurements
%     \item Checking if a triangle is right-angled
% \end{itemize}
% \\[0.2in]
%
% Example problem? &
% \textbf{Example:} If $a = 3$ and $b = 4$, find $c$:
% \begin{align*}
%     c^2 &= 3^2 + 4^2 \\
%     c^2 &= 9 + 16 = 25 \\
%     c &= 5
% \end{align*}
% \\[0.2in]
% \hline
% \end{tabular}
%
% Summary: The Pythagorean theorem relates the sides of right triangles and has numerous practical applications in geometry, distance calculations, and construction.
