summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/langsci/langsci-lgr.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/langsci/langsci-lgr.sty')
-rw-r--r--Master/texmf-dist/tex/xelatex/langsci/langsci-lgr.sty29
1 files changed, 20 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-lgr.sty b/Master/texmf-dist/tex/xelatex/langsci/langsci-lgr.sty
index e74f4d57beb..cad5a49a59c 100644
--- a/Master/texmf-dist/tex/xelatex/langsci/langsci-lgr.sty
+++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-lgr.sty
@@ -1,13 +1,23 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% File: langsci-lgr.sty
%% Author: Language Science Press (http://langsci-press.org)
-%% Date: 2020-03-17 13:12 UTC
+%% 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
@@ -31,15 +41,15 @@
\newcommand{\DAT}{\textsc{dat}{}\xspace} %dative
\newcommand{\DECL}{\textsc{decl}{}\xspace} %declarative
\newcommand{\DEM}{\textsc{dem}{}\xspace} %demonstrative
-\newcommand{\DEF}{\textsc{det}{}\xspace}
-\newcommand{\DET}{\textsc{def}{}\xspace}
+\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
-\newcommand{\F}{\textsc{f}{}\xspace}
+\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
@@ -47,19 +57,20 @@
\newcommand{\INCL}{\textsc{incl}{}\xspace} %inclusive
\newcommand{\IND}{\textsc{ind}{}\xspace} %indicative
\newcommand{\INDF}{\textsc{indf}{}\xspace} %indefinite
+\newcommand{\INF}{\textsc{indf}{}\xspace} %indefinite
\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
-% \renewcommand{\M}{\textsc{m}{}\xspace} % use at own risk
-\newcommand{\N}{\textsc{n}{}\xspace}
+\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
-% \renewcommand{\P}{\textsc{p}{}\xspace} %%originally pilcrow, use at own risk
+\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
@@ -73,13 +84,13 @@
\newcommand{\PST}{\textsc{pst}{}\xspace} %past
\newcommand{\PTCP}{\textsc{ptcp}{}\xspace} %participle
\newcommand{\PURP}{\textsc{purp}{}\xspace} %purposive
-\newcommand{\Q}{\textsc{q}{}\xspace}
+\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
-% \renewcommand{\S}{\textsc{s}{}\xspace} %originally § , use at own risk
+\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