-
Notifications
You must be signed in to change notification settings - Fork 0
/
prelude.tex
34 lines (28 loc) · 971 Bytes
/
prelude.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
\documentclass[11pt, a5paper]{article}
\usepackage[width=10cm, top=0.5cm, bottom=2cm]{geometry}
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}
\usepackage{libertine}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathrsfs}
\usepackage{mathtools}
\usepackage{framed}
\usepackage{xcolor}
\setlength{\parindent}{0pt}
% Force \pagebreak for every section
\let\oldsection\section
\renewcommand\section{\pagebreak\oldsection}
\renewcommand{\thesection}{}
\renewcommand{\thesubsection}{Note \arabic{subsection}}
\renewcommand{\thesubsubsection}{}
\renewcommand{\theparagraph}{}
\newenvironment{note}[1]{\goodbreak\par\subsection{\hfill \color{lightgray}\tiny #1}}{}
\newenvironment{cloze}[2][\ldots]{\begin{leftbar}}{\end{leftbar}}
\newenvironment{icloze}[2][\ldots]{%
\text{\tiny \color{lightgray}\{\{c#2::}\hspace{0pt}\ignorespaces%
}{%
\unskip\hspace{0pt}\text{\tiny\color{lightgray}\}\}}%
}