\documentclass[english, 11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[top = 2cm, left = 2.5cm, right = 2.5cm, bottom = 2cm]{geometry}
\usepackage{enumitem}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amstext}
\usepackage{mdframed}
\usepackage{graphicx}
\usepackage{bbm}
\makeatletter
\@ifundefined{date}{}{\date{}}
\usepackage{tikz}
\usetikzlibrary{quotes, angles, decorations.markings, intersections}
\usetikzlibrary{calc,patterns,angles,quotes, 3d, intersections, positioning, shapes, automata, positioning}
\usepackage{wasysym}
\makeatother
\usepackage{babel}
\usepackage{color}
\usepackage{graphicx}
\usepackage{hyperref}
\hypersetup{
	colorlinks,
	citecolor=black,
	filecolor=black,
	linkcolor=black,
	urlcolor=black
}


\newcommand{\tbox}[1]{\noindent\fbox{\parbox{\textwidth}{#1}}}

\setlength{\parindent}{0pt}

\begin{document}
\noindent\tbox{
\textbf{CS 208 : Automata Theory and Logic} \hfill DATE
\begin{center}
  \huge Lecture - XX \\ % change lecture number
  \Large Topic:  % Short topic description
\end{center}
\textit{Scribed by}: % <NAME> (<Roll Number>)

\textit{Checked and compiled by}: % <TA Name>
}

\paragraph{Disclaimer.} {\bfseries Please note this document has not received
the usual scrutiny that formal publications enjoy. This may be
distributed outside this class only with the permission of the
instructor.}

\section{Section title}
 Here is where you insert your proper notes.
\subsection{Subsection title}

Figures can be drawn using TikZ (see link below) or can be included as
a PDF file.

Here's how to include a figure (\ref{fig:figfrompdf}) from a PDF file
\begin{figure}[htbp]
  \begin{center}
  \includegraphics[width=.7\textwidth]{L1slides_p3.pdf}
  \end{center}
  \caption{A simple figure}
  \label{fig:figfrompdf}
\end{figure}

Here's a figure of an automaton (Fig.~\ref{fig:figfromtikz}) drawn using
\LaTeX{}. You do not have to use TikZ, but if you are free and bored,
please try it out for vector graphics with amazing user-controlled
precision.
\begin{figure}[htbp]
\begin{center}
    \begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,auto]
    
      \node[state,initial]  (q_0)                      {$q_0$};
      \node[state]          (q_1) [above right=of q_0] {$q_1$};
      \node[state]          (q_2) [below right=of q_0] {$q_2$};
      \node[state,accepting](q_3) [below right=of q_1] {$q_3$};
    
      \path[->] (q_0) edge              node        {0} (q_1)
                      edge              node [swap] {1} (q_2)
                (q_1) edge              node        {1} (q_3)
                      edge [loop above] node        {0} ()
                (q_2) edge              node [swap] {0} (q_3)
                      edge [loop below] node        {1} ();
    \end{tikzpicture}
\end{center}
\caption{An automaton}
\label{fig:figfromtikz}
\end{figure}

TIKZ reference manual:  \href{https://tikz.dev/}{Click here}

Automata in \LaTeX{}: \href{https://tikz.dev/library-automata}{Click here}

\end{document}
