%
% sepln.sty
%
% ----------------------------------------------------------------------
%
% Este es el fichero de estilos LaTex para la SEPLN basado en el estilo ACL-COLING.
% Este fichero ha sido elaborado por P. Martínez-Barco y R. Muñoz Guillena
%
% ----------------------------------------------------------------------
%
% La plantilla del documento tendrá el siguiente aspecto:
%
%   \documentclass[a4paper, twocolumn, 11pt]{article}
%   \usepackage{sepln}
%   \usepackage{fullname_esp} o \usepackage{fullname}
%                        % para español o inglés respectivamente
%   \usepackage[spanish]{babel} o \usepackage[english]{babel}
%                        % para español o inglés respectivamente
%   \usepackage[latin1]{inputenc}
%   \title{...}
%   \author{...}
%	 \seplntranstitle{...} % titulo traducido a español o inglés
%   \seplnclave{...} % lista de palabras clave en español
%   \seplnresumen{...} % resumen en español
%   \seplnkey{...} % lista de palabras clave en inglés
%   \seplnabstract{...} % resumen en inglés
%   \seplnheading{volumen}{número}{año}{página inicio - página fin}{fecha recepción}{fecha aceptación}
%   \ShortHeadings{Título del artículo abreviado} {Apellidos1, N. y Apellidos2, N.}
%   \firstpageno{página inicio}
%   \begin{document}
%   \maketitle
%   ...                      % contribución del artículo
%   \bibliographystyle{fullname_esp} o \bibliographystyle{fullname} 
%                        % para español o inglés respectivamente
%   \bibliography{...}
%   \end{document}
%
% ----------------------------------------------------------------------
% AUTHOR FORMATS
%
% Los autores pueden tener los siguientes formatos
%
% Varios autores de la misma institución:
% \author{Author 1 \and ... \and Author n \\
%     Address line \\ ... \\ Address line}
% si los nombres no se ajustan en la misma línea
%         Author 1 \\ {\bf Author 2} \\ ... \\ {\bf Author n} \\
%
% Autores de diferentes instituciones:
% \author{Author 1 \\ Address line \\  ... \\ Address line
%     \And  ... \And
%     Author n \\ Address line \\ ... \\ Address line}
%
% Para editar los autores por filas usar \AND, como sigue:
% \author{Author 1 \\ Address line \\  ... \\ Address line
%     \AND
%     Author 2 \\ Address line \\ ... \\ Address line \And
%     Author 3 \\ Address line \\ ... \\ Address line}
%
%
% ----------------------------------------------------------------------
% ----------------------------------------------------------------------

\setlength\topmargin{-1cm} %fue -1cm
\setlength{\oddsidemargin}{0cm}
\setlength{\evensidemargin}{0cm}
\setlength{\textwidth}{16cm}
\setlength{\textheight}{24.5cm}
\setlength\columnsep{1cm}

\newlength\titlebox
\setlength\titlebox{4in}      % fue 2.25in
\setlength\headheight{12pt}
\setlength\headsep{1cm}
\setlength\footskip{15pt}
\pagestyle{empty}           % sin numero de páginas
\thispagestyle{empty}           % sin numero de páginas
\flushbottom
\twocolumn
\sloppy

\def\addcontentsline#1#2#3{}
\def\seplnkey#1{\gdef\@seplnkey{#1}}
\def\seplnclave#1{\gdef\@seplnclave{#1}}
\def\seplnresumen#1{\gdef\@seplnresumen{#1}}
\def\seplnabstract#1{\gdef\@seplnabstract{#1}}
\def\seplntranstitle#1{\gdef\@seplntranstitle{#1}}

%\def\daterecep#1{\gdef\@daterecep{#1}}
%\def\dateaccep#1{\gdef\@dateaccep{#1}}

% definicion de nombres en ingles e español

\def\keyname{Keywords}
\def\clavename{Palabras clave}
\def\resumenname{Resumen}
\def\abstname{Abstract}
\def\refname{\iflanguage{spanish}{Referencias}{References}}
%\def\daterecepname{\iflanguage{spanish}{Fecha recepci\'on}{Reception date}}
%\def\dateaccepname{\iflanguage{spanish}{Fecha aceptaci\'on}{Acceptance date}}


% ----------------------------------------------------------------------
% Titulo

\def\maketitle{%
  \par%
  \begingroup%
     \def\thefootnote{\fnsymbol{footnote}}%
     \def\@makefnmark{\rlap{$^{\@thefnmark}$\hss}}%
     % no paragraph breaks in \thanks
     \long\def\@makefntext##1{%
                  \parindent 1em\noindent%
                  \hbox to 1em{$^{\@thefnmark}$}##1}
     \twocolumn[\@maketitle] \@thanks%
  \endgroup%
  \setcounter{footnote}{0}%
  \let\maketitle\relax\let\@maketitle\relax%
  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}%
  \let\thanks\relax}

%
%
\def\@maketitle{%
  \vbox to \titlebox{%
    \hsize\textwidth\linewidth\hsize%
    \vskip 0.125in minus 0.05in%
    \centering{\fontsize{14pt}{16pt}\bf{ \@title}}
	 \vskip 0.2in
	 \centering{\fontsize{12pt}{14pt}\bf{ \textit{\@seplntranstitle}}\par}%
    \vskip 0.2in plus 0.1fil minus 0.1in
    {\def\and{\unskip\enspace{\rm y}\enspace}%
     \def\And{\end{tabular}\hss \egroup \hskip 1in plus 2fil
              \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bf}%
     \def\AND{\end{tabular}\hss\egroup \hfil\hfil\egroup
          \vskip 0.25in plus 1fil minus 0.125in
          \hbox to \linewidth\bgroup\large \hfil\hfil
          \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bf}
    \hbox to \linewidth \bgroup\large \hfil\hfil
    \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bf\@author
                \end{tabular}\hss\egroup
    \hfil\hfil\egroup}
 

\vskip 0.2in 
\parbox[l]{14cm}{{\bf \resumenname:} \@seplnresumen \\ {\bf \clavename:} \@seplnclave}
\vskip 0.15in
\parbox[l]{14cm}{{\bf \abstname:} \@seplnabstract \\ {\bf \keyname:} \@seplnkey}
\vskip 0.2in plus 2fil minus 0.1in
  

}}

% ----------------------------------------------------------------------
% abstract

\renewenvironment{abstract}{%
      \list{}{\advance\topsep by0.32cm\relax %\small
      \leftmargin=0.32cm
      \labelwidth=\z@
      \listparindent=\z@
      \itemindent\listparindent
      \rightmargin\leftmargin}\item[\hskip\labelsep
                                    \bfseries\abstractname :]}
    {\endlist}


% ----------------------------------------------------------------------
% sección de cabeceras

\def\section{%
    \@startsection{section}{1}{\z@}%
                  {-2.0ex plus -0.5ex minus -0.3ex}%
                  {0.8ex plus 0.3ex minus 0.2ex}%
                  {\fontsize{12pt}{14pt}\bfseries \itshape \raggedright}}
\def\subsection{%
    \@startsection{subsection}{2}{\z@}%
                  {-1.4ex plus -0.4ex minus -0.2ex}%
                  {0.6ex plus 0.2ex minus 0.1ex}%
                  {\fontsize{12pt}{14pt}\bf\raggedright}}
\def\subsubsection{%
    \@startsection{subsubsection}{3}{\z@}%
                  {-0.8ex plus -0.3ex minus -0.1ex}%
                  {0.4ex plus 0.1ex minus 0.1ex}%
                  {\normalsize\bf\raggedright}}

\def\paragraph{%
    \@startsection{paragraph}{4}{\z@}%
                  {-0.8ex plus -0.3ex minus -0.1ex}%
                  {-1em}%
                  {\normalsize\bf}}
\def\subparagraph{%
    \@startsection{subparagraph}{5}{\parindent}%
                  {0.4ex plus 0.3ex minus 0.1ex}%
                  {-1em}%
                  {\normalsize\bf}}


% ----------------------------------------------------------------------
% Nota al pie

%\footnotesep 6.65pt %
%\skip\footins 9pt plus 4pt minus 2pt
%\def\footnoterule{\kern-3pt \hrule width 5pc \kern 2.6pt }
%\setcounter{footnote}{0}

% ----------------------------------------------------------------------
% Listas y párrafos

\setlength\parindent{0.5cm}

\leftmargin 2em \leftmargini\leftmargin \leftmarginii 2em
\leftmarginiii 1.5em \leftmarginiv 1.0em \leftmarginv .5em \leftmarginvi .5em
\labelwidth\leftmargini\advance\labelwidth-\labelsep \labelsep 5pt

% ----------------------------------------------------------------------
% Figuras y tablas
%
\renewcommand\topfraction{.9}
\renewcommand\bottomfraction{.5}
\renewcommand\dbltopfraction{.9}    % 2-column floats

% Minima fracción de página que puede ser ocupada por un texto:
%
\renewcommand\textfraction{.1}

% Máxima fracción de página:
%
\renewcommand\floatpagefraction{0.9}
\renewcommand\dblfloatpagefraction{.9}

% ----------------------------------------------------------------------
%
% estilos de fuentes

%  \normalsize
%
\ifcase\@ptsize%
    \renewcommand{\normalsize}{%                10pt
        \@setsize\normalsize{11.3pt}\xpt\@xpt%
        \abovedisplayskip 10\p@\@plus2\p@\@minus5\p@%
        \abovedisplayshortskip\z@\@plus3\p@%
        \belowdisplayshortskip 4\p@\@plus3\p@\@minus3\p@%
        \belowdisplayskip\abovedisplayskip%
        \let\@listi\@listI}%
 \or%
    \renewcommand{\normalsize}{%                11pt
        \@setsize\normalsize{12.6pt}\xipt\@xipt%
        \abovedisplayskip11\p@\@plus2\p@\@minus4\p@%
        \abovedisplayshortskip\z@\@plus3\p@%
        \belowdisplayshortskip5\p@\@plus3\p@\@minus2\p@%
        \belowdisplayskip\abovedisplayskip%
        \let\@listi\@listI}%
 \or%
    \renewcommand{\normalsize}{%                12pt
        \@setsize\normalsize{13pt}\xiipt\@xiipt%
        \abovedisplayskip 11\p@ \@plus3\p@ \@minus5\p@%
        \abovedisplayshortskip \z@ \@plus3\p@%
        \belowdisplayshortskip 5\p@ \@plus3\p@ \@minus2\p@%
        \belowdisplayskip\abovedisplayskip%
        \let\@listi\@listI}%
 \fi

% \small
%
\ifcase\@ptsize%
    \renewcommand{\small}{%                 10pt
        \@setsize\small{10.5pt}\ixpt\@ixpt%
        \abovedisplayskip 8\p@ \@plus3\p@ \@minus3\p@%
        \abovedisplayshortskip \z@ \@plus2\p@%
        \belowdisplayshortskip 3\p@ \@plus2\p@ \@minus2\p@%
        \belowdisplayskip\abovedisplayskip%
        \def\@listi{\leftmargin\leftmargini%
                    \topsep 3.5\p@ \@plus1.5\p@ \@minus1.5\p@%
                    \parsep 1.5\p@ \@plus\p@ \@minus\p@%
                    \itemsep \parsep}}%
 \or%
    \renewcommand{\small}{%                 11pt
        \@setsize\small{11.3pt}\xpt\@xpt%
        \abovedisplayskip 9\p@ \@plus2\p@ \@minus4\p@%
        \abovedisplayshortskip \z@ \@plus3\p@%
        \belowdisplayshortskip 5\p@ \@plus2.5\p@ \@minus2.5\p@%
        \belowdisplayskip\abovedisplayskip%
        \def\@listi{\leftmargin\leftmargini%
                    \topsep 5\p@ \@plus2\p@ \@minus2\p@%
                    \parsep 2\p@ \@plus2\p@ \@minus\p@%
                    \itemsep \parsep}}%
 \or%
    \renewcommand{\small}{%                 12pt
        \@setsize\small{12pt}\xipt\@xipt%
        \abovedisplayskip 9\p@ \@plus3\p@ \@minus4\p@%
        \abovedisplayshortskip \z@ \@plus3\p@%
        \belowdisplayshortskip 5\p@ \@plus2.5\p@ \@minus2\p@%
        \belowdisplayskip\abovedisplayskip%
        \def\@listi{\leftmargin\leftmargini%
                    \topsep 5.5\p@ \@plus2.5\p@ \@minus2.5\p@%
                    \parsep 4\p@ \@plus1.5\p@ \@minus\p@%
                    \itemsep \parsep}}%
 \fi


% \footnotesize
%
\ifcase\@ptsize
    \renewcommand{\footnotesize}{%              10pt
        \@setsize\footnotesize{9.3pt}\viiipt\@viiipt%
        \abovedisplayskip 5\p@ \@plus2\p@ \@minus3\p@%
        \abovedisplayshortskip \z@ \@plus\p@%
        \belowdisplayshortskip 2.5\p@\@plus\p@\@minus2\p@%
        \belowdisplayskip\abovedisplayskip%
        \def\@listi{\leftmargin\leftmargini%
                    \topsep 2.5\p@ \@plus\p@ \@minus\p@%
                    \parsep 1.5\p@ \@plus\p@ \@minus\p@%
                    \itemsep \parsep}}%
 \or%
    \renewcommand{\footnotesize}{%              11pt
        \@setsize\footnotesize{10.3pt}\ixpt\@ixpt%
        \abovedisplayskip 7\p@ \@plus2\p@ \@minus4\p@%
        \abovedisplayshortskip \z@ \@plus\p@%
        \belowdisplayshortskip 3\p@ \@plus2\p@ \@minus2\p@%
        \belowdisplayskip\abovedisplayskip%
        \def\@listi{\leftmargin\leftmargini%
                    \topsep 3\p@ \@plus2\p@ \@minus2\p@%
                    \parsep 2\p@ \@plus\p@ \@minus\p@%
                    \itemsep \parsep}}%
 \or%
    \renewcommand{\footnotesize}{%              12pt
        \@setsize\footnotesize{11pt}\xpt\@xpt%
        \abovedisplayskip 9\p@ \@plus2\p@ \@minus4\p@%
        \abovedisplayshortskip \z@ \@plus3\p@%
        \belowdisplayshortskip 5\p@ \@plus3\p@ \@minus3\p@%
        \belowdisplayskip\abovedisplayskip%
        \def\@listi{\leftmargin\leftmargini%
                    \topsep 4.5\p@ \@plus2\p@ \@minus2\p@%
                    \parsep 3\p@ \@plus\p@ \@minus\p@%
                    \itemsep \parsep}}%
 \fi


% \large
%
\ifcase\@ptsize%
    \renewcommand{\large}{\@setsize\large{13pt}\xiipt\@xiipt}%  10pt
 \or%
    \renewcommand{\large}{\@setsize\large{13pt}\xiipt\@xiipt}%  11pt
 \or%
    \renewcommand{\large}{\@setsize\large{16pt}\xivpt\@xivpt}%  12pt
 \fi

% \Large
%
\ifcase\@ptsize%
    \renewcommand{\Large}{\@setsize\Large{16pt}\xivpt\@xivpt}%  10pt
 \or%
    \renewcommand{\Large}{\@setsize\Large{16pt}\xivpt\@xivpt}%  11pt
 \or%
    \renewcommand{\Large}{\@setsize\Large{16pt}\xivpt\@xivpt}%  12pt
 \fi


%
% Separaciones
%
\ifcase\@ptsize%
    \setlength\floatsep{10\p@ \@plus 2\p@ \@minus 2\p@}%    10pt
    \setlength\textfloatsep{16\p@ \@plus 2\p@ \@minus 4\p@}%
    \setlength\intextsep{10\p@ \@plus 2\p@ \@minus 2\p@}%
    \setlength\dblfloatsep{10\p@ \@plus 2\p@ \@minus 2\p@}%
    \setlength\dbltextfloatsep{16\p@ \@plus 2\p@ \@minus 4\p@}%
 \or%
    \setlength\floatsep{10\p@ \@plus 2\p@ \@minus 2\p@}%    11pt
    \setlength\textfloatsep{16\p@ \@plus 2\p@ \@minus 4\p@}%
    \setlength\intextsep{10\p@ \@plus 2\p@ \@minus 2\p@}%
    \setlength\dblfloatsep{10\p@ \@plus 2\p@ \@minus 2\p@}%
    \setlength\dbltextfloatsep{16\p@ \@plus 2\p@ \@minus 4\p@}%
 \or%
    \setlength\floatsep{12\p@ \@plus 3\p@ \@minus 3\p@}%    12pt
    \setlength\textfloatsep{18\p@ \@plus 2\p@ \@minus 4\p@}%
    \setlength\intextsep{12\p@ \@plus 3\p@ \@minus 3\p@}%
    \setlength\dblfloatsep{12\p@ \@plus 2\p@ \@minus 4\p@}%
    \setlength\dbltextfloatsep{18\p@ \@plus 2\p@ \@minus 4\p@}%
 \fi

%
% Máximo nivel texto \normalsize
%
\ifcase\@ptsize%
    \def\@listi{\leftmargin\leftmargini%            10pt
                \topsep  6\p@ \@plus2\p@ \@minus2\p@%
                \parsep  2\p@ \@plus0.5\p@ \@minus\p@%
                \itemsep 2.5\p@ \@plus\p@ \@minus0.5\p@}%
 \or%
    \def\@listi{\leftmargin\leftmargini%            11pt
                \topsep  8\p@ \@plus2\p@ \@minus2\p@%
                \parsep  3\p@ \@plus1.5\p@ \@minus\p@%
                \itemsep 3\p@ \@plus1.5\p@ \@minus\p@}%
 \or%
    \def\@listi{\leftmargin\leftmargini%            12pt
                \topsep  9\p@ \@plus3\p@   \@minus4\p@%
                \parsep  4\p@  \@plus2\p@ \@minus\p@%
                \itemsep 4\p@  \@plus2\p@ \@minus\p@}%
 \fi
\let\@listI\@listi

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                        CABECERAS Y PIES DE PAGINA
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% Defines the pagestyle for the title page.
%% Usage: \seplnheading{1}{3}{2000}{1-15}{1-8-2001}{3-10-2001}
%%    \seplnheading{vol}{num}{year}{pages}{submmited}{accepted}

\def\seplnheading#1#2#3#4#5#6{\def\ps@seplntps{\let\@mkboth\@gobbletwo%
\def\@oddhead{}%
\def\@oddfoot{}%
\def\@evenhead{}\def\@evenfoot{}}%
\thispagestyle{seplntps}}

%% Defines the pagestyle for the rest of the pages
%% Usage: \ShortHeadings{Minimizing Conflicts}{Minton et al}
%%    \ShortHeadings{short title}{short authors}

\def\firstpageno#1{\setcounter{page}{#1}}

%\def\pageno#1{\global\advance\count0 by #1}

\def\ShortHeadings#1#2{\def\ps@seplnps{\let\@mkboth\@gobbletwo%
\def\@oddhead{}%
\def\@oddfoot{}%
\def\@evenhead{}%
\def\@evenfoot{}}%
\pagestyle{seplnps}}

% -------------------------------------------------------------
% Entorno de EXAMPLE para definir ejemplos
%--------------------------------------------------------------

\newcounter{expl}
\newenvironment{example_header}{%
  \noindent
  \begin{list}{ (\arabic{expl})\hfill}{%
      \refstepcounter{expl}
    \item
      }
    } {
  \end{list}
  }

\newenvironment{example}{%
  \begin{example_header}
    \begin{list}{}{%
        \renewcommand{\makelabel}[1]{\textbf{##1\hfill}}
        }
      }{
    \end{list}
  \end{example_header}
  }



% ----------------------------------------------------------------------
% Fin del sepln.sty
% ----------------------------------------------------------------------
