summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/nnext
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-10-06 21:59:48 +0000
committerKarl Berry <karl@freefriends.org>2020-10-06 21:59:48 +0000
commita3d700d85e5a93e7096d56df4d1ac116749a9866 (patch)
tree0bf15497bfae625ee2543148d00a4abf8acf8055 /Master/texmf-dist/tex/latex/nnext
parent42c9869fd0659b61892a63fc676663752227d4c3 (diff)
nnext (6oct20)
git-svn-id: svn://tug.org/texlive/trunk@56575 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/nnext')
-rw-r--r--Master/texmf-dist/tex/latex/nnext/nnext.sty83
1 files changed, 83 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/nnext/nnext.sty b/Master/texmf-dist/tex/latex/nnext/nnext.sty
new file mode 100644
index 00000000000..bbd66120f72
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/nnext/nnext.sty
@@ -0,0 +1,83 @@
+%%
+%% This is file `nnext.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nnext.dtx (with options: `package')
+%% This is a generated file.
+%% Copyright (C) 2020 by Nicholas LaCara
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3 of this license or (at your option) any later
+%% version. The latest version of this license is in:
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+\NeedsTeXFormat{LaTeX2e}[2005/12/01]
+\ProvidesPackage{nnext}
+ [2020/10/06 v0.0 The nnext package]
+\RequirePackage{xspace}
+\RequirePackage{ifthen}
+\newboolean{emulatelinguex}
+\setboolean{emulatelinguex}{false}
+\newboolean{emulateexpex}
+\setboolean{emulateexpex}{false}
+\newboolean{parentheses}
+\setboolean{parentheses}{true}
+\DeclareOption{linguex}{
+ \setboolean{emulatelinguex}{true}
+}
+\DeclareOption{expex}{
+ \setboolean{emulateexpex}{true}
+ \setboolean{emulatelinguex}{false}
+ \setboolean{parentheses}{false}
+}
+\DeclareOption{noparens}{
+ \setboolean{parentheses}{false}
+}
+\ExecuteOptions{linguex}
+\ProcessOptions\relax
+\@ifpackageloaded{langsci-gb4e}%
+ {\newcommand{\@countername}{equation}}
+ {\@ifpackageloaded{gb4e-emulate}%
+ {\newcommand{\@countername}{exei}}
+ {\@ifpackageloaded{gb4e}%
+ {\newcommand{\@countername}{exx}}
+ {\PackageWarningNoLine{nnext}{No known compatible %
+ example package loaded! Examples may not be correctly %
+ referenced, or there may be fatal errors}%
+ \newcommand{\@countername}{exx}}}}%
+\ifthenelse{\boolean{emulatelinguex}%
+ \AND \boolean{parentheses}}{%
+ \newcommand{\@lparens}{(}
+ \newcommand{\@rparens}{)}
+ \newcommand{\@afterspace}{\xspace}}{%
+ \newcommand{\@lparens}{}
+ \newcommand{\@rparens}{}
+ \newcommand{\@afterspace}{}}%
+\newcounter{tmpcounter}
+\newcommand{\settmpcounter}[1]{%
+\setcounter{tmpcounter}{\value{\@countername}}%
+ \addtocounter{tmpcounter}{#1}}
+\newcommand{\printtmpcounter}[1]{\settmpcounter{#1}%
+\@lparens\thetmpcounter\@rparens\@afterspace}
+\newcommand{\@Next}{\printtmpcounter{1}}
+\newcommand{\@NNext}{\printtmpcounter{2}}
+\newcommand{\@Last}{\printtmpcounter{0}}
+\newcommand{\@LLast}{\printtmpcounter{-1}}
+\newcommand{\@LLLast}{\printtmpcounter{-2}}
+\ifthenelse{\boolean{emulatelinguex}}{%
+ \newcommand{\Next}{\@Next}
+ \newcommand{\NNext}{\@NNext}
+ \newcommand{\Last}{\@Last}
+ \newcommand{\LLast}{\@LLast}}{}
+\ifthenelse{\boolean{emulateexpex}}{%
+ \newcommand{\nextx}{\@Next}
+ \newcommand{\anextx}{\@NNext}
+ \newcommand{\lastx}{\@Last}
+ \newcommand{\blastx}{\@LLast}
+ \newcommand{\bblastx}{\@LLLast}}{}
+\endinput
+%%
+%% End of file `nnext.sty'.