-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.tex
124 lines (110 loc) · 2.24 KB
/
common.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
% LIBS
\usepackage[margin=2.5cm, top=2cm, bottom=1.5cm]{geometry}
\usepackage{fancyhdr}
\usepackage{amsmath,amssymb,mathtools,amsthm}
\usepackage{color,soul}
\usepackage{tikz}
\usepackage{csquotes}
\usepackage{listings}
\usepackage{polyglossia,enumitem}
\usepackage{bm}
\usepackage{fontawesome}
\usepackage{chngcntr}
% HEBREW
\setmainlanguage{hebrew}
\newfontfamily\hebrewfont[Script=Hebrew]{David CLM}
\let\hebrewfonttt\ttfamily
\setlist[itemize,1]{label={\fontfamily{cmr}\fontencoding{T1}\selectfont\textbullet}}
\setotherlanguage{english}
% HEADER
\pagestyle{fancy}
\rhead{236610 - אלגוריתמים מבוזרים בגרפים}
\lhead{\texttt{http://bit.ly/CS236610}}
% THEOREMS
\renewcommand*{\proofname}{הוכחה}
\newtheorem{example}{דוגמה}
\counterwithin*{example}{section}
\newtheorem{definition}{הגדרה}
\counterwithin*{definition}{section}
\newtheorem{observation}{אבחנה}
\counterwithin*{observation}{section}
\newtheorem{claim}{טענה}
\counterwithin*{claim}{section}
\newtheorem{lemma}{למה}
\counterwithin*{lemma}{section}
\newtheorem{theorem}{משפט}
\counterwithin*{theorem}{section}
\newtheorem{corollary}{מסקנה}
\counterwithin*{corollary}{section}
% COMMANDS
\newcommand{\defeq}{\vcentcolon=}
% LAYOUT
\setlength\parindent{0pt}
\def\arraystretch{1.5}
% FRONT
\newcommand{\front}[2]{
\newpage
\vspace*{1cm}
\begin{center}
\Huge{הרצאה \lecnum}
\vspace*{5cm}
\Huge{#1}
\vspace*{1cm}
\huge{#2}
\end{center}
\newpage
}
% TIKZ
\usetikzlibrary{
automata
,arrows
,arrows.meta
,shapes
,positioning
,matrix
,decorations.pathmorphing
}
\tikzset{>=latex, thick}
\tikzset{every picture/.style=very thick}
% NODE
\tikzset{default node/.style={
draw,
circle,
inner sep=1pt,
minimum size=5mm,
very thick,
font=\small,
black!70,
}}
% LABELS
\tikzset{
label/.style={
draw=none
,sloped
,rectangle
,minimum size=0
,inner sep=0mm
}
,label above/.style={
label
,midway
,above=.5mm
}
,label below/.style={
label
,midway
,below=.5mm
}
,label inside/.style={
label
,midway
,fill=white
,inner sep=2pt
}
}
\def\padzeros#1{\ifnum#1<10 0\fi\number#1}
\newcommand{\lecture}[1]{
\def\lecnum{#1}
\def\paddedlecnum{\padzeros{#1}}
}
\def\insert#1{\input{lec\paddedlecnum/#1}}