%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% File: langsci-lgr.sty %% Author: Language Science Press (http://langsci-press.org) %% Date: 2020-08-31 16:47:43 UTC %% Purpose: This file contains shortcuts for the Leipzig Glossing %% Rules. %% Language: LaTeX %% Licence: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % \usepackage{etoolbox} \newtoggle{danger} \togglefalse{danger} \DeclareOption{danger}{\toggletrue{danger}} \DeclareOption*{\PackageWarning{langsci-lgr}{Unknown option ‘\CurrentOption’}} \ProcessOptions\relax \iftoggle{danger}{\newcommand{\A}{\textsc{a}\xspace}}{} \newcommand{\ABL}{\textsc{abl}{}\xspace} %ablative \newcommand{\ABS}{\textsc{abs}{}\xspace} %absolutive \newcommand{\ACC}{\textsc{acc}{}\xspace} %accusative \newcommand{\ADJ}{\textsc{adj}{}\xspace} %adjective \newcommand{\ADV}{\textsc{adv}{}\xspace} %adverb(ial) \newcommand{\AGR}{\textsc{agr}{}\xspace} %agreement \newcommand{\ALL}{\textsc{all}{}\xspace} %allative \newcommand{\ANTIP}{\textsc{antip}{}\xspace} %antipassive \newcommand{\APPL}{\textsc{appl}{}\xspace} %applicative \newcommand{\ART}{\textsc{art}{}\xspace} %article \newcommand{\AUX}{\textsc{aux}{}\xspace} %auxiliary \newcommand{\BEN}{\textsc{ben}{}\xspace} %benefactive \newcommand{\CAUS}{\textsc{caus}{}\xspace} %causative \newcommand{\CLF}{\textsc{clf}{}\xspace} %classifier \newcommand{\COM}{\textsc{com}{}\xspace} %comitative \newcommand{\COMP}{\textsc{comp}{}\xspace} %complementizer \newcommand{\COMPL}{\textsc{compl}{}\xspace} %completive \newcommand{\COND}{\textsc{cond}{}\xspace} %conditional \newcommand{\COP}{\textsc{cop}{}\xspace} %copula \newcommand{\CVB}{\textsc{cvb}{}\xspace} %converb \newcommand{\DAT}{\textsc{dat}{}\xspace} %dative \newcommand{\DECL}{\textsc{decl}{}\xspace} %declarative \newcommand{\DEM}{\textsc{dem}{}\xspace} %demonstrative \newcommand{\DEF}{\textsc{def}{}\xspace} \newcommand{\DET}{\textsc{det}{}\xspace} \newcommand{\DIST}{\textsc{dist}{}\xspace} %distal \newcommand{\DISTR}{\textsc{distr}{}\xspace} %distributive \newcommand{\DU}{\textsc{du}{}\xspace} %dual \newcommand{\DUR}{\textsc{dur}{}\xspace} %durative \newcommand{\ERG}{\textsc{erg}{}\xspace} %ergative \newcommand{\EXCL}{\textsc{excl}{}\xspace} %exclusive \iftoggle{danger}{\newcommand{\F}{\textsc{f}\xspace}}{} \newcommand{\FOC}{\textsc{foc}{}\xspace} %focus \newcommand{\FUT}{\textsc{fut}{}\xspace} %future \newcommand{\GEN}{\textsc{gen}{}\xspace} %genitive \newcommand{\IMP}{\textsc{imp}{}\xspace} %imperative \newcommand{\INCL}{\textsc{incl}{}\xspace} %inclusive \newcommand{\IND}{\textsc{ind}{}\xspace} %indicative \newcommand{\INDF}{\textsc{indf}{}\xspace} %indefinite \newcommand{\INF}{\textsc{inf}{}\xspace} %infinitive \newcommand{\INS}{\textsc{ins}{}\xspace} %instrumental \newcommand{\INTR}{\textsc{intr}{}\xspace} %intransitive \newcommand{\IPFV}{\textsc{ipfv}{}\xspace} %imperfective \newcommand{\IRR}{\textsc{irr}{}\xspace} %irrealis \newcommand{\LOC}{\textsc{loc}{}\xspace} %locative \iftoggle{danger}{\newcommand{\M}{\textsc{m}\xspace}}{} \iftoggle{danger}{\newcommand{\N}{\textsc{n}\xspace}}{} \newcommand{\NEG}{\textsc{neg}{}\xspace} \newcommand{\NMLZ}{\textsc{nmlz}{}\xspace} %nominalizer/nominalization \newcommand{\NOM}{\textsc{nom}{}\xspace} %nominative \newcommand{\OBJ}{\textsc{obj}{}\xspace} %object \newcommand{\OBL}{\textsc{obl}{}\xspace} %oblique \iftoggle{danger}{\renewcommand{\P}{\textsc{p}\xspace}}{} %originally pilcrow \newcommand{\PASS}{\textsc{pass}{}\xspace} %passive \newcommand{\PFV}{\textsc{pfv}{}\xspace} %perfective \newcommand{\PL}{\textsc{pl}{}\xspace} %plural \newcommand{\POSS}{\textsc{poss}{}\xspace} %possessive \newcommand{\PRED}{\textsc{pred}{}\xspace} %predicative \newcommand{\PRF}{\textsc{prf}{}\xspace} %perfect \newcommand{\PRS}{\textsc{prs}{}\xspace} %present \newcommand{\PROG}{\textsc{prog}{}\xspace} %progressive \newcommand{\PROH}{\textsc{proh}{}\xspace} %prohibitive \newcommand{\PROX}{\textsc{prox}{}\xspace} %proximal/proximate \newcommand{\PST}{\textsc{pst}{}\xspace} %past \newcommand{\PTCP}{\textsc{ptcp}{}\xspace} %participle \newcommand{\PURP}{\textsc{purp}{}\xspace} %purposive \iftoggle{danger}{\newcommand{\Q}{\textsc{q}\xspace}}{} \newcommand{\QUOT}{\textsc{quot}{}\xspace} %quotative \newcommand{\RECP}{\textsc{recp}{}\xspace} %reciprocal \newcommand{\REFL}{\textsc{refl}{}\xspace} %reflexive \newcommand{\REL}{\textsc{rel}{}\xspace} %relative \newcommand{\RES}{\textsc{res}{}\xspace} %resultative \iftoggle{danger}{\renewcommand{\S}{\textsc{s}\xspace}}{} \newcommand{\SBJ}{\textsc{sbj}{}\xspace} %subject \newcommand{\SBJV}{\textsc{sbjv}{}\xspace} %subjunctive \newcommand{\SG}{\textsc{sg}{}\xspace} %singular \newcommand{\TOP}{\textsc{top}{}\xspace} \newcommand{\TR}{\textsc{tr}{}\xspace} %transitive \newcommand{\VOC}{\textsc{voc}{}\xspace} %vocative