\documentclass[fleqn]{article}
\usepackage{graphicx}
\usepackage{./mydefs}
\usepackage{./notes}
\usepackage{url}
\usepackage{float}
\usepackage{amsmath}
\usepackage{listings}
\usepackage{courier}
\usepackage{subcaption}
\usepackage{tcolorbox}
\usepackage{color}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
\lstset{style=mystyle}
\begin{document}
\lecture{Computer Science 101}{HW01}{Brian}
\bee
\i what the fuck
\begin{tcolorbox}
yes. \newline \newline $\begin{pmatrix}
1 & 2 & 3\\
4 & 5 & 6\\
7 & 8 & 9
\end{pmatrix}$
\newline $\begin{pmatrix}
1 & 2 & 3 & 4\\
4 & 5 & 6 & 7\\
7 & 8 & 9 & 10
\end{pmatrix}$
\end{tcolorbox}
\i Do you know my age?
\begin{tcolorbox}
My age is 21.
\end{tcolorbox}
\ene
\leavevmode\newline
\textbf{Code Snippet 1}
\lstinputlisting[language=Python]
{test.py}
\textbf{Code Snippet 2}
\lstinputlisting[language=Python]
{test2.py}
\end{document}

PDF Preview
Create an account to compile and preview