126 lines
3.0 KiB
TeX
126 lines
3.0 KiB
TeX
\ProvidesClass{homework}
|
|
\LoadClass[fontsize=10pt]{scrartcl}
|
|
|
|
\RequirePackage[T1]{fontenc}
|
|
\RequirePackage{textcomp}
|
|
\RequirePackage{stmaryrd}
|
|
\SetSymbolFont{stmry}{bold}{U}{stmry}{m}{n}
|
|
\RequirePackage{url}
|
|
\RequirePackage{float}
|
|
\RequirePackage{booktabs}
|
|
\RequirePackage{emptypage}
|
|
\RequirePackage{subcaption}
|
|
\RequirePackage{multicol}
|
|
\RequirePackage{cancel}
|
|
\RequirePackage{mathrsfs}
|
|
\RequirePackage{minted}
|
|
\RequirePackage{systeme}
|
|
\RequirePackage{amsfonts, amsmath, amssymb, amsthm}
|
|
\RequirePackage{enumitem}
|
|
\RequirePackage{bm}
|
|
\RequirePackage{listings}
|
|
\RequirePackage{geometry}
|
|
\RequirePackage{graphicx}
|
|
\RequirePackage[usenames,dvipsnames]{xcolor}
|
|
\RequirePackage{siunitx}[=v2]
|
|
\RequirePackage{physics}
|
|
\RenewCommandCopy\qty\SI%
|
|
\RequirePackage{bm}
|
|
\RequirePackage{pgfplots}
|
|
\pgfplotsset{
|
|
compat=newest,
|
|
}
|
|
\usepgfplotslibrary{fillbetween}
|
|
\usetikzlibrary{patterns}
|
|
\RequirePackage[framemethod=TikZ]{mdframed}
|
|
\mdfsetup{skipabove=1em, skipbelow=0em, innertopmargin=5pt, innerbottommargin=6pt}
|
|
|
|
|
|
\let\sidesum\sum
|
|
\let\sidelim\lim
|
|
\renewcommand\sum{\sidesum\limits}
|
|
\renewcommand\lim{\sidelim\limits}
|
|
\newcommand{\problem}[1]{\subsection*{#1.}}
|
|
\newcommand{\pbl}[1]{\subsection*{#1.}}
|
|
\newcommand{\N}{\ensuremath{\mathbb{N}}}
|
|
\newcommand{\Z}{\ensuremath{\mathbb{Z}}}
|
|
\newcommand{\R}{\ensuremath{\mathbb{R}}}
|
|
\newcommand{\Q}{\ensuremath{\mathbb{Q}}}
|
|
\newcommand\C{\ensuremath{\mathbb{C}}}
|
|
|
|
\geometry{top=20mm,bottom=20mm}
|
|
|
|
|
|
\usemintedstyle{bw}
|
|
|
|
\newenvironment{code}[1]{\VerbatimEnvironment\begin{minted}[frame=lines,framesep=7pt, linenos, breaklines]{#1}}{\end{minted}}
|
|
|
|
\newcommand{\inlinecode}[2]{\mintinline{#1}|#2|}
|
|
|
|
\newcommand{\importcode}[2]{\inputminted[frame=lines, framesep=7pt, linenos, breaklines]{#1}{#2}}
|
|
|
|
\newcommand{\specialquote}[2]
|
|
{
|
|
\begin{flushright}
|
|
|
|
\begin{tikzpicture}
|
|
\draw (0,0) node [right,text width=8.75cm] {
|
|
\begin{mdframed}[
|
|
linecolor=black,
|
|
rightline=false,
|
|
topline=false,
|
|
bottomline=false,
|
|
backgroundcolor=black!5,
|
|
linewidth=2pt
|
|
]
|
|
|
|
{``#1''}
|
|
\vspace{1mm}
|
|
|
|
\hfill-- \small{#2}
|
|
\end{mdframed}
|
|
};
|
|
\end{tikzpicture}
|
|
\end{flushright}
|
|
}
|
|
|
|
\newcommand{\specialnoquote}[2]
|
|
{
|
|
\begin{flushright}
|
|
|
|
\begin{tikzpicture}
|
|
\draw (0,0) node [right,text width=8.75cm] {
|
|
\begin{mdframed}[
|
|
linecolor=black,
|
|
rightline=false,
|
|
topline=false,
|
|
bottomline=false,
|
|
backgroundcolor=black!5,
|
|
linewidth=2pt
|
|
]
|
|
|
|
{#1}
|
|
\vspace{1mm}
|
|
|
|
\hfill-- \small{#2}
|
|
\end{mdframed}
|
|
};
|
|
\end{tikzpicture}
|
|
\end{flushright}
|
|
}
|
|
|
|
|
|
\newcommand{\exercise}[2][]{%
|
|
\def\@exercise{#2}%
|
|
\subsection*{Exercise #2. #1}
|
|
}
|
|
|
|
\newcommand{\subexercise}[2][]{%
|
|
\subsubsection*{Exercise \@exercise.#2. #1}
|
|
}
|
|
|
|
\newcommand{\sect}[1]{
|
|
\def\@section{#1}
|
|
\section*{#1}
|
|
}
|