\ProvidesPackage{studia}[2017/05/30 Studia UBB, Series Informatica]
\NeedsTeXFormat{LaTeX2e}

\RequirePackage[a4paper]{geometry}

\setlength{\textheight}{29.7cm}
\setlength{\textwidth}{21.0cm}
\setlength{\topmargin}{4.60cm}
\setlength{\headheight}{\baselineskip}
\setlength{\headsep}{\baselineskip}
\addtolength{\topmargin}{-1in}
\setlength{\topskip}{0pt}
\addtolength{\textheight}{-9.5cm}
\addtolength{\textheight}{-\headheight}
\addtolength{\textheight}{-\headsep}
\setlength{\oddsidemargin}{4cm}
\addtolength{\oddsidemargin}{-1in}
\setlength{\evensidemargin}{\oddsidemargin}
\setlength{\footskip}{1.5\baselineskip}
\addtolength{\textheight}{-\footskip}
\setlength{\marginparwidth}{0pt}
\setlength{\marginparsep}{0pt}
\addtolength{\textwidth}{-8cm}
\setlength{\normalparindent}{0.7cm}
\newif\if@french
\@frenchfalse

%\RequirePackage[T1]{fontenc}
\RequirePackage{indentfirst}
\RequirePackage{amssymb}

\DeclareOption{french}{\@frenchtrue}
\ProcessOptions

\renewcommand{\datename}{Received by the editors:}

\def\subjclassCR#1{\def\@subjclassCR{#1}}
\let\@subjclassCR=\@empty
\newcommand{\subjclassCRname}{\textup{1998} CR Categories and Descriptors}
\def\@setsubjclassCR{{\itshape\subjclassCRname.}\enspace\@subjclassCR\@addpunct.}

\def\maketitle{\par
  \@topnum\z@ % this prevents figures from falling at the top of page 1
  \@setcopyright
  \thispagestyle{firstpage}% this sets first page specifications
  \uppercasenonmath\shorttitle
  \ifx\@empty\shortauthors \let\shortauthors\shorttitle
  \else \andify\shortauthors \fi
  \@maketitle@hook
  \begingroup
  \@maketitle
  \toks@\@xp{\shortauthors}\@temptokena\@xp{\shorttitle}%
  \edef\@tempa{%
    \@nx\markboth{\@nx\MakeUppercase{\the\toks@}}{\the\@temptokena}}\@tempa
  \endgroup
  \c@footnote\z@
  \def\do##1{\let##1\relax}%
  \do\maketitle \do\@maketitle \do\title \do\@xtitle \do\@title
  \do\author \do\@xauthor \do\address \do\@xaddress
  \do\email \do\@xemail \do\curraddr \do\@xcurraddr
  \do\commby \do\@commby
  \do\dedicatory \do\@dedicatory \do\thanks \do\thankses
  \do\keywords \do\@keywords \do\subjclass \do\@subjclass
  \do\subjclassCR \do\@subjclassCR
}

\def\@maketitle{%
  \normalfont\normalsize
  \let\@makefnmark\relax  \let\@thefnmark\relax
  \ifx\@empty\@date\else \@footnotetext{\@setdate}\fi
  \ifx\@empty\@subjclass\else \@footnotetext{\@setsubjclass}\fi
  \ifx\@empty\@subjclassCR\else \@footnotetext{\@setsubjclassCR}\fi

  \ifx\@empty\@keywords\else \@footnotetext{\@setkeywords}\fi
  \ifx\@empty\thankses\else \@footnotetext{%
    \def\par{\let\par\@par}\@setthanks}\fi
  \@mkboth{\@nx\shortauthors}{\@nx\shorttitle}%
  \global\topskip42\p@\relax % 5.5pc   "   "   "     "     "
  \@settitle
  \ifx\@empty\authors \else \@setauthors \fi
  \ifx\@empty\@dedicatory
  \else
    \baselineskip18\p@
    \vtop{\centering{\footnotesize\itshape\@dedicatory\@@par}%
      \global\dimen@i\prevdepth}\prevdepth\dimen@i
  \fi
  \@setabstract
  \normalsize
  \if@titlepage
    \newpage
  \else
    \dimen@34\p@ \advance\dimen@-\baselineskip
    \vskip\dimen@\relax
  \fi
} % end \@maketitle

\def\publname{STUDIA UNIV. BABE\c{S}-BOLYAI, INFORMATICA}
\def\article@logo{%
  \vtop to 0pt{%
  \parindent\z@ \fontsize{7}{7\p@}\selectfont
  STUDIA UNIV. BABE\c{S}--BOLYAI, INFORMATICA, 
  Volume {\tiny\bfseries\currentvolume}, Number \currentissue, \currentyear\\DOI: \DOI\endgraf\vss}
}

\def\proof{\par{\it \prooname}. \ignorespaces}
\def\proofof#1{{\noindent {\it \prooname\ #1}. \ignorespaces}}
\def\endproof{~~\vbox{\hrule height0.6pt\hbox{%
   \vrule height1.3ex width0.6pt\hskip0.8ex
   \vrule width0.6pt}\hrule height0.6pt
  }}

\newenvironment{algorithm_studia}{%
\begin{tabbing}
xxxx\=xxxx\=xxxx\=xxxx\=xxxx\=xxxx\=xxxx\=xxxx\=xxxx\=\kill}%
{\end{tabbing}}

\def\copyrightyear{}
\def\copyrightyearmodC{}
\def\ISSN{}
\def\DOI{\def\DOI{10.24193/subbi.yyyy.i.nn}}
\def\copyrightprice{}
\def\currentvolume{LX}
\def\currentyear{2015}
\def\currentissue{1}
\def\currentmonth{}

\newcommand{\coordinates}[3]{
  \def\currentvolume{#1}
  \def\currentissue{#2}
  \def\currentyear{#3}
}

\endinput
