%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%      File: langsci-basic.sty
%%    Author: Language Science Press (http://langsci-press.org)
%%      Date: 2020-03-17 13:12 UTC
%%   Purpose: This file contains essential macros and is included
%%            into langscibook.cls
%%  Language: LaTeX
%%   Licence:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\lsptoprule}{\midrule\toprule}
\newcommand{\lspbottomrule}{\bottomrule\midrule}

\newcommand{\REF}[1]{(\ref{#1})}

\newcommand{\ob}{{\upshape [}} %opening bracket
\newcommand{\cb}{{\upshape ]}} %closing bracket
\newcommand{\op}{{\upshape (}} %opening paren
\newcommand{\cp}{{\upshape )}} %closing paren
\newcommand{\db}{\hspaceThis{[}} %dummy space for [ in IMT line
% \newcommand{\rmfnm}{{\upshape\footnotemark}} %romanfootnotemark

\newcommand{\citegen}[2][]{\citeauthor{#2}'s (\citeyear*[#1]{#2})}
\newcommand{\citeapo}[2][]{\citeauthor{#2}' (\citeyear*[#1]{#2})}

\newcommand{\protectedex}[1]{\noindent\parbox{\linewidth}{#1}}

\newcommand{\largerpage}[1][1]{\enlargethispage{#1\baselineskip}}

% old font commands
\renewcommand{\it}{\itshape}
\renewcommand{\bf}{\bfseries}
\renewcommand{\sc}{\scshape}
\renewcommand{\rm}{\upshape}

% vertical space to structure tables
\newcommand{\tablevspace}{\\[-.5em]}

\newcommand{\biberror}[1]{{\color{red}#1}}
