\NeedsTeXFormat{LaTeX2e}

\ProvidesPackage{sty/post}[2004/11/21]

\RequirePackage[latin2]{inputenc}
\RequirePackage{mathbbol}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% peldak szamlaloja
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcounter{peldacount}
\setcounter{peldacount}{0}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% footnote-ot lehessen matekos kornyezetben is hasznalni
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand*{\footnote}[1]{} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% ldots-ot lehessen matekos kornyezetben is hasznalni
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand*\ldots{\ensuremath{\oldldots}\relax} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% definicios index, egyelore kivesszuk
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\inddef}[1]{} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% kulcsszavak definíciója algoritmus környezetben
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\key}[1]{\textcolor{blue}{\textbf{#1}}} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% textcolor egyelore nem csinal semmit, majd kesobb
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\textcolor}[2]{\xmlTrace{font:}\xmlTrace{color:}#1\xmlTrace{:color}#2\xmlTrace{:font}} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% tony fele kekito extra kiemeles
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\ki}[1]{\textcolor{blue}{\textbf{\textit{#1}}}} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% a koz-t egyelore kihagyjuk
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\koz}{\quad} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% a cite-et egyelore kihagyjuk, mert a bibtex adatbazisok tele vannak hibaval
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\renewcommand*{\cite}[1]{[#1]} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% a textit-et meg trace-eljuk
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand*{\textit}[1]{\xmlTrace{textit:}#1\xmlTrace{:textit}} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% a temph-et meg trace-eljuk
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand*{\emph}[1]{\textit{#1}} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% a textsxc helyett csupa nagy betu
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand*{\textsc}[1]{\xmlTrace{textsc:}#1\xmlTrace{:textsc}} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% a textbf-et meg trace-eljuk
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand*{\textbf}[1]{\xmlTrace{textbf:}#1\xmlTrace{:textbf}} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% a texttt-et meg trace-eljuk
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand*{\texttt}[1]{\xmlTrace{texttt:}#1\xmlTrace{:texttt}} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% a \@chapter ujradefinialasa
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\@chapter}[2][]{
\setcounter{peldacount}{0}
\refstepcounter{chapter}
 \addcontentsline{toc}{chapter}%
                                   {\protect\numberline{\thechapter.}#1}%
\xmlTrace{chapter:}
\xmlTrace{clabel:}\thechapter.\ \xmlTrace{:clabel} 
#2\xmlTrace{:chapter}
}

\renewcommand\chapter{%\clearpage
					\setcounter{peldacount}{0}
					\newpage
                    %\thispagestyle{empty}
                    \global\@topnum\z@
                    \@afterindentfalse
                    \secdef\@chapter\@schapter}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% a nevindex-et kiszedjuk
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\nevindex}[1]{} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% az itemize kornyezetet trace-eljuk, az elejen egy nyito item, a vegen egy zaro
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewenvironment*{itemize}{
%% az itemparancsba egy zaro-nyito taget teszunk
\def\item{%
\xmlTrace{:item}\xmlTrace{item:}
  \@inmatherr\item
  \@ifnextchar [\@item{\@noitemargtrue \@item[\@itemlabel]}
}
  \xmlTrace{itemize:}
  \xmlTrace{item:}  
  \ifnum \@itemdepth >\thr@@\@toodeep\else
    \advance\@itemdepth\@ne
    \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
    \expandafter
	\list
      \csname\@itemitem\endcsname
      {\def\makelabel##1{\hss\llap{##1}}}%
  \fi
}{

\endlist
\xmlTrace{:item}
\xmlTrace{:itemize}
}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% a center kornyezetnek csak egy trace
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewenvironment*{center}
{\xmlTrace{center:}
\xmlTrace{mypar:}
}
{
\xmlTrace{:mypar}
\xmlTrace{:center}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% a href parancsbol szedjuk ki az URL-t, es a kiirt cuccokat
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\href}[2]{
\xmlTrace{href:}
\xmlTrace{hurl:}#1\xmlTrace{:hurl}
#2
\xmlTrace{:href}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% a hrefun ugyanazt csinalja mint a href, egyelore nem tudom mi a kulonbseg
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\hrefun}[2]{\href{#1}{#2}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% a csillagos chapter is rendben lesz 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\@makeschapterhead#1{%
	\xmlTrace{chapter:}
	\xmlTrace{clabel:}\xmlTrace{:clabel} 
  {\parindent \z@ \raggedright
    \normalfont
    \interlinepenalty\@M
    #1\xmlTrace{:chapter}
\par\nobreak
  }
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% part trace-ekkel
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\@part[#1]#2{
\thispagestyle{empty}
\ifnum \c@secnumdepth >-2\relax
  \refstepcounter{part}
  \addcontentsline{toc}{part}{\thepart. #1}
\else
  \addcontentsline{toc}{part}{#1}
\fi
\markboth{}{}
	{
	   \centering
	   \baselineskip34pt 
       \interlinepenalty \@M
       \normalfont
       \ifnum \c@secnumdepth >-2\relax		   
           \huge{\xmlTrace{part:}\xmlTrace{plabel:}\thepart.\ \xmlTrace{:plabel}}
       \fi
	      {\huge{#2}\xmlTrace{:part}\csname par\endcsname}
	}
\@endpart
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% tetel csinalo makrok trace-elese, ez kell a definiciohoz is
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\@begintheorem#1#2{
\xmlTrace{paragraph:}
  \textcolor{magenta}{\textbf{#2.\ #1.\ }}  
  \xmlTrace{textit:}  
}
   
\def\@opargbegintheorem#1#2#3{
\xmlTrace{paragraph:}
  \textcolor{magenta}{\textbf{#2.\  #1(#3).\ }} 
  \xmlTrace{textit:}
}

\def\@endtheorem{
\xmlTrace{:textit}
\xmlTrace{:paragraph}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% tetel kornyezet, tetel alapu
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newtheorem{tetel}{\textcolor{magenta}{tétel}}[chapter]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% JPG ábrák beillesztése aláírással 2005. DECEMBER 13.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\@kepjpg}[3]{
\xmlTrace{img:}
\xmlTrace{src:}pics/#1.jpg\xmlTrace{:src}
\xmlTrace{:img}
\caption{#2}
}

\newcommand{\epskepnagyjpg}[3]{\@kepjpg{#1}{#2}{#3}}
\newcommand{\epskepjpg}[3]{\@kepjpg{#1}{#2}{#3}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% GIF ábrák beillesztése aláírással  2005. DECEMBER 13.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\@kepgif}[3]{
\xmlTrace{img:}
\xmlTrace{src:}pics/#1.gif\xmlTrace{:src}
\xmlTrace{:img}
\caption{#2}
}

\newcommand{\epskepnagygif}[3]{\@kepgif{#1}{#2}{#3}}
\newcommand{\epskepgif}[3]{\@kepgif{#1}{#2}{#3}}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% GIF ábrák beillesztése aláírás nélkül  2005. JANUÁR 21.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\@kodgif}[1]{
\xmlTrace{img:}
\xmlTrace{src:}pics/#1.gif\xmlTrace{:src}
\xmlTrace{:img}
}

\newcommand{\kodgiff}[1]{\@kodgif{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% JPG ábrák beillesztése 2005. JANUÁR 21.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\@kodjpg}[1]{
\xmlTrace{img:}
\xmlTrace{src:}pics/#1.jpg\xmlTrace{:src}
\xmlTrace{:img}
}

\newcommand{\kodjpgg}[1]{\@kodjpg{#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% TIF ábrák beillesztése aláírás nélkül  2005. JANUÁR 22.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\@kodtif}[1]{
\xmlTrace{img:}
\xmlTrace{src:}pics/#1.tif\xmlTrace{:src}
\xmlTrace{:img}
}

\newcommand{\kodtiff}[1]{\@kodtif{#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% definicio kornyezet, tetel alapu   2005. JANUÁR 15.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newtheorem{defi}[tetel]{\textcolor{magenta}{definíció}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% hivatkozasokkal gond van, egyelore kivesszuk
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\renewcommand{\ref}[1]{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% pelda kornyezet, a betumeretet eggyel kisebbre vesszuk 2005. JANUÁR 15.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{pelda}{
\let\oldpar=\par
\stepcounter{peldacount}
\def\@currentlabel{\thechapter.\thepeldacount.}   
\small   
\noindent
\xmlTrace{paragraph:}
\xmlTrace{font:}
\xmlTrace{size:}-1\xmlTrace{:size}
\xmlTrace{mypar:}
\textcolor{magenta}{\textbf{\thechapter.\thepeldacount. példa.\ }}  

}
{
\xmlTrace{:mypar}
\xmlTrace{:font}
\xmlTrace{:paragraph}
\normalsize
\let\par=\oldpar
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% section csinalok ujra, csillagos is jol mukodik
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\@seccntformat#1{\xmlTrace{slabel:}\csname the#1\endcsname.\ \xmlTrace{:slabel} }

\def\@startsection#1#2#3#4#5#6{%
  \if@noskipsec \leavevmode \fi
  \par
  \@tempskipa #4\relax
  \@afterindenttrue
  \ifdim \@tempskipa <\z@
    \@tempskipa -\@tempskipa \@afterindentfalse
  \fi
  \if@nobreak
    \everypar{}%
  \else
    \addpenalty\@secpenalty\addvspace\@tempskipa
  \fi
  \@ifstar
    {\@ssect{#1}{#3}{#4}{#5}{#6}}%
    {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}

\def\@ssect#1#2#3#4#5#6{%
\xmlTrace{#1:}
  \@tempskipa #4\relax
  \ifdim \@tempskipa>\z@
    \begingroup
      #5{%
        \@hangfrom{\hskip #2}%
          \interlinepenalty \@M #6\@@par}%
    \endgroup
  \else
    \def\@svsechd{#5{\hskip #2\relax #6}}%
  \fi
  \@xsect{#4}\xmlTrace{:#1}
}


\def\@sect#1#2#3#4#5#6[#7]#8{%
\xmlTrace{#1:}
    \ifnum #2>\c@secnumdepth
      \let\@svsec\@empty
    \else
      \refstepcounter{#1}%
      \protected@edef\@svsec{\@seccntformat{#1}\relax}%
    \fi
	
    \@tempskipa #5\relax
    \ifdim \@tempskipa>\z@
      \begingroup
        #6{%
          \@hangfrom{\hskip #3\relax\@svsec}%
            \interlinepenalty \@M #8\@@par}%
      \endgroup
      \csname #1mark\endcsname{#7}%
      \addcontentsline{toc}{#1}{%
        \ifnum #2>\c@secnumdepth \else
          \protect\numberline{\csname the#1\endcsname.}%
        \fi
        #7}%
    \else
      \def\@svsechd{%
        #6{\hskip #3\relax
        \@svsec #8\\}%
        \csname #1mark\endcsname{#7}%
        \addcontentsline{toc}{#1}{%
          \ifnum #2>\c@secnumdepth \else
            \protect\numberline{\csname the#1\endcsname.}%
          \fi
          #7}}%
    \fi
    \@xsect{#5}
\xmlTrace{:#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% algoritmussal kapcsolatos parancsok
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{alg}[1]{
\xmlTrace{paragraph:}
\vbox
\bgroup
\noindent\textcolor{blue}{\textsc{#1}} 
\begin{tabbing}%
99 \= xxx\=xxx\=xxx\=xxx\=xxx\=xxx\=xxx\=xxx\=xxx\=xxx\=xxx \+ \kill 
}
{
\end{tabbing}
\egroup
\xmlTrace{:paragraph}
}

\newenvironment{algN}[1]{
\xmlTrace{paragraph:}
\vbox
\bgroup
\noindent\textcolor{blue}{\textsc{#1}} 
\begin{tabbing}%
99 \= xxx\=xxx\=xxx\=xxx\=xxx\=xxx\=xxx\=xxx\=xxx\=xxx\=xxx \+ \kill 
}
{
\end{tabbing}
\egroup
\xmlTrace{:paragraph}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% tabbingal kapcsolatos dolgok
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% legyen kerete?
\newcommand{\@border}[1]{\xmlTrace{border:}#1\xmlTrace{:border}}

\gdef\tabbing{
	 % regi item-et elrakjuk
	 \let\olditem=\item

	 \def\item{%
  	 \@inmatherr\item
  	 \@ifnextchar [\@item{\@noitemargtrue \@item[\@itemlabel]}
	 }
	 % tabbing definicioja
	 \xmlTrace{tabbing:}
	  \@border{0}
	 \lineskip \z@skip\let\>\@rtab\let\<\@ltab\let\=\@settab
     \let\+\@tabplus\let\-\@tabminus\let\`\@tabrj\let\'\@tablab
     \let\\=\@tabcr
     \@hightab\@firsttab
     \global\@nxttabmar\@firsttab
     \dimen\@firsttab\@totalleftmargin
     \global\@tabpush\z@ \global\@rjfieldfalse
     \trivlist \item\relax
     \if@minipage\else\vskip\parskip\fi
     \setbox\@tabfbox\hbox{%
       \rlap{\hskip\@totalleftmargin\indent\the\everypar}}%
     \def\@itemfudge{\box\@tabfbox}%
     \@startline\ignorespaces}

\gdef\endtabbing{%
  \@stopline\ifnum\@tabpush >\z@ \@badpoptabs \fi\endtrivlist
  \xmlTrace{:tabbing}
  \let\item=\olditem
  }

\gdef\@startline{%
	 \ifnum \@nxttabmar >\@hightab
       \@badtab
       \global\@nxttabmar \@hightab
	   
     \fi
	 
     \global\@curtabmar \@nxttabmar
     \global\@curtab \@curtabmar
     \global\setbox\@curline \hbox {\xmlTrace{tr:}}%
	 
	 \@startfield
     \strut
	 }
	 
\gdef\@stopline{%
  \unskip
  \@stopfield
  \if@rjfield
    \global\@rjfieldfalse
    \@tempdima\@totalleftmargin
    \advance\@tempdima\linewidth
    \hb@xt@\@tempdima{%
      \@itemfudge\hskip\dimen\@curtabmar
      \box\@curline
      \hfil
      \box\@curfield}%
  \else
    \@addfield
    \hbox{\@itemfudge\hskip\dimen\@curtabmar\box\@curline\xmlTrace{:tr}}%
	
  
  \fi}
  
\gdef\@startfield{%
  \global\setbox\@curfield\hbox\bgroup\color@begingroup\xmlTrace{td:}}
\gdef\@stopfield{%
  \xmlTrace{:td}\color@endgroup\egroup}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% figure caption
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewenvironment{figure}
{
\vbox\bgroup 
   % \xmlTrace{tabbing:}
}
{
    %\xmlTrace{:tabbing}			   
\egroup
}

\def\caption#1{%
\refstepcounter{figure}
	\xmlTrace{caption:}\xmlTrace{mypar:}\textcolor{magenta}{\textbf{\thefigure.ábra.}} #1\xmlTrace{:mypar}\xmlTrace{:caption}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% tabular kornyezet
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\mytabsep}{\xmlTrace{:td}\xmlTrace{td:}}

\renewenvironment{tabular}[1]{
\let\vikcr\\
\def\\{\xmlTrace{:td}\xmlTrace{:tr}\vikcr\xmlTrace{tr:}\xmlTrace{td:}}
\renewcommand*{\hline}{}

\xmlTrace{tabbing:}
\@border{1}	 
\xmlTrace{tr:}
\xmlTrace{td:}
\catcode`\&=11
}
{
\catcode`\&=4
\xmlTrace{:td}
\xmlTrace{:tr}
\xmlTrace{:tabbing}
\let\\\vikcr
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% gyak kornyezet
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcounter{gyakcounter}[section]

\newenvironment{gyak}
{

 \subsubsection*{Gyakorlatok}
  \setcounter{gyakcounter}{0}
}
{
}

\newcommand{\ujgyak}{\refstepcounter{gyakcounter}
\def\@currentlabel{\thechapter.\@arabic\c@section-\thegyakcounter.} 
\xmlTrace{paragraph:}
\xmlTrace{:paragraph}
\noindent\textcolor{magenta}{\textbf{\thechapter.\@arabic\c@section-\thegyakcounter.}}
}

\newcommand{\ujgyakmeg}[1]{}

\newcommand{\hardgyak}{\refstepcounter{gyakcounter}
\def\@currentlabel{\thechapter.\@arabic\c@section-\thegyakcounter.}
\xmlTrace{paragraph:}
\xmlTrace{:paragraph}
\noindent\textcolor{magenta}{\textbf{\thechapter.\@arabic\c@section-\thegyakcounter.*}}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% feladat kornyezet
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcounter{fldcounter}																							  

\newenvironment{fld}{\section*{Feladatok}%
\setcounter{fldcounter}{0}
}
{
}
\newcommand*{\ujfldmeg}[1]{}
\newcommand*{\ujfld}[2]{
\refstepcounter{fldcounter}
\def\@currentlabel{\thechapter-\thefldcounter.}

\xmlTrace{paragraph:}
\xmlTrace{:paragraph}
\textbf{\textit{\thechapter-\thefldcounter.\ {#1}}}\\
\@afterindentfalse #2
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% fejezet megjegyzés kornyezet
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{fejmegj}{\section*{Megjegyzések a fejezethez} 
\xmlTrace{mypar:}
}{
\xmlTrace{:mypar}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% cim a bibliografiaban
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\bibcim}[2]{\ifthenelse{\equal{#2}{}} 
									{#1}
									{\hrefun{#2}{#1}}
						}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Bibligrafia ujra
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewenvironment{thebibliography}[2][\bibname]
     {\chapter*{Irodalomjegyzék}
	  \footnotesize
	
      \list{\@biblabel{\@arabic\c@enumiv}}
           {\settowidth\labelwidth{\@biblabel{#2}}
			\leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \@openbib@code
            \usecounter{enumiv}
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c@enumiv}}
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000
      \sfcode`\.\@m
%%
%% hogy jól ugorjon a tartalomjegyzékből  (2004. március 24.)
%%
\refstepcounter{chapter}
\addcontentsline{toc}{chapter}{Irodalomjegyzék}\markboth{#1}{#1}
}
{
\def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}
\endlist
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Tartalomjegyzek ujra
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\contentsname}{Tartalomjegyzék}

\renewcommand\tableofcontents{
    \if@twocolumn
      \@restonecoltrue\onecolumn
    \else
      \@restonecolfalse
    \fi
	
	 \chapter*{\contentsname}\markboth{\contentsname}{\contentsname}
\xmlTrace{toc:}
    \@starttoc{toc}
\xmlTrace{:toc}	
    \if@restonecol\twocolumn\fi
	\rm
   }

\def\addcontentsline#1#2#3{%
  \addtocontents{#1}{\xmlTrace{tocitem:}
  \protect\contentsline{\xmlTrace{toctype:}#2\xmlTrace{:toctype}}{\xmlTrace{toctitle:}#3\xmlTrace{:toctitle}}{\thepage}
  \xmlTrace{:tocitem}}}

\renewcommand\contentsline[3]{#1 #2}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Sajatpar parancs eroltetett sortoresre
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\mypar}{\xmlTrace{par}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Bizonyitas kornyezet
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{biz}[1][]{
\par\noindent{\textcolor{H}{\textbf{Bizonyítás.}}}\textcolor{H}{\textbf{#1}}  %%% 2004. November 25.
\normalsize\lineskip=3pt         %% 2003. augusztus 9.
}
{
%\fkocka
\lineskip=6pt
\noindent\ignorespaces
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% masodik fejezetes cuccok
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% mathbb-vel egyenlore nem tudom mi legyen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\newcommand{\N}{\mathbb{N}}
%\newcommand{\R}{\mathbb{R}}
%\newcommand{\Z}{\mathbb{Z}}
%\newcommand{\Q}{\mathbb{Q}}
%\newcommand{\C}{\mathbb{C}}

\newcommand{\N}{N}
\newcommand{\R}{R}
\newcommand{\Z}{Z}
\newcommand{\Q}{Q}
\newcommand{\C}{C}

\newcommand{\idez}[1]{{\ideze}#1''}
\newcommand{\ideze}{\setbox0=\hbox{\lower1.38ex\hbox{''}}\dp0=0pt\box0}

\newcommand{\gyakindex}[1]{\index{#1|gyak}}
\newcommand{\abraindex}[1]{\index{#1|abra}} 
\newcommand{\felindex}[1]{\index{#1|fel}}
\newcommand{\pelindex}[1]{\index{#1|pel}}   
\newcommand{\labindex}[1]{\index{#1|lab}}  

\newcommand{\var}[1]{#1}

\newtheorem{lemma}[tetel]{lemma}
\newtheorem{allit}[tetel]{\textcolor{H}{állítás}}
\newtheorem{kov}[tetel]{\textcolor{H}{következmény}}
\newtheorem{sejtes}[tetel]{\textcolor{H}{sejtés}}
\newtheorem{megj}[tetel]{\textcolor{H}{megjegyzés}}
\newtheorem{dogma}[tetel]{dogma}   %%  Jörg Rothe (2004. március 20.)

\def\cd#1)#2{\smallbreak\indent \llap{\hbox to \parindent{\rm#1)
\hfil}}\ignorespaces #2\smallbreak}
\def\dx{\,dx}
\def\oK{\o K}
\def\notmid{\mathrel{\!\not\,\mid}}

\newcommand\la{\ \leftarrow \ }
\newcommand\ra{\ \rightarrow \ }
\newcommand\lra{\ \leftrightarrow \ }
\newcommand\La{\ \Leftarrow \ }
\newcommand\Ra{\ \Rightarrow \ }
\newcommand\Lra{\ \Leftrightarrow \ }
\newcommand\lola{\ \longleftarrow \ }
\newcommand\lora{\ \longrightarrow \ }
\newcommand\lolra{\ \longleftrightarrow \ }
\newcommand\Lola{\ \Longleftarrow \ }
\newcommand\Lora{\, \Longrightarrow \ }
\newcommand\Lolra{\ \Longleftrightarrow \ }
\newcommand\Lolradef{\ :\Longleftrightarrow \ }

\newcommand{\@kocka}[1]{\mbox{\vrule height #1 width #1 \relax}} %% 2004. November 25.

\newcommand{\fkocka}{{\nobreak\hspace*{\fill}\nobreak\textcolor{H}{$\@kocka{5pt}$}\par\smallskip}}
																								  
																								  
																								  
\def\algnewpage
{
}

\def\algnewpageN
{
}
