-
Notifications
You must be signed in to change notification settings - Fork 14
/
text-style.cls
81 lines (65 loc) · 2.16 KB
/
text-style.cls
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
% Style for SPbU lecture notes.
% Using ../.. in style name because latex was created before Git and knows nothing about relative paths to style files.
\ProvidesClass{../../text-style}[2022/08/11 version 1.00 SPbU lecture notes]
\NeedsTeXFormat{LaTeX2e}
\ProcessOptions\relax
% Loading base document class
\LoadClass[a5paper]{article}
% Setting up page geometry
\usepackage[a5paper, top=8mm, bottom=8mm, left=8mm, right=8mm]{geometry}
% Setting up support for Russian language.
\usepackage{polyglossia}
\setdefaultlanguage[babelshorthands=true]{russian}
\setotherlanguage{english}
% Setting up font.
\usepackage{fontspec}
\setmainfont{FreeSerif}
\newfontfamily{\russianfonttt}[Scale=0.7]{DejaVuSansMono}
% Loading common packages
\usepackage[font=scriptsize]{caption}
\usepackage{amsmath}
\usepackage{amssymb,amsfonts,textcomp}
\usepackage{color}
\usepackage{array}
\usepackage{hhline}
\usepackage{cite}
\usepackage{textcomp}
\usepackage{tabu}
\usepackage{graphicx}
\usepackage{indentfirst}
\usepackage{multirow}
\usepackage{subfig}
\usepackage{footnote}
\usepackage{minted}
\usepackage{bookmark}
\usepackage{multicol}
\usepackage{xcolor}
\usepackage{moresize}
\usepackage{forest}
\usetikzlibrary{arrows}
\usepackage{amsthm}
\usepackage[normalem]{ulem}
\usepackage{tabularx}
\usepackage{csquotes}
\usepackage[hang,multiple]{footmisc}
\renewcommand{\footnotelayout}{\raggedright}
\newtheorem{rustheorem}{Теорема}
% Setting up nice-looking hyperlinks.
\hypersetup{colorlinks=true, linkcolor=blue, citecolor=blue, filecolor=blue, urlcolor=blue, pdfauthor=Юрий Литвинов, pdfsubject=, pdfkeywords=}
% Setting default column separator width.
\newlength\Colsep
\setlength\Colsep{10pt}
% Forbidding TeX to ever use margins.
\sloppy
% Defining text title command. Takes one argument --- title.
\newcommand{\texttitle}[1] {
\pagestyle{plain}
\title{#1}
\author{Юрий Литвинов\\\small{[email protected]}}
\date{}
\hypersetup{pdftitle={#1}}
}
% Defining a command for attribution info, mostly for "borrowed" images:
\newcommand{\attribution}[1] {
\begin{flushright}\begin{scriptsize}\textcolor{gray}{\copyright\ #1}\end{scriptsize}\end{flushright}
}