\usepackage{fancyhdr}
\usepackage[utf8]{inputenc}
\usepackage[magyar]{babel}
\usepackage{lmodern}%needed to make [T1] encoded font document searchable
\usepackage[T1]{fontenc}%[magyar]babel needs it for proper hyphenation
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{amsmath, amscd}
\usepackage{graphics, epsfig}
\usepackage[inline]{enumitem}

\setlist{noitemsep}
\setlist[enumerate,1]{label=(\alph*), ref=\arabic*,topsep=3pt,partopsep=0pt}

\textwidth 17cm
\headheight=15pt
%\evensidemargin=5mm
%\linespread{0.95}
\pagestyle{fancy}

\renewcommand{\headrulewidth}{0.5pt}
\fancyhead[L]{\bf Rátz László Vándorgyűlés}
\fancyhead[R]{\bf 2018 július, Győr}
\fancyfoot{}

\newcount\hwno
\newcount\exno
\def\ex{\global\advance\exno by 1\par\smallskip\noindent
{\bf \the\hwno-\the\exno:}
 }

\def\plainex{\global\advance\exno by 1\par\smallskip\noindent
{\bf \the\exno.}
 }

	\newlength{\vSkipAmount}
\newcommand{\twoOnPage}[1]{
	\setlength{\vSkipAmount}{0pt}
	\newdimen\height
	\setbox0=\vbox{#1}
	\height=\ht0 \advance\height by \dp0
	%Now, \height is the height of #1.
		%The value of heigth may be printed by: \the\height
	\addtolength{\vSkipAmount}{\textheight}
	\addtolength{\vSkipAmount}{-2\height}
	\setlength{\vSkipAmount}{\vSkipAmount}
	{#1}
	\vskip\vSkipAmount
	{#1}
}

\newcommand{\threeOnPage}[1]{
	\newdimen\height
	\setbox0=\vbox{#1}
	\height=\ht0 \advance\height by \dp0
	%Now, \height is the height of #1.
		%The value of heigth may be printed by: \the\height
	\newlength{\vSkipAmount}
	\addtolength{\vSkipAmount}{\textheight}
	\addtolength{\vSkipAmount}{-3\height}
	\setlength{\vSkipAmount}{0.5\vSkipAmount}
	{#1}
	\vskip\vSkipAmount
	{#1}
	\vskip\vSkipAmount
	{#1}
}

 
 
\newcommand{\noshow}[1]{}

\newtheorem{A}{Proposition}[section]
\newtheorem{T}[A]{Theorem}
\newtheorem{Le}[A]{Lemma}
\newtheorem{K}[A]{Corollary}
\newtheorem{SL}[A]{Sublemma}
\theoremstyle{definition}\newtheorem{D}{Definition}[section]
\theoremstyle{definition}\newtheorem{Ex}{Exercise}[section]
\theoremstyle{definition}\newtheorem{DA}{Definition A}
\theoremstyle{definition}\newtheorem{DB}{Definition B}
\theoremstyle{definition}\newtheorem{DC}{Definition C}

\renewcommand{\Re}{\mathbb R}
\newcommand{\Reh}{{\Re}^3}
\newcommand{\Red}{{\Re}^d}
\newcommand{\st}{\;:\;}
\newcommand{\ad}{\mathop{\textrm{ad}}\nolimits}
\newcommand{\Ad}{\mathop{\textrm{Ad}}\nolimits}
\newcommand{\tr}{\mathop{\textrm{tr}}\nolimits}
\newcommand{\im}{\mathop{\textrm{im}}\nolimits}
\newcommand{\sgn}{\mathop{\textrm{sgn}}\nolimits}
\newcommand{\id}{\mathop{\textrm{id}}\nolimits}
\newcommand{\grad}{\mathop{\textrm{grad}}\nolimits}
\newcommand{\dom}{\mathop{\textrm{dom}}\nolimits}
\newcommand{\Tr}{\mathop{\textrm{Tr}}\nolimits}
\newcommand{\Ric}{\mathop{\textrm{Ric}}\nolimits}
\newcommand{\vvect}[1]{\stackrel{\longrightarrow}{#1}}
\newcommand{\vect}[1]{{\mathbf{#1}}}

\newcommand{\hint}[1]{ \emph{Segítség: } #1}
\newcommand{\hinta}[1]{ \emph{Megjegyzés: } #1}
