diff --git a/src/ainotes.cls b/src/ainotes.cls new file mode 100644 index 0000000..859884a --- /dev/null +++ b/src/ainotes.cls @@ -0,0 +1,63 @@ +\NeedsTeXFormat{LaTeX2e}[] +\ProvidesClass{ainotes} + +\LoadClass{scrreprt} + + +\usepackage{geometry} +\usepackage{graphicx, xcolor} +\usepackage{amsmath, amsfonts, amssymb, amsthm, mathtools, bm} +\usepackage{hyperref} +\usepackage[nameinlink]{cleveref} +\usepackage[all]{hypcap} % Links hyperref to object top and not caption +\usepackage[inline]{enumitem} +\usepackage{marginnote} +\usepackage[bottom]{footmisc} +\usepackage{scrlayer-scrpage} +\usepackage{algorithm, listings} +\usepackage{array, makecell} +\geometry{ margin=3cm, lmargin=1.5cm, rmargin=4.5cm, marginparwidth=3cm } +\hypersetup{ colorlinks, citecolor=black, filecolor=black, linkcolor=black, urlcolor=black, linktoc=all } + +\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}{ + commentstyle = \color{codegreen}, + keywordstyle = \color{magenta}, + numberstyle = \tiny\color{codegray}, + stringstyle = \color{codepurple}, + basicstyle = \footnotesize\ttfamily, + breakatwhitespace = false, + breaklines = true, + captionpos = b, + keepspaces = true, + numbers = none, + showspaces = false, + showstringspaces = true, + showtabs = false, + tabsize = 3 +} +\lstset{style=mystyle} +\lstset{language=Python} + +\NewDocumentEnvironment{descriptionlist}{}{% + \begin{description}[labelindent=1em] +}{ + \end{description}% +} +\setlength{\parindent}{0pt} +\renewcommand*{\marginfont}{\color{gray}\footnotesize} +\renewcommand*\chapterpagestyle{scrheadings} % Header in chapter pages + +\theoremstyle{definition} +\newtheorem{theorem}{Theorem}[section] +\newtheorem*{example}{Example} +\theoremstyle{definition} +\newtheorem*{definition}{Def} + +\newcommand{\ubar}[1]{\text{\b{$#1$}}} +\renewcommand{\vec}[1]{{\bm{#1}}} +\newcommand{\nullvec}[0]{\bar{\vec{0}}} +\newcommand{\matr}[1]{{\bm{#1}}} diff --git a/src/fundamentals-of-ai-and-kr/ainotes.cls b/src/fundamentals-of-ai-and-kr/ainotes.cls new file mode 120000 index 0000000..c22704b --- /dev/null +++ b/src/fundamentals-of-ai-and-kr/ainotes.cls @@ -0,0 +1 @@ +../ainotes.cls \ No newline at end of file diff --git a/src/fundamentals-of-ai-and-kr/main.tex b/src/fundamentals-of-ai-and-kr/main.tex index 52895f8..98bf383 100644 --- a/src/fundamentals-of-ai-and-kr/main.tex +++ b/src/fundamentals-of-ai-and-kr/main.tex @@ -1,63 +1,4 @@ -\documentclass[11pt]{scrreprt} -\usepackage{geometry} -\usepackage{graphicx, xcolor} -\usepackage{amsmath, amsfonts, amssymb, amsthm, mathtools, bm} -\usepackage{hyperref} -\usepackage[nameinlink]{cleveref} -\usepackage[all]{hypcap} % Links hyperref to object top and not caption -\usepackage[inline]{enumitem} -\usepackage{marginnote} -\usepackage[bottom]{footmisc} -\usepackage{scrlayer-scrpage} -\usepackage{algorithm, listings} -\usepackage{array, makecell} -\geometry{ margin=3cm, lmargin=1.5cm, rmargin=4.5cm, marginparwidth=3cm } -\hypersetup{ colorlinks, citecolor=black, filecolor=black, linkcolor=black, urlcolor=black, linktoc=all } - -\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}{ - commentstyle = \color{codegreen}, - keywordstyle = \color{magenta}, - numberstyle = \tiny\color{codegray}, - stringstyle = \color{codepurple}, - basicstyle = \footnotesize\ttfamily, - breakatwhitespace = false, - breaklines = true, - captionpos = b, - keepspaces = true, - numbers = none, - showspaces = false, - showstringspaces = true, - showtabs = false, - tabsize = 3 -} -\lstset{style=mystyle} -\lstset{language=Python} - -\NewDocumentEnvironment{descriptionlist}{}{% - \begin{description}[labelindent=1em] -}{ - \end{description}% -} -\setlength{\parindent}{0pt} -\renewcommand*{\marginfont}{\color{gray}\footnotesize} -\renewcommand*\chapterpagestyle{scrheadings} % Header in chapter pages - -\theoremstyle{definition} -\newtheorem{theorem}{Theorem}[section] -\newtheorem*{example}{Example} -\theoremstyle{definition} -\newtheorem*{definition}{Def} - -\newcommand{\ubar}[1]{\text{\b{$#1$}}} -\renewcommand{\vec}[1]{{\bm{#1}}} -\newcommand{\nullvec}[0]{\bar{\vec{0}}} -\newcommand{\matr}[1]{{\bm{#1}}} - - +\documentclass[11pt]{ainotes} \title{Fundamentals of Artificial Intelligence and Knowledge Representation} \date{2023 -- 2024} diff --git a/src/statistical-and-mathematical-methods-for-ai/ainotes.cls b/src/statistical-and-mathematical-methods-for-ai/ainotes.cls new file mode 120000 index 0000000..c22704b --- /dev/null +++ b/src/statistical-and-mathematical-methods-for-ai/ainotes.cls @@ -0,0 +1 @@ +../ainotes.cls \ No newline at end of file diff --git a/src/statistical-and-mathematical-methods-for-ai/main.tex b/src/statistical-and-mathematical-methods-for-ai/main.tex index e7d7d2c..22747c2 100644 --- a/src/statistical-and-mathematical-methods-for-ai/main.tex +++ b/src/statistical-and-mathematical-methods-for-ai/main.tex @@ -1,38 +1,4 @@ -\documentclass[11pt]{scrreprt} -\usepackage{geometry} -\usepackage{graphicx, xcolor} -\usepackage{amsmath, amsfonts, amssymb, amsthm, mathtools, bm} -\usepackage{hyperref} -\usepackage[nameinlink]{cleveref} -\usepackage[all]{hypcap} % Links hyperref to object top and not caption -\usepackage[inline]{enumitem} -\usepackage{marginnote} -\usepackage[bottom]{footmisc} -\usepackage{array} - -\geometry{ margin=3cm, lmargin=2cm, rmargin=4cm, marginparwidth=3cm } -\hypersetup{ colorlinks, citecolor=black, filecolor=black, linkcolor=black, urlcolor=black, linktoc=all } - -\NewDocumentEnvironment{descriptionlist}{}{% - \begin{description}[labelindent=1em] -}{ - \end{description}% -} -\setlength{\parindent}{0pt} -\renewcommand*{\marginfont}{\color{gray}\footnotesize} - -\theoremstyle{definition} -\newtheorem{theorem}{Theorem}[section] -\newtheorem{example}{Example}[section] -\theoremstyle{definition} -\newtheorem*{definition}{Def} - -\newcommand{\ubar}[1]{\text{\b{$#1$}}} -\renewcommand{\vec}[1]{{\bm{#1}}} -\newcommand{\nullvec}[0]{\bar{\vec{0}}} -\newcommand{\matr}[1]{{\bm{#1}}} - - +\documentclass[11pt]{ainotes} \title{Statistical and Mathematical Methods for Artificial Intelligence} \date{2023 -- 2024}