-
Notifications
You must be signed in to change notification settings - Fork 10
/
preamble.tex
executable file
·77 lines (60 loc) · 2.04 KB
/
preamble.tex
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
\documentclass[10pt,a5paper,twoside]{article}
\usepackage{iftex}
\RequireXeTeX
\usepackage[top=12mm,bottom=26mm,outer=28mm,inner=14mm,foot=14mm]{geometry}
\usepackage{calc}
\usepackage{scrextend}
\deffootnote[1.5em]{0em}{1em}{\thefootnotemark\quad}
\renewcommand{\footnoterule}{%
\kern -2.4pt
\hrule width \textwidth height 0.4pt
\kern 2pt
}
\usepackage{fontspec}
\setmainfont[
Ligatures=TeX,
Extension=.otf,
SlantedFont=cmunsl,
BoldFont=cmunbx,
ItalicFont=cmunti,
BoldItalicFont=cmunbi,
SmallCapsFont=cmunrm, % for upright instead of slanted small caps
SmallCapsFeatures={Letters=SmallCaps,Numbers=OldStyle},
]{cmunrm}
\usepackage{etoolbox}
\usepackage{microtype,ellipsis}
\usepackage{polyglossia,iflang}
\setotherlanguage{russian} % the name of the original Russian version at the end of this book is written using Cyrillic letters
\usepackage{textcomp}
\usepackage{amsmath,amssymb,nicefrac,amscd}
\usepackage{graphicx,float}
\usepackage{import}
\usepackage{pdfpages}
\usepackage{enumitem}
\setitemize[1]{noitemsep,nosep,leftmargin=0.99em,label={--}}
\usepackage{transparent}
\usepackage{csquotes}
\DeclareQuoteStyle{vietnamese}
{\textquotedblleft}
{\textquotedblright}
[0.05em]
{\textquoteleft}
{\textquoteright}
\usepackage{siunitx}
\sisetup{per-mode=fraction,fraction-function=\nicefrac}
\usepackage{hyperref}
\usepackage{todonotes}
\newcommand{\eps}{\varepsilon}
% Usually, you would define a theorem-like enviroment which uses automatic numbering
% but Arnold also uses special numbering for some problems. Therefore, I kept the manual numbering.
\newenvironment{problem}[1]{\paragraph*{#1}}{}
\newenvironment{note}[1]{\par\noindent\IfLanguageName{vietnamese}{\textit{#1}}{\textsc{\MakeLowercase{#1}}} }{\par}
\makeatletter
% do no indent the first paragraph of the abstract
\let\oldabstract\abstract
\def\abstract{\oldabstract\noindent\@ifnextchar\par{\expandafter\abstract\@gobble}{}}
% always center contents of floats
\g@addto@macro\@floatboxreset{\centering}
% make all figures use 'H' position by default:
\def\fps@figure{H}
\makeatother