-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmain_preamble.sty
46 lines (34 loc) · 1.08 KB
/
main_preamble.sty
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
\documentclass[12pt, a4paper, oneside]{book}
\usepackage{catchfilebetweentags}
\ExecuteMetaData[../../preamble.sty]{preamble}
\addto\captionsrussian{\renewcommand{\chaptername}{Лекция}}
\let\MakeUppercase\relax
\lfoot{}
\cfoot{}
\rfoot{}
\lhead{\leftmark}
\usepackage{tocloft}
\advance\cftsecnumwidth -1em\relax
\advance\cftsubsecindent -1em\relax
\advance\cftsubsecnumwidth -1em\relax
\advance\cftsubsubsecindent -3em\relax
\advance\cftsubsubsecnumwidth -1em\relax
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
\usepackage{titletoc}
\titlecontents*{chapter}% <section-type>
[0pt]% <left>
{}% <above-code>
{\bfseries\chaptername\ \thecontentslabel\quad}% <numbered-entry-format>
{}% <numberless-entry-format>
{\bfseries\hfill\contentspage}% <filler-page-format>
\let\endtitlepage\relax
\patchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{fancy}}{}{}
\usepackage{remreset}
\makeatletter
\@removefromreset{section}{chapter}
\makeatother
\usepackage{chngcntr}
\counterwithout{equation}{chapter}
\renewcommand{\thesection}{\arabic{section}}
\author{Михайлов Максим}