\usepackage[czech]{babel}
\usepackage{graphicx}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{algorithmic}
\usepackage{algorithm}
\usepackage{caption}
\usepackage{titlesec}
%\usepackage{listings}
%\lstset{language=Python}
% \usepackage{mathspec}
% \usepackage{breqn}

% \documentclass[12pt,a4paper]{report}
\setlength\textwidth{145mm}
\setlength\textheight{247mm}
\setlength\oddsidemargin{15mm}
\setlength\evensidemargin{15mm}
\setlength\topmargin{0mm}
\setlength\headsep{0mm}
\setlength\headheight{0mm}
% \openright zařídí, aby následující text začínal na pravé straně knihy
\let\openright=\clearpage
\lefthyphenmin=2
\righthyphenmin=2
\titleformat{\chapter}[hang]{\bf\huge}{\thechapter}{2pc}{}

% \newcommand{\DUadmonition}[2][class-arg]{%
%   % try \DUadmonition#1{#2}:
%   \ifcsname DUadmonition#1\endcsname%
%     \csname DUadmonition#1\endcsname{#2}%
%   \else
%     \begin{quote}
%       #2
%     \end{quote}
%   \fi
% }

%\newcommand{\DUsidebar}[2]{\marginnote{\flushleft \textbf{#1} #2}}
%\newcommand{\DUsidebar}[1]{\marginnote{\flushleft #1}}
%\newcommand{\DUsidebar}[2]{\marginpar{\flushleft \textbf{#1} #2}}

%\renewcommand{\familydefault}{\sfdefault}
%\usepackage{fullpage}
%\oddsidemargin=-1cm
%\addtolength{\textwidth}{1in}
%\addtolength{\textheight}{1in}

%\usepackage{sectsty}
%\allsectionsfont{\usefont{OT1}{phv}{bc}{n}\selectfont}

  %\usepackage{sectsty}
	%\allsectionsfont{\sffamily}
    %\sectionfont{\sffamily\Large}
    %\subsectionfont{\sffamily}
  
  %\usepackage[Bjornstrup]{fncychap}
  %  \ChTitleVar{\raggedleft\LARGE\sffamily\bfseries}

%\usepackage[scale=0.7, hmarginratio=1:3, vmargin=2.5cm, twoside]{geometry}
%\usepackage[scale=0.7, hmarginratio=4:11, vmargin=3cm, twoside]{geometry}

% Page numbering turned off
%\usepackage{fancyhdr}
%\pagestyle{empty}
%\pagestyle{fancy}
%\thispagestyle{empty}
%\fancyhead{}
%\fancyfoot{}
%\renewcommand{\headrulewidth}{0pt}
%\renewcommand{\footrulewidth}{0.4pt}

%\addtolength{\voffset}{-5pt}

%redefine itemize environment so the list items are bracketed by hrules
%\let\realquote\quote
%\let\endrealquote\endquote
%\renewenvironment{quote}{\em\realquote}{\endrealquote}

\theoremstyle{plain}
\newtheorem{theorem}{Věta}
\theoremstyle{remark}
\newtheorem{example}[theorem]{Příklad}
\theoremstyle{remark}
\newtheorem*{note}{Poznámka}
\theoremstyle{plain}
\newtheorem{proposition}[theorem]{Tvrzení}
\theoremstyle{definition}
\newtheorem{define}[theorem]{Definice}
\theoremstyle{plain}
\newtheorem{lemma}[theorem]{Lemma}

\floatname{algorithm}{Algoritmus}
\renewcommand{\algorithmicrequire}{\textbf{Vstup:}}
\renewcommand{\algorithmicensure}{\textbf{Výstup:}}

\newcommand{\DUroleref}[1]{\ref{#1}}
%\newcommand{\DUroletheorem}[1]{\begin{theorem}#1\end{theorem}}
%\newcommand{\DUroledefine}[1]{\begin{define}#1\end{define}}
%\newcommand{\DUroleproof}[1]{\begin{proof}#1\end{proof}}
