diff options
author | syn <isaqtm@gmail.com> | 2020-04-15 04:35:30 +0300 |
---|---|---|
committer | syn <isaqtm@gmail.com> | 2020-04-15 04:35:30 +0300 |
commit | f642380d55c66e4e5deaaa6c7cef15f6dbfe36c6 (patch) | |
tree | 31ed9377de27678b376668131e0cbf8a8639ce16 /intro.sty | |
parent | 406cd62e6c18587b2859bf77434527f2ac87027d (diff) | |
download | tex2-f642380d55c66e4e5deaaa6c7cef15f6dbfe36c6.tar.gz |
Reorganize & alg-1
Diffstat (limited to 'intro.sty')
-rw-r--r-- | intro.sty | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/intro.sty b/intro.sty new file mode 100644 index 0000000..2c9efac --- /dev/null +++ b/intro.sty @@ -0,0 +1,94 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{intro}[2020/04/04 Math tasks intro] + +\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} +} |