summaryrefslogtreecommitdiffstats
path: root/intro.sty
blob: cbc5b0c32f6dc474539bb50790f7cc156c9a5f14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
\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}

\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}
}