-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpoznamky.tex
126 lines (108 loc) · 3.59 KB
/
poznamky.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
% PM template 2014
\documentclass[11pt,a4paper]{book} % this document uses 'book' template
\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
\usepackage[czech]{babel} % we're Czech
\usepackage{amsfonts,multirow,float,enumerate, amsmath,amssymb,amsthm,algorithm,algorithmicx,algpseudocode}
% just some misc pdf magic
\usepackage{ifpdf}
\ifpdf
\usepackage[pdftex]{graphicx} % to include graphics
\pdfcompresslevel=9
\usepackage[pdftex, % sets up hyperref to use pdftex driver
plainpages=false, % allows page i and 1 to exist in the same document
breaklinks=true, % link texts can be broken at the end of line
colorlinks=true,
pdfauthor=Petr Mánek
]{hyperref}
\usepackage{thumbpdf}
\else
\usepackage{graphicx} % to include graphics
\usepackage{hyperref} % to simplify the use of \href
\fi
\usepackage{pgfplots,dot2texi,tikz} % we like charts
\usetikzlibrary{shapes,arrows,backgrounds,calc,trees}
\usepackage{caption,subfigure}
\usepackage[margin=3cm]{geometry} % change page margins to 3cm
% theorems and proofs
\newenvironment{t_proof}[1][\proofname]{%
\begin{proof}[#1]$ $\par\nobreak\ignorespaces
}{%
\end{proof}
}
\newtheorem{t_theorem}{Věta}[section]
\newtheorem{t_lemma}[t_theorem]{Lemma}
\newtheorem{t_claim}[t_theorem]{Tvrzení}
\newtheorem{t_fact}[t_theorem]{Fakt}
\newtheorem{t_corollary}{Důsledek}[t_theorem]
\newtheorem{t_remark}{Poznámka}[t_theorem]
\theoremstyle{definition}
\newtheorem{t_definition}[t_theorem]{Definice}
\newtheorem*{t_observation}{Pozorování}
\newtheorem*{t_example}{Příklad}
\newtheorem*{t_exercise2}{Příklady k procvičení}
\newenvironment{t_exercise}{%
\begin{t_exercise2}$ $\par\nobreak\ignorespaces
\begin{enumerate}
}{%
\end{enumerate}
\end{t_exercise2}
}
% document title stuff
\usepackage{titling}
\title{Informatické poznámky}
\author{Petr Mánek}
\date{\today}
% algorithmic macro
\algnewcommand\algorithmicto{\textbf{to}}
\renewcommand{\algorithmicrequire}{\textbf{Vstup:}}
\renewcommand{\algorithmicensure}{\textbf{Výstup:}}\algrenewtext{For}[3]% {\algorithmicfor\ $#1 \gets #2$ \algorithmicto\ $#3$ \algorithmicdo}
% translation and numbering
\makeatletter
\renewcommand{\ALG@name}{Algoritmus}
\@addtoreset{algorithm}{section}
\makeatother
\renewcommand{\thealgorithm}{\thesection.\arabic{algorithm}}
\renewcommand{\restriction}{\mathord{\upharpoonright}}
% header and footer
\usepackage{fancyhdr}
\renewcommand{\subsectionmark}[1]{%
\ifsubsectioninheader
\def\subsectiontitle{: #1}%
\else
\def\subsectiontitle{}%
\fi}
\newif\ifsubsectioninheader
\def\subsectiontitle{}
\fancyhf{}
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LE]{\small \theauthor}
\fancyhead[RO]{\small \nouppercase{\rightmark\ifsubsectioninheader\subsectiontitle\fi}}
\fancyfoot[LE,RO]{\thepage}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\fancyheadoffset[RE,LO]{-0.5\textwidth}
\pagestyle{fancy}
\begin{document}
% some other title stuff
\frontmatter
\maketitle
%\tableofcontents
%\chapter{Úvod}
%To do...
% the actual content begins here
\mainmatter
\chapter{Kombinatorika}
\include{kombagra/0intro}
\include{kombagra/1odhady} % petrmanek
\include{kombagra/2vytvorky} % petrmanek
\include{kombagra/3roviny} % petrmanek
\include{kombagra/4toky} % petrmanek
\include{kombagra/5parovani} % petrmanek
\include{kombagra/6souvislost} % petrmanek
\include{kombagra/7ramsey} % petrmanek
% todo: kombagra/8kody ------------- petrmanek
\include{kombagra/11parovani2} % salmelu
\include{kombagra/12tutte} % salmelu
\end{document}