\documentclass[11pt]{article}
\usepackage[margin=1in]{geometry}
% Mathematics and figures
\usepackage{amsmath,amssymb}
\usepackage{graphicx}
\usepackage{tikz-cd}
\usepackage{multicol}
\usepackage[most]{tcolorbox}
\usepackage{xcolor}
% Paragraph formatting
\setlength{\parindent}{0pt}
\setlength{\parskip}{1\baselineskip}
% --------------------------------------------------------------------------
% Class-note colors
% --------------------------------------------------------------------------
\definecolor{QuestionBlue}{HTML}{2563A6}
\definecolor{StatementGray}{HTML}{59636E}
\definecolor{DefinitionTeal}{HTML}{177E89}
\definecolor{TheoremPurple}{HTML}{6B4C9A}
\definecolor{PropositionBlue}{HTML}{3F5F9A}
\definecolor{ProofGray}{HTML}{6C757D}
\definecolor{AnswerGreen}{HTML}{2E7D32}
\definecolor{ExampleOrange}{HTML}{C56A16}
\definecolor{RemarkGold}{HTML}{9A7611}
% Shared appearance for all class-note boxes
\tcbset{
classnote/.style={
enhanced,
breakable,
boxrule=0.7pt,
arc=2pt,
left=8pt,
right=8pt,
top=6pt,
bottom=6pt,
before skip=10pt,
after skip=10pt,
fonttitle=\bfseries
}
}
% --------------------------------------------------------------------------
% Reusable class-note environments
% The optional argument changes the displayed title.
% --------------------------------------------------------------------------
\newtcolorbox{question}[1][Question]{
classnote, colback=QuestionBlue!5, colframe=QuestionBlue, title={#1}
}
\newtcolorbox{statement}[1][Statement]{
classnote, colback=StatementGray!5, colframe=StatementGray, title={#1}
}
\newtcolorbox{definition}[1][Definition]{
classnote, colback=DefinitionTeal!5, colframe=DefinitionTeal, title={#1}
}
\newtcbtheorem[auto counter]{theorem}{Theorem}{
classnote, colback=TheoremPurple!5, colframe=TheoremPurple
}{thm}
\newtcbtheorem[auto counter]{proposition}{Proposition}{
classnote, colback=PropositionBlue!5, colframe=PropositionBlue
}{prop}
\newtcolorbox{proof}[1][Proof]{
classnote, colback=ProofGray!5, colframe=ProofGray, title={#1},
after upper={\hfill$\square$}
}
\newtcolorbox{answer}[1][Answer]{
classnote, colback=AnswerGreen!5, colframe=AnswerGreen, title={#1}
}
\newtcolorbox{example}[1][Example]{
classnote, colback=ExampleOrange!5, colframe=ExampleOrange, title={#1}
}
\newtcolorbox{remark}[1][Remark]{
classnote, colback=RemarkGold!5, colframe=RemarkGold, title={#1}
}
% --------------------------------------------------------------------------
% Metadata: edit these fields for each set of class notes.
% --------------------------------------------------------------------------
\newcommand{\notestitle}{Lecture or Topic Title}
\newcommand{\courseid}{Course Code}
\newcommand{\instructorname}{Instructor Name}
\newcommand{\classdate}{\today}
\newcommand{\documentlabel}{Classroom Queries}
% Logo files. Paths must remain relative to this TeX file.
\newcommand{\courselogo}{course.jpeg}
\newcommand{\institutelogo}{inst.png}
% --------------------------------------------------------------------------
% Class-note header
% --------------------------------------------------------------------------
\newcommand{\makeclassnotesheader}{%
\begin{tcolorbox}[
enhanced,
colback=QuestionBlue!3,
colframe=QuestionBlue,
boxrule=1.1pt,
arc=3pt,
left=12pt,
right=12pt,
top=12pt,
bottom=10pt
]
\noindent
\begin{minipage}[c]{0.16\linewidth}
\centering
\IfFileExists{\courselogo}
{\includegraphics[width=0.94\linewidth,keepaspectratio]{\courselogo}}
{\fbox{\scriptsize Course Logo}}
\end{minipage}%
\hfill
\begin{minipage}[c]{0.62\linewidth}
\centering
{\small\bfseries\color{QuestionBlue}\MakeUppercase{\documentlabel}}\\[5pt]
{\LARGE\bfseries \notestitle}
\end{minipage}%
\hfill
\begin{minipage}[c]{0.16\linewidth}
\centering
\IfFileExists{\institutelogo}
{\includegraphics[width=0.94\linewidth,keepaspectratio]{\institutelogo}}
{\fbox{\scriptsize Institute Logo}}
\end{minipage}
\vspace{5pt}
\hrule
\vspace{8pt}
\begin{tabular*}{\linewidth}{@{\extracolsep{\fill}}lll@{}}
\textbf{Course ID:} \courseid &
\textbf{Instructor:} \instructorname &
\textbf{Date:} \classdate
\end{tabular*}
\end{tcolorbox}%
}
\begin{document}
\pagestyle{empty} % Remove this line if page numbers are desired.
\makeclassnotesheader
\section{Lecture Topic}
Replace the placeholder material below with the content of the lecture.
Delete any environments that are not needed.
\begin{statement}[Context or Assumptions]
State the setting, assumptions, notation, or motivation for the topic.
\end{statement}
\begin{definition}[Definition Title]
Introduce a new mathematical or statistical concept here.
\[
\text{Insert the defining equation here.}
\]
\end{definition}
% The theorem and proposition environments take two arguments:
% {displayed title}{internal label without spaces}.
\begin{theorem}{Theorem Title}{theorem-label}
State the theorem here.
\end{theorem}
\begin{proof}
Write the proof in clear steps, citing definitions and previous results.
\end{proof}
\begin{proposition}{Proposition Title}{proposition-label}
State a supporting or intermediate result here.
\end{proposition}
\begin{question}
Write a classroom question or exercise here.
\end{question}
\begin{answer}
Write the corresponding explanation or solution here.
\end{answer}
\begin{example}[Example: Descriptive Title]
Work through a concrete example here.
\end{example}
\begin{remark}[Important Observation]
Add a qualification, interpretation, warning, historical note, or reference.
\end{remark}
% Add further sections as required:
% \section{Next Topic}
% \subsection{Subtopic}
\end{document}