<filename>localcommands.tex
%add all your local new commands to this file

% title font on cover
\renewcommand{\lsCoverTitleFont}[1]{%
    \sffamily\addfontfeatures{Scale=MatchUppercase}%
    \fontsize{37.5pt}{12mm}\selectfont #1}

\makeatletter
\def\blx@maxline{77}
\makeatother

\usepackage{tikz}
\usepackage{tikz-qtree}
\usepackage{tikz-qtree-compat}
\usetikzlibrary{positioning,decorations.pathmorphing,decorations,fit,shapes,arrows.meta,arrows,shapes.multipart,tikzmark}
\tikzstyle{arrow} = [thin, ->, below left, bend left, font = \small]
\tikzset{>=Triangle}
\tikzset{execute at begin node=\vphantom{Ap}}
\tikzset{every tree node/.style={anchor=north, align=center}}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
    \node[shape=circle, draw, inner sep=1pt] (char) {\textsc{#1}};}}

\newcommand*{\tn}[2]{%
    \tikz[baseline,remember picture]\node[inner sep=0pt,anchor=base] (#1) {#2};}

\newcommand*{\ta}[3]{%
    \tikz[remember picture, overlay, baseline]
        \draw [arrow, ->, shorten >= 1mm, shorten <= 1mm] (#1) -- +(0,-.3) -|
            (#2) node [font=\small, near start, below] () {#3};}

\newcommand{\tuple}[1]{\ensuremath{\left \langle \text{#1} \right \rangle }}

\def\citeapos#1{\citeauthor{#1}'s (\citeyear{#1})}
\def\citeaposalt#1{\citeauthor{#1}'s \citeyear{#1}}

\let\tss\textsubscript
\let\tsp\textsuperscript

% fix placement of asterisks in complex examples
\newcommand{\glast}{\hphantom{*}}

% double square brackets for semantics
\newcommand{\sem}[1]{⟦#1⟧}

% no dates in urls
\DeclareLabeldate[url]{%
  \field{date}
  \field{year}
  \field{eventdate}
  \field{origdate}
  \field{urldate}
}

% Fuß & Trips
\newcommand{\tief}[1]{\raisebox{-0.8ex}{\footnotesize #1}}
\newcommand{\hoch}[1]{\raisebox{+0.8ex}{\footnotesize #1}}
\newcommand{\neu}[1]{$\bullet$\marginpar{\textbf{$\leftarrow$neu}}#1}

% downstep
\newcommand{\ds}{ꜜ}

% bobaljik
\newcommand{\pro}{\textsc{pro}}



\pgfplotscreateplotcyclelist{langsci}{
   RdYlBu-A,every mark/.append style={fill=RdYlBu-A!80!black},mark=*\\
   RdYlBu-D,every mark/.append style={fill=RdYlBu-D!80!black},mark=square*\\
   RdYlBu-F!60!black,every mark/.append style={fill=RdYlBu-F!80!black},mark=otimes*\\
   RdYlBu-J,mark=star\\
   RdYlBu-L,every mark/.append style={fill=RdYlBu-L!80!black},mark=diamond*\\
   RdYlBu-O,densely dashed,every mark/.append style={solid,fill=RdYlBu-O!80!black},mark=*\\
}
