%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Filename: hun.sty                                                       %
% Usage: \documentstyle[<options>,hun]{style}                             %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\@ifundefined{hunTeX}{}{\endinput}
%
\def\fileversion{1.0b}
\def\filedate{94 augusztus 29}
\def\prompt{>>>>\space}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\typeout{>>  Style Option `hun' v.\fileversion \space <\filedate>.}
\typeout{>> (C) T. Kocsis <kocsis@eet.bme.hu>}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%% BEGIN of DEFINITIONS for all styles %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% e1kezetek lejjebb sza1lli1ta1sa
% from "`german' Version 2.2 as of 6 Dec 1989"
{\catcode`\@=11 % \makeatletter
%
\gdef\allowhyphens{\penalty\@M \hskip\z@skip}
%
\newcount\U@C\newbox\U@B\newdimen\U@D
%
\gdef\umlauthigh{\def\"##1{{\accent127 ##1}}}
\gdef\umlautlow{\def\"{\protect\newumlaut}}
\gdef\newumlaut#1{\leavevmode\allowhyphens
     \vbox{\baselineskip\z@skip \lineskip.25ex
%          \baselineskip 0pt
     \ialign{##\crcr\hidewidth
     \setbox\U@B\hbox{#1}\U@D .01\p@\U@C\U@D
     \U@D\ht\U@B\advance\U@D -1ex\divide\U@D \U@C
     \U@C\U@D\U@D\the\fontdimen1\the\font
     \multiply\U@D \U@C\divide\U@D 100\kern\U@D
     \vbox to .20ex  % <--- depending on the METAFONT parameters
%                           of the fonts, the height of this \vbox
%                           may vary around the value of .20ex  --
%                           just try out, which will look best!
     {\hbox{\char127}\vss}\hidewidth\crcr#1\crcr}}\allowhyphens}
%\gdef\highumlaut#1{\leavevmode\allowhyphens
%     \accent127 #1\allowhyphens}
%
\gdef\humlauthigh{\def\H ##1{{\accent125 ##1}}}
\gdef\humlautlow{\def\H {\protect\newhumlaut}}
\gdef\newhumlaut#1{\leavevmode\allowhyphens
     \vbox{\baselineskip\z@skip \lineskip.25ex
%          \baselineskip 0pt
     \ialign{##\crcr\hidewidth
     \setbox\U@B\hbox{#1}\U@D .01\p@\U@C\U@D
     \U@D\ht\U@B\advance\U@D -1ex\divide\U@D \U@C
     \U@C\U@D\U@D\the\fontdimen1\the\font
     \multiply\U@D \U@C\divide\U@D 100\kern\U@D
     \vbox to .30ex  % <--- depending on the METAFONT parameters
%                           of the fonts, the height of this \vbox
%                           may vary around the value of .20ex  --
%                           just try out, which will look best!
     {\hbox{\char125}\vss}\hidewidth\crcr#1\crcr}}\allowhyphens}
%\gdef\highhumlaut#1{\leavevmode\allowhyphens
%     \accent125 #1\allowhyphens}
%
\gdef\accenthigh{\def\'##1{{\accent19 ##1}}}
\gdef\accentlow{\def\'{\protect\newaccent}}
\gdef\newaccent#1{\leavevmode\allowhyphens
     \vbox{\baselineskip\z@skip \lineskip.25ex
%          \baselineskip 0pt
     \ialign{##\crcr\hidewidth
     \setbox\U@B\hbox{#1}\U@D .01\p@\U@C\U@D
     \U@D\ht\U@B\advance\U@D -1ex\divide\U@D \U@C
     \U@C\U@D\U@D\the\fontdimen1\the\font
     \multiply\U@D \U@C\divide\U@D 100\kern\U@D
     \vbox to .30ex  % <--- depending on the METAFONT parameters
%                           of the fonts, the height of this \vbox
%                           may vary around the value of .20ex  --
%                           just try out, which will look best!
     {\hbox{\char19}\vss}\hidewidth\crcr#1\crcr}}\allowhyphens}
%\gdef\highaccent#1{\leavevmode\allowhyphens
%     \accent19 #1\allowhyphens}
%
%*****************************************************************
\gdef\originalTeX{\umlauthigh \humlauthigh \accenthigh
\typeout{\prompt Eredeti e1kezetek.}}
\gdef\hunTeX{\umlautlow \humlautlow \accentlow
\typeout{\prompt E1kezetek lejjebb sza1lli1tva.}}
%*****************************************************************
%
%\typeout{\prompt E1kezetek lejjebb sza1lli1tva.}
%
} % return to previous catcodes
%
\originalTeX
%\hunTeX
% Magyar da1tum bea1lli1ta1sa
\def\today{\number\year. \ifcase\month\or
 ja\-nu\-\'ar\or feb\-ru\-\'ar\or m\'ar\-ci\-us\or
 \'ap\-ri\-lis\or m\'a\-jus\or j\'u\-ni\-us\or
 j\'u\-li\-us\or augusz\-tus\or szep\-tem\-ber\or ok\-t\'o\-ber\or
 no\-vem\-ber\or de\-cem\-ber\fi
 \space\number\day.}
%
\typeout{\prompt Da1tum a1ta1lli1tva.}
%
\catcode`!=11
\let\!uppercase=\uppercase
\gdef\uppercase#1{\let\i=I\!uppercase{#1}}
\catcode`!=12
%% END of DEFINITIONS for all styles %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\@ifundefined{section}                       % nem book, report vagy article
  {%% BEGIN of EGYEBB %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     \typeout{\prompt A sti1lus nem article, book, vagy report!}%valami ma1s
     \endinput                               % egyszeru3en kile1pu2nk.
     % Ez itt egyelo3re u2res!
  }%% END of EGYEBB %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  {}
%{%% BEGIN of ARTICLE, BOOK or REPORT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%\def\huppercase#1{\let\i=I\uppercase{#1}}
%
\def\contentsname{Tartalom} % <----------
\def\listfigurename{\'Abr\'ak jegyz\'eke} % <----------
\def\listtablename{T\'abl\'azatok jegyz\'eke} % <----------
\def\indexname{T\'rgymutat\'o} % <----------
\def\figurename{\'abra} % <----------
\def\tablename{t\'abl\'azat} % <----------
%
\long\def\@makecaption#1#2{
 \vskip 10pt
 \setbox\@tempboxa\hbox{{\em #1.} #2}
 \ifdim \wd\@tempboxa >\hsize {\em #1.} #2\par \else \hbox
to\hsize{\hfil\box\@tempboxa\hfil}
 \fi}
%
%FIGURES
\def\fnum@figure{\thefigure.~\figurename{}}
%
%TABLES
\def\fnum@table{\thetable.~\tablename{}}
%
     \@ifundefined{chapter}                  % !chapter -> article
       {%% BEGIN of ARTICLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\def\refname{Irodalom} % <----------
\def\abstractname{Tartalmi kivonat} % <----------
\def\partname{R\'esz} % <----------
%
% CONTENTS
\def\tableofcontents{\section*{\contentsname
\@mkboth{\uppercase{\contentsname}}{\uppercase{\contentsname}}}
 \@starttoc{toc}}
%
%LIST OF FIGURES
\def\listoffigures{\section*{\listfigurename\@mkboth
{\uppercase{\listfigurename}}{\uppercase{\listfigurename}}}\@starttoc{lof}}
%
%LIST OF TABLES
\def\listoftables{\section*{\listtablename\@mkboth
{\uppercase{\listtablename}}{\uppercase{\listtablename}}}\@starttoc{lot}}
%
% REFERENCES
\def\thebibliography#1{\section*{\refname\@mkboth
 {\uppercase{\refname}}{\uppercase{\refname}}}\list
 {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus .07em}
 \sloppy\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax}
%
%INDEX
\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
 \columnseprule \z@
 \columnsep 35pt\twocolumn[\section*{\indexname}]
 \@mkboth{\uppercase{\indexname}}{\uppercase{\indexname}}%
 \thispagestyle{plain}\parindent\z@
 \parskip\z@ plus .3pt\relax\let\item\@idxitem}
%
%ABSTRACT
\def\abstract{\if@twocolumn
\section*{\abstractname}
\else \small
\begin{center}
{\bf \abstractname\vspace{-.5em}\vspace{0pt}}
\end{center}
\quotation
\fi}
%
% Ez kell ahhoz, hogy a fejlecben jo legyen a "capitalized" \'\i!
% Lehet, hogy ezt meg lehet roviditeni!
%
\mark{{}{}}
%
\if@twoside \def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{}\def\@evenfoot{}\def\@evenhead{\rm \thepage\hfil \sl
\leftmark}\def\@oddhead{\hbox{}\sl \rightmark \hfil
\rm\thepage}\def\sectionmark##1{\markboth {\uppercase{\ifnum \c@secnumdepth
>\z@
 \thesection\hskip 1em\relax \fi ##1}}{}}\def\subsectionmark##1{\markright
{\ifnum \c@secnumdepth >\@ne
 \thesubsection\hskip 1em\relax \fi ##1}}}
\else \def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{}\def\@evenfoot{}\def\@oddhead{\hbox {}\sl \rightmark \hfil
\rm\thepage}\def\sectionmark##1{\markright {\uppercase{\ifnum \c@secnumdepth
>\z@
 \thesection\hskip 1em\relax \fi ##1}}}}
\fi
\def\ps@myheadings{\let\@mkboth\@gobbletwo
\def\@oddhead{\hbox{}\sl\rightmark \hfil
\rm\thepage}\def\@oddfoot{}\def\@evenhead{\rm \thepage\hfil\sl\leftmark\hbox
{}}\def\@evenfoot{}\def\sectionmark##1{}\def\subsectionmark##1{}}
% art1x.sty-bo1l:
\def\@part[#1]#2{\ifnum \c@secnumdepth >\m@ne \refstepcounter{part}
\addcontentsline{toc}{part}{\thepart \hspace{1em}#1}\else
\addcontentsline{toc}{part}{#1}\fi { \parindent 0pt \raggedright
 \ifnum \c@secnumdepth >\m@ne \Large \bf \thepart. \partname
 \par\nobreak \fi \huge
\bf #2\markboth{}{}\par } \nobreak \vskip 3ex \@afterheading }
\def\@spart#1{{\parindent 0pt \raggedright
 \huge \bf
 #1\par} \nobreak \vskip 3ex \@afterheading }
%
\typeout{\prompt `article'-hez bea1lli1tva!}
       }%% END of ARTICLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
       {%% BEGIN of BOOK or REPORT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\def\chaptername{Fejezet} % <----------
\def\partname{R\'esz} % <----------
\def\bibname{Irodalom} % <----------
%
%CHAPTER
\def\@chapapp{\chaptername}
%
%PART
\def\@part[#1]#2{\ifnum \c@secnumdepth >-2\relax \refstepcounter{part}
\addcontentsline{toc}{part}{\thepart \hspace{1em}#1}\else
\addcontentsline{toc}{part}{#1}\fi \markboth{}{}
 {\centering \ifnum \c@secnumdepth >-2\relax \huge\bf\thepart. \partname{} \par
\vskip 20pt \fi \Huge \bf #2\par}\@endpart}
\def\@endpart{\vfil\newpage \if@twoside \hbox{} \thispagestyle{empty}
 \newpage
 \fi \if@tempswa \twocolumn \fi}
\def\@spart#1{{\centering \Huge \bf #1\par}\@endpart}
%
%CONTENTS
\def\tableofcontents{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \fi\chapter*{\contentsname
  \@mkboth{\uppercase{\contentsname}}{\uppercase{\contentsname}}}
 \@starttoc{toc}\if@restonecol\twocolumn\fi}
%
%LIST OF FIGURES
\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \fi\chapter*{\listfigurename\@mkboth
 {\uppercase{\listfigurename}}{\uppercase{\listfigurename}}}\@starttoc
 {lof}\if@restonecol
 \twocolumn\fi}
%
%LIST OF TABLES
\def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \fi\chapter*{\listtablename\@mkboth
 {\uppercase{\listtablename}}{\uppercase{\listtablename}}}\@starttoc
 {lot}\if@restonecol
 \twocolumn\fi}
%
%BIBLIOGRAPHY
\def\thebibliography#1{\chapter*{\bibname\@mkboth
 {\uppercase{\bibname}}{\uppercase{\bibname}}}\list
 {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus .07em}
 \sloppy\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist
%
%INDEX
\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
 \columnseprule \z@
 \columnsep 35pt\twocolumn[\@makeschapterhead{\indexname}]
 \@mkboth{\uppercase{\indexname}}{\uppercase{\indexname}}%
 \thispagestyle{plain}\parindent\z@
 \parskip\z@ plus .3pt\relax\let\item\@idxitem}
%
\def\appendixname{F\"uggel\'ek} % <-----------
\def\appendix{\par
 \setcounter{chapter}{0}
 \setcounter{section}{0}
 \def\@chapapp{\appendixname}
 \def\thechapter{\Alph{chapter}}}
% book1x.sty es rep1x.sty-bol:
\def\@makechapterhead#1{ \vspace*{50pt} { \parindent 0pt \raggedright
 \ifnum \c@secnumdepth >\m@ne \huge\bf \thechapter. \@chapapp{} \par
 \vskip 20pt \fi \Huge \bf #1\par
 \nobreak \vskip 40pt } }
%
          \@ifundefined{abstract}            % book
             {%% BEGIN of BOOK %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Ez kell ahhoz, hogy a fejlecben jo legyen a "capitalized" \'\i!
% Lehet, hogy ezt meg lehet roviditeni!
%
\mark{{}{}}
%
\def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{}\def\@evenfoot{}\def\@evenhead{\rm \thepage\hfil \sl
\leftmark}\def\@oddhead{\hbox{}\sl \rightmark \hfil
\rm\thepage}\def\chaptermark##1{\markboth {\uppercase{\ifnum \c@secnumdepth
>\m@ne
 \thechapter. \@chapapp\ \ \fi ##1}}{}}\def\sectionmark##1{\markright
{\uppercase{\ifnum \c@secnumdepth >\z@
 \thesection. \ \fi ##1}}}}
\def\ps@myheadings{\let\@mkboth\@gobbletwo
\def\@oddhead{\hbox{}\sl\rightmark \hfil
\rm\thepage}\def\@oddfoot{}\def\@evenhead{\rm \thepage\hfil\sl\leftmark\hbox
{}}\def\@evenfoot{}\def\chaptermark##1{}\def\sectionmark##1{}%
\def\subsectionmark##1{}}
% book1.sty-bol
\def\chapter{\cleardoublepage \thispagestyle{plain} \global\@topnum\z@
\@afterindentfalse \secdef\@chapter\@schapter}
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
 \refstepcounter{chapter}
 \typeout{\thechapter.\space\@chapapp}
 \addcontentsline{toc}{chapter}{\protect
 \numberline{\thechapter.}#1}\else
 \addcontentsline{toc}{chapter}{#1}\fi
 \chaptermark{#1}
 \addtocontents{lof}{\protect\addvspace{10pt}}
\addtocontents{lot}{\protect\addvspace{10pt}} \if@twocolumn
\@topnewpage[\@makechapterhead{#2}]
 \else \@makechapterhead{#2}
 \@afterheading \fi}
\def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]
 \else \@makeschapterhead{#1}
 \@afterheading\fi}
\typeout{\prompt `book'-hoz bea1lli1tva!}
             }%% END of BOOK %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
             {%% BEGIN of REPORT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% titlepage.sty  27 Jan 85 -bol:
\def\abstractname{Tartalmi kivonat} % <----------
%
% report.sty 13-Nov-89 -bol !!!! ARTICLE-ben es REPORT-ban is megcsinalni!!!
\def\thepart {\Roman{part}}
\def\thechapter {\arabic{chapter}}
\def\thesection {\thechapter.\arabic{section}.}
\def\thesubsection {\thesection\arabic{subsection}.}
\def\thesubsubsection {\thesubsection\arabic{subsubsection}.}
\def\theparagraph {\thesubsubsection\arabic{paragraph}.}
\def\thesubparagraph {\theparagraph\arabic{subparagraph}.}
\def\thefigure{\thechapter.\@arabic\c@figure}
\def\thetable{\thechapter.\@arabic\c@table}
%
\def\abstract{\titlepage
\null\vfil
\begin{center}
{\bf \abstractname}
\end{center}}
\def\endabstract{\par\vfil\null\endtitlepage}
%
% Ez kell ahhoz, hogy a fejlecben jo legyen a "capitalized" \'\i!
% Lehet, hogy ezt meg lehet roviditeni!
%
\mark{{}{}}
%
\if@twoside \def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{}\def\@evenfoot{}\def\@evenhead{\rm \thepage\hfil \sl
\leftmark}\def\@oddhead{\hbox{}\sl \rightmark \hfil
\rm\thepage}\def\chaptermark##1{\markboth {\uppercase{\ifnum \c@secnumdepth
>\m@ne
 \thechapter. \@chapapp\ \ \fi ##1}}{}}\def\sectionmark##1{\markright
{\uppercase{\ifnum \c@secnumdepth >\z@
 \thesection. \ \fi ##1}}}}
\else \def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{}\def\@evenfoot{}\def\@oddhead{\hbox {}\sl \rightmark \hfil
\rm\thepage}\def\chaptermark##1{\markright {\uppercase{\ifnum \c@secnumdepth
>\m@ne
 \thechapter. \@chapapp\ \ \fi ##1}}}}
\fi
\def\ps@myheadings{\let\@mkboth\@gobbletwo
\def\@oddhead{\hbox{}\sl\rightmark \hfil
\rm\thepage}\def\@oddfoot{}\def\@evenhead{\rm \thepage\hfil\sl\leftmark\hbox
{}}\def\@evenfoot{}\def\chaptermark##1{}\def\sectionmark##1{}%
\def\subsectionmark##1{}}
% rep1x.sty-bol:
\def\chapter{\clearpage \thispagestyle{plain} \global\@topnum\z@
\@afterindentfalse \secdef\@chapter\@schapter}
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
 \refstepcounter{chapter}
 \typeout{\thechapter.\space\@chapapp}
 \addcontentsline{toc}{chapter}{\protect
 \numberline{\thechapter.}#1}\else
 \addcontentsline{toc}{chapter}{#1}\fi
 \chaptermark{#1}
 \addtocontents{lof}{\protect\addvspace{10pt}}
\addtocontents{lot}{\protect\addvspace{10pt}} \if@twocolumn
\@topnewpage[\@makechapterhead{#2}]
 \else \@makechapterhead{#2}
 \@afterheading \fi}
\def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]
 \else \@makeschapterhead{#1}
 \@afterheading\fi}
%
\typeout{\prompt `report'-hoz bea1lli1tva!}
             }%% END of REPORT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
       }%% END of BOOK or REPORT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%}%% END of ARTICLE, BOOK or REPORT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\endinput
% End of HUN.STY
