\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{intro}[2020/04/04 Math tasks intro]


\usepackage[x11names, svgnames, rgb]{xcolor}
\usepackage[no-math]{fontspec}
\setmainfont{Gentium Plus}
\setmonofont{Inconsolata LGC}
\newfontfamily\slab{Roboto Slab}
\newfontfamily\roboto{Roboto}
\newfontfamily\incons{Inconsolata}

\setlength\headheight{13.6pt}

\usepackage{
    amsmath, amssymb, mathtools, relsize,
    graphicx, xcolor,
    fancyhdr,
    hyperref,
    enumerate,
    framed,
    lastpage
}
\usepackage{datetime2}
\usepackage[shortlabels]{enumitem}
\usepackage{mathshit}


\flushbottom

\renewcommand{\baselinestretch}{1.1}

\usepackage{geometry}
\geometry{
    b5paper,
    left=0.4in, right=0.4in,
    top=0.5in, bottom=0.6in,
    headsep=.1in
}

\newcommand{\question}[2]{
    \def\FrameCommand{
        \fboxsep=\FrameSep\fcolorbox{gray}{white}
    }
    \MakeFramed{
        \advance\hsize-\width \FrameRestore
    }
        \noindent {\small \roboto \textbf{#1}}
        #2
    \endMakeFramed
}

\newcommand{\dmquestion}[1]{
    \begin{center}
        {
            \color{darkgray}
            \framebox[3em]{
                \color{black}
                \texttt{#1}
            }
        }
    \end{center}
}

\setlength\FrameSep{0.75em}
\setlength\OuterFrameSep{\partopsep}

\hypersetup{colorlinks=true, linkcolor=magenta}

% -- Left/right header text and footer (to appear on every page) --
\pagestyle{fancy}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\headrulewidth}{0pt}

% clear first page
\fancypagestyle{plain}
{
   \fancyhf{}
   \renewcommand{\headrulewidth}{0pt}
   \renewcommand{\footrulewidth}{0pt}
}

\cfoot{}
\rfoot{\footnotesize \texttt{\thepage}}

\author{Шарафатдинов Камиль \and БПМИ192}
\date{билд \qquad \small\texttt{\DTMnow+0300}}

\setlength{\leftskip}{24pt}
\setlength{\rightskip}{24pt}

% simplified inkscape svg insertion
\newcommand{\drawcat}[1]{
    \begin{figure}
        \includegraphics[width=#1,page=1]{cat.pdf}
    \end{figure}
}
