summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-08-17 20:25:47 +0000
committerKarl Berry <karl@freefriends.org>2023-08-17 20:25:47 +0000
commit2503a53b82f99be7edd90a292f3d86881363791d (patch)
treee71aaa02df10b331bb79bb87553b5e8c866313ba
parent4ec4d4ae52704bf74faaf86218147af84c68dd69 (diff)
expex-glossonly (17aug23)
git-svn-id: svn://tug.org/texlive/trunk@67958 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/expex-glossonly/README.md9
-rw-r--r--Master/texmf-dist/doc/latex/expex-glossonly/expex-glossonly.pdfbin123056 -> 39048 bytes
-rw-r--r--Master/texmf-dist/doc/latex/expex-glossonly/expex-glossonly.tex141
-rw-r--r--Master/texmf-dist/doc/latex/expex-glossonly/testfiles/covington-expex.pdfbin0 -> 7800 bytes
-rw-r--r--Master/texmf-dist/doc/latex/expex-glossonly/testfiles/covington-expex.tex20
-rw-r--r--Master/texmf-dist/doc/latex/expex-glossonly/testfiles/gb4e-expex.pdfbin14835 -> 5519 bytes
-rw-r--r--Master/texmf-dist/doc/latex/expex-glossonly/testfiles/gb4e-expex.tex48
-rw-r--r--Master/texmf-dist/doc/latex/expex-glossonly/testfiles/linguex-expex.pdfbin15454 -> 4720 bytes
-rw-r--r--Master/texmf-dist/doc/latex/expex-glossonly/testfiles/linguex-expex.tex27
-rw-r--r--Master/texmf-dist/tex/latex/expex-glossonly/expex-glossonly.sty88
10 files changed, 213 insertions, 120 deletions
diff --git a/Master/texmf-dist/doc/latex/expex-glossonly/README.md b/Master/texmf-dist/doc/latex/expex-glossonly/README.md
index 1029552acfd..627f813b6ef 100644
--- a/Master/texmf-dist/doc/latex/expex-glossonly/README.md
+++ b/Master/texmf-dist/doc/latex/expex-glossonly/README.md
@@ -1,8 +1,9 @@
# The `expex-glossonly` package
-`expex-glossonly` is a package which allows `gb4e` and `linguex` users to use the glossing macros
-of the ExPex package, while still using the standard example and subexample numbering macros of
-those respective packages.
+## Version 0.7 2023/08/17
+
+`expex-glossonly` is a package which allows users of other popular example numbering package (`gb4e`, `linguex`, and `covington`) to use the glossing macros
+of the ExPex package, while still using the standard example and subexample numbering macros of those respective packages.
Copyright 2016-2023 by Alan Munn
@@ -19,7 +20,7 @@ This package has the LPPL maintenance status `maintained'.
The Current Maintainer of this package is Alan Munn.
This package consists of the file `expex-glossonly.sty` and documentation files
-`expex-glossonly.tex` and `expex-glossonly.pdf` plus two test files: `gb4e-expex.tex` and `linguex-expex.tex`
+`expex-glossonly.tex` and `expex-glossonly.pdf` plus three test files: `gb4e-expex.tex`, `linguex-expex.tex`, and `covington-expex.tex`.
This package is currently experimental. Use at your own risk.
diff --git a/Master/texmf-dist/doc/latex/expex-glossonly/expex-glossonly.pdf b/Master/texmf-dist/doc/latex/expex-glossonly/expex-glossonly.pdf
index df43f4d18f0..22873f4f567 100644
--- a/Master/texmf-dist/doc/latex/expex-glossonly/expex-glossonly.pdf
+++ b/Master/texmf-dist/doc/latex/expex-glossonly/expex-glossonly.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/expex-glossonly/expex-glossonly.tex b/Master/texmf-dist/doc/latex/expex-glossonly/expex-glossonly.tex
index 5fc2a2e9d79..cc64244625d 100644
--- a/Master/texmf-dist/doc/latex/expex-glossonly/expex-glossonly.tex
+++ b/Master/texmf-dist/doc/latex/expex-glossonly/expex-glossonly.tex
@@ -1,22 +1,17 @@
-% !TEX TS-program = pdflatexmk
-\def\EPGLversion{0.6}
-\def\EPGLdate{August 15, 2023}
+% !TEX TS-program = lualatexmk
+\def\EPGLversion{0.7}
+\def\EPGLdate{August 17, 2023}
\documentclass[11pt]{article}
\title{\textbf{The \textsf{expex-glossonly} package}}
\author{\textbf{Alan Munn}\\Department of Linguistics and Languages\\Michigan State University\\\texttt{\href{mailto:amunn@msu.edu}{amunn@msu.edu}}}
\date{Version \EPGLversion\\\EPGLdate}
-\usepackage[T1]{fontenc}
\usepackage[margin=1in,includefoot]{geometry}
\usepackage{titling}
-\usepackage[utf8]{inputenc}
\usepackage{array, booktabs, multicol, fancyhdr, xspace,tabularx}
\usepackage{enumitem}
\usepackage{fancyvrb,listings,url}
\usepackage[sf,compact]{titlesec}
-\usepackage[]{he-she}
-\usepackage{gb4e}
\usepackage[colorlinks=true]{hyperref}
-\noautomath
\DefineShortVerb{\|}
@@ -44,6 +39,7 @@
breakindent=1em,
xrightmargin=2.5em,
captionpos=t,
+ frame=tl,
language=TeX,
}
@@ -68,33 +64,132 @@
\maketitle
\thispagestyle{empty}
\renewcommand{\abstractname}{\sffamily Abstract}
-\abstract{\noindent\begin{quote}This is an experimental package which is designed to let \pkg{gb4e} and \pkg{linguex} package users use the advanced glossing capabilities of the very powerful ExPex package.\end{quote}}
+\abstract{\noindent\begin{quote}This is an experimental package which is designed to let \pkg{gb4e}, \pkg{linguex} and \pkg{covington} package users use the advanced glossing capabilities of the very powerful ExPex package.\end{quote}}
\section{Introduction}
-The ExPex package by John Frampton provides very fine-grained control over glossing and example formatting, including unlimited gloss lines and various ways of formatting multiline glosses. By contrast the \pkg{cgloss4e} glossing macros provided with both \pkg{gb4e} and \pkg{linguex}, although very capable at basic glossing, lack the degree of customization that is sometimes needed for more complex glossing.
+The ExPex package by John Frampton provides very fine-grained control over glossing and example formatting, including unlimited gloss lines and various ways of formatting multiline glosses. By contrast the \pkg{cgloss4e} glossing macros provided with both \pkg{gb4e} and \pkg{linguex}, and to some extent, the glossing macros of \pkg{covington} although very capable at basic glossing, lack the degree of customization that is sometimes needed for more complex glossing.
-On the other hand, for those users who have heavily invested in using either \pkg{gb4e} or \pkg{linguex}, shifting to ExPex can be quite daunting and burdensome, especially since the basic syntax of the examples is quite different.
+On the other hand, for those users who have heavily invested in using \pkg{gb4e}, \pkg{linguex}, or \pkg{covington}, shifting to ExPex can be quite daunting and burdensome, especially since the basic syntax of the examples is quite different.
-This package is an attempt to have the best of both worlds: it allows \pkg{gb4e} and \pkg{linguex} users to keep using those packages for basic example numbering and formatting, but also allows them to use the glossing macros that ExPex provides.
+This package is an attempt to have the best of both worlds: it allows \pkg{gb4e}, \pkg{linguex}, or \pkg{covington} users to keep using those packages for basic example numbering and formatting, but also allows them to use the glossing macros that ExPex provides.
\section{Package usage}
-Usage of the package is simple: simply load it, and then load your favourite example numbering package. The \pkg{expex-glossonly} package must be loaded first.
+Usage of the package is simple: simply load it instead of your usual example numbering package, and specify as a package option which numbering package you're using. So for example. Four example numbering packages are currently supported: \pkg{gb4e}, \pkg{linguex}, \pkg{covington}, and \pkg{gb4e-emulate}. The latter is an experimental reimplementation of \pkg{gb4e} using \pkg{enumitem} and is not currently released to CTAN, but available on GitHub. Package options for loading \pkg{covington} can be given by adding them to the |covington| package option. Since they are an argument of the |covington| key, the set of options must be enclosed in |{...}|.
-\begin{multicols}{2}
+\begin{table}
+\centering
+\caption{Package loading options}
+\begin{tabular}{l}
+\toprule
+\begin{lstlisting}[frame=none]
+\usepackage[gb4e]{expex-glossonly}
+\end{lstlisting}\\
+\begin{lstlisting}[frame=none]
+\usepackage[linguex]{expex-glossonly}
+\end{lstlisting}\\
+\begin{lstlisting}[frame=none]
+\usepackage[covington={<covington package options>}]{expex-glossonly}
+\end{lstlisting}\\
+\begin{lstlisting}[frame=none]
+\usepackage[gb4e-emulate]{expex-glossonly}
+\end{lstlisting}\\
+\bottomrule
+\end{tabular}
+\end{table}
+
+The package checks for which example numbering package you have loaded and then patches the main glossing macro in ExPex to adjust to the horizontal spacing parameters of the particular example package you loaded.
+
+It disables some incompatible commands from ExPex (specifically any commands that would introduce a numbered or lettered example, such as |\ex|, |\pex|, |\xe|) so you should not use them. Since it it is assumed that you will not be using ExPex for numbering, only for glosses, and parts of the ExPex code that deal with example numbering should be assumed not to work.
+
+The package does \emph{not} change the existing glossing macros of the base numbering package. This means that using the package does \emph{not} require you to use ExPex glossing macros for all your glossing. You can continue to use the glossing macros provided by the base numbering package. What this package does is \emph{extend} the capabilities of the base numbering package to allow you to use ExPex glosses as well as the regularly provided glossing facilities of the base package.
+\section{Examples}
+Here are some sample documents using the supported packages:
+
+\subsection{\pkg{gb4e}}
+\begin{quote}
\begin{lstlisting}
-\usepackage{expex-glossonly}
-\usepackage{gb4e}
+\documentclass{article}
+\usepackage[gb4e]{expex-glossonly}
+\usepackage{cgloss}
+\begin{document}
+
+\begin{exe}
+\ex
+\begin{xlist}
+\ex[*]{ This is a regular example.}
+\ex[]{\label{foo}
+ \begingl
+ \gla\rightcomment{(Hungarian)}János háza//
+ \glb John house.his//
+ \glft `John's house'//
+ \endgl
+}
+\ex[]{\gll János háza\\
+ John house\\\hfill(Hungarian)
+ \glt `John's house'
+ }
+\end{xlist}
+\end{exe}
+
+\end{document}
\end{lstlisting}
+\end{quote}
+\clearpage
+\subsection{\pkg{linguex}}
+\begin{quote}
\begin{lstlisting}
-\usepackage{expex-glossonly}
-\usepackage{linguex}
+\documentclass{article}
+
+\usepackage[linguex]{expex-glossonly}
+
+\begin{document}
+
+\ex.
+\a.
+ \begingl
+ \gla\rightcomment{(Hungarian)}János háza//
+ \glb John house.his//
+ \glft `John's house'//
+ \endgl
+\bg. János háza\\
+ John house.his\\
+ \glt `John's house'
+
+\end{document}
\end{lstlisting}
-\end{multicols}
+\end{quote}
+\subsection{\pkg{covington}}
+\begin{quote}
+\begin{lstlisting}
+\documentclass{article}
+\usepackage[covington]{expex-glossonly}
+
+\begin{document}
-The package checks for which example numbering package you have loaded (either \pkg{gb4e} or \pkg{linguex}) and then patches the main glossing macro in ExPex to adjust to the horizontal spacing parameters of the particular example package you loaded.
+\begin{examples}
+\item An example
+\item Another example
+\end{examples}
+\begin{subexamples}
+\item
+ \begingl
+ \gla\rightcomment{(Hungarian)}János háza//
+ \glb John house.his//
+ \glft `John's house'//
+ \endgl
+\item \digloss{János háza}[(Hungarian)]
+ {John house.his}
+ {`John's house}
+\end{subexamples}
+\end{document}
+\end{lstlisting}
+\end{quote}
-It does nothing explicitly to disable incompatible commands from ExPex (specifically any commands that would introduce a numbered or lettered example, such as |\ex|, |\pex|, |\a|, etc.) so you should not use them. Some, such as |\ex| are redefined by \pkg{gb4e} and therefore the ExPex version of it will fail to work. For this reason, you need to make sure to load the \pkg{expex-glossonly} package \emph{before} you load \pkg{gb4e} or \pkg{linguex}
-\section{Bugs}
-This is \emph{experimental} and has not been extensively tested. Use at your own risk. You're welcome to contact me with problems as they arise, however.
+\section{Bugs and support}
+This is \emph{experimental} and has not been extensively tested. Use at your own risk. You're welcome to raise issues at the \href{https://github.com/amunn/expex-glossonly}{GitHub repository}, however.
+\section{Version history}
+The initial version of the package (0.6) supported only \pkg{linguex} and \pkg{gb4e}. Version 0.7 changed the loading interface to provide support for \pkg{covington} and added support for \pkg{gb4e-emulate}.
+\section{Acknowledgements}
+As always, thanks to the members of the LaTeX development team and other users who are always happy to answer questions in the \href{https://tex.stackexchange.com}{TeX.se} chat room. Thanks especially to Ulrike Fischer who told me of the magical |\@totalleftmargin| length. Thanks also to Jürgen Spitzmüller for discussion of the \pkg{covington} support.
\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/covington-expex.pdf b/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/covington-expex.pdf
new file mode 100644
index 00000000000..f86b9e3b68d
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/covington-expex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/covington-expex.tex b/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/covington-expex.tex
new file mode 100644
index 00000000000..f3375ad736c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/covington-expex.tex
@@ -0,0 +1,20 @@
+\documentclass{article}
+\usepackage[covington]{expex-glossonly}
+
+\begin{document}
+
+\begin{examples}
+\item An example
+\item Another example
+\end{examples}
+\begin{subexamples}
+\item \begingl
+ \gla\rightcomment{(Hungarian)}János háza//
+ \glb John house.his//
+ \glft `John's house'//
+ \endgl
+\item \digloss{János háza}[(Hungarian)]
+ {John house.his}
+ {`John's house}
+\end{subexamples}
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/gb4e-expex.pdf b/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/gb4e-expex.pdf
index 40b160303e0..104dae2f805 100644
--- a/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/gb4e-expex.pdf
+++ b/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/gb4e-expex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/gb4e-expex.tex b/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/gb4e-expex.tex
index 8cdeed2f5d9..b6709fead55 100644
--- a/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/gb4e-expex.tex
+++ b/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/gb4e-expex.tex
@@ -1,48 +1,24 @@
\documentclass[12pt,letterpaper]{article}
-
-\usepackage{expex-glossonly}
-\usepackage{amssymb}
-\usepackage{gb4e}
-%\usepackage{cgloss}
-
-
-\lingset{everygla={\leftmargin=2in}, belowglpreambleskip=-0.5ex, aboveglftskip=-0.5ex} % gloss formatting
-
-
+\usepackage[gb4e]{expex-glossonly}
+\usepackage{cgloss}
\begin{document}
\begin{exe}
+\ex
+\begin{xlist}
\ex[*]{ This is a regular example.}
-\ex[*]{\label{foo}
+\ex[]{\label{foo}
\begingl
- \glpreamble This is a preamble sentence.//
- \gla\rightcomment{\small\checkmark X}J\'anos h\'aza//
- \glb\rightcomment{\small\checkmark X}John house.his//
+ \gla\rightcomment{(Hungarian)}János háza//
+ \glb John house.his//
\glft `John's house'//
\endgl
}
-\ex This is another example.
+\ex[]{\gll János háza\\
+ John house\\\hfill(Hungarian)
+ \glt `John's house'
+ }
+\end{xlist}
\end{exe}
-\begin{exe}
-\ex\label{bar}
-\begin{xlist}
-\ex \begingl
- \gla\rightcomment{\small\checkmark X}J\'anos h\'aza//
- \glb\rightcomment{\small\checkmark X}John house.his//
- \glft `John's house'//
- \endgl
-\ex \begingl
- \gla\rightcomment{\small\checkmark X}J\'anos h\'aza//
- \glb\rightcomment{\small\checkmark X}John house.his//
- \glft `John's house'//
- \endgl
-\end{xlist}
-\ex
-\begin{xlist}
-\ex An example\setcounter{xnumi}{0}
-\ex Another example.
-\end{xlist}
-\end{exe}
-
\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/linguex-expex.pdf b/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/linguex-expex.pdf
index b52da13d572..f7d8140075b 100644
--- a/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/linguex-expex.pdf
+++ b/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/linguex-expex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/linguex-expex.tex b/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/linguex-expex.tex
index 368a35f8f1a..0a63e88d751 100644
--- a/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/linguex-expex.tex
+++ b/Master/texmf-dist/doc/latex/expex-glossonly/testfiles/linguex-expex.tex
@@ -1,33 +1,18 @@
\documentclass[12pt,letterpaper]{article}
-\usepackage{expex-glossonly}
-\usepackage{amssymb}
-\usepackage{linguex}
-\usepackage{cgloss}
-
-\lingset{everygla={\leftmargin=2in}, belowglpreambleskip=-0.5ex, aboveglftskip=-0.5ex} % gloss formatting
-\makeatletter
+\usepackage[linguex]{expex-glossonly}
\begin{document}
-\ex. \ag. The boy didn't kiss the girl \\
-D boy AUX.NEG kiss D girl \\ \hfill {\small\checkmark X}
-\trans `The boy did not kiss the girl'. \hfill {\small\checkmark X}
-
\ex.
\a.
\begingl
- \gla\rightcomment{\small\checkmark X}J\'anos h\'aza//
- \glb\rightcomment{\small\checkmark X}John house.his//
- \glft `John's house'//
- \endgl
-\b. This is another example.
-
-\ex.\begingl
- \gla\rightcomment{\small\checkmark X}J\'anos h\'aza//
- \glb\rightcomment{\small\checkmark X}John house.his//
+ \gla\rightcomment{(Hungarian)}J\'anos h\'aza//
+ \glb John house.his//
\glft `John's house'//
\endgl
-
+\bg. János háza\\
+ John house.his\\
+ \glt `John's house'
\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/expex-glossonly/expex-glossonly.sty b/Master/texmf-dist/tex/latex/expex-glossonly/expex-glossonly.sty
index b33b6b41c06..d881bfdf24a 100644
--- a/Master/texmf-dist/tex/latex/expex-glossonly/expex-glossonly.sty
+++ b/Master/texmf-dist/tex/latex/expex-glossonly/expex-glossonly.sty
@@ -1,10 +1,10 @@
-\def\EPGL@version{0.6}
-\def\EPGL@date{2023/08/15}
+\def\EPGL@version{0.7}
+\def\EPGL@date{2023/08/17}
% expex-glossonly is a package which allows gb4e and linguex users to use the glossing macros
% of the ExPex package, while still using the standard example and subexample numbering macros of
% those respective packages.
%
-% Copyright 2016 by Alan Munn
+% Copyright 2016-2023 by Alan Munn
%
% This package may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -23,13 +23,15 @@
%
% This package is currently experimental. Use at your own risk.
%
-\ProvidesPackage{expex-glossonly}[\EPGL@date\ Compatibility package for using ExPex glosses with gb4e and linguex v. \EPGL@version ]
-\DeclareOption*{\PackageWarning{expex-glossonly}{Unknown option `\CurrentOption`}}
-\ProcessOptions
+\ProvidesPackage{expex-glossonly}[\EPGL@date\ Compatibility package for using ExPex glosses with other example packages v. \EPGL@version ]
\RequirePackage{calc}
\RequirePackage{expex}
-% First define a command to patch the ExPex main gloss command
-% Need to find out if other gloss commands need to be patched.
+\newif\ifEPGL@examplesloaded
+\@ifpackageloaded{linguex}{\PackageError{expex-glossonly}{Please load linguex using the package option!}{Please load linguex using the package option!}}{}
+\@ifpackageloaded{gb4e}{\PackageError{expex-glossonly}{Please load gb4e using the package option!}{Please load gb4e using the package option!}}{}
+\@ifpackageloaded{covington}{\PackageError{expex-glossonly}{Please load covington using the package option!}{Please load covington using the package option!}}{}
+% for now this is a separate macro in case it needs to be changed per package.
+\newcommand\EPGL@setglossmargin{\setlength{\leftskip}{\@totalleftmargin}}
\def\EPGL@patchexpexgloss{%
\let\xe\relax
\let\pex\relax
@@ -64,34 +66,48 @@
\let\everylist=\empty
\let\colorlist=\empty
}}
-% First check to see whether we are loaded first
-% Since there is some overlap in commands, gb4e and linguex must be loaded second
-\@ifpackageloaded{linguex}{\PackageError{expex-glossonly}{Please load expex-glossonly BEFORE linguex}{Please load expex-glossonly BEFORE linguex}}{}
-\@ifpackageloaded{gb4e}{\PackageError{expex-glossonly}{Please load expex-glossonly BEFORE gb4e}{Please load expex-glossonly BEFORE gb4e}}{}
-% Now only patch the command if the packages have been loaded
-% This means that the package will do no harm if loaded by itself
-\AtBeginDocument{%
-\@ifpackageloaded{linguex}{
- \def\EPGL@setglossmargin{%
- \ifnum\theExDepth=1%
- \setlength{\leftskip}{\Exindent+\Exlabelsep+\Exlabelwidth+.5em}
- \else
- \setlength{\leftskip}{\Exindent+\Exlabelsep+\Exlabelwidth+\SubExleftmargin+.5em}
- \fi}
- \EPGL@patchexpexgloss
- \PackageInfo{expex-glossonly}{Patching ExPex for use with linguex}
- \typeout{Patching ExPex for use with linguex}
+\DeclareKeys[expex-glossonly]
+{
+gb4e.code = {
+ \RequirePackage{gb4e}
+ \EPGL@examplesloadedtrue
+ \EPGL@patchexpexgloss
+ \lingset{belowglpreambleskip=-0.5ex, aboveglftskip=-0.5ex,everygla=\eachwordone}
+ \PackageInfo{expex-glossonly}{Patching ExPex for use with gb4e}
+ \typeout{Patching ExPex for use with gb4e}
+ },
+gb4e-emulate.code = {
+ \RequirePackage{gb4e-emulate}
+ \EPGL@examplesloadedtrue
+ \EPGL@patchexpexgloss
+ \lingset{belowglpreambleskip=-0.5ex, aboveglftskip=-0.5ex,everygla=\eachwordone}
+ \PackageInfo{expex-glossonly}{Patching ExPex for use with gb4e}
+ \typeout{Patching ExPex for use with gb4e}
+},
+linguex.code = {
+ \RequirePackage{linguex}
+ \EPGL@examplesloadedtrue
+ \EPGL@patchexpexgloss
+ \lingset{belowglpreambleskip=-0.5ex, aboveglftskip=-0.5ex,everygla=\eachwordone}
+ \PackageInfo{expex-glossonly}{Patching ExPex for use with linguex}
+ \typeout{Patching ExPex for use with linguex}
+},
+covington.code = {
+ \PassOptionsToPackage{covington}{#1}
+ \let\ex\relax
+ \RequirePackage{covington}
+ \EPGL@examplesloadedtrue
+ \EPGL@patchexpexgloss
+ \newcommand*{\EPGL@glosslineone}{%
+ \@ifundefined{glosslineone@global}{\glosslineone}{\glosslineone@global}}
+ \lingset{belowglpreambleskip=-0.5ex, aboveglftskip=-0.5ex,everygla=\EPGL@glosslineone}
+ \PackageInfo{expex-glossonly}{Patching ExPex for use with covington}
+ \typeout{Patching ExPex for use with covington}
}
-{\@ifpackageloaded{gb4e}{
- \def\EPGL@setglossmargin{%
- \ifnum\@xnumdepth=1%
- \setlength{\leftskip}{\leftmargin+\widthof{\@exwidth}+1em}
- \else
- \setlength{\leftskip}{\leftmargin+\labelwidth+\labelsep+1.5em}
- \fi}
- \EPGL@patchexpexgloss
- \PackageInfo{expex-glossonly}{Patching ExPex for use with gb4e}
- \typeout{Patching ExPex for use with gb4e}
-}{}}
}
+\DeclareUnknownKeyHandler[expex-glossonly]{\PackageError{expex-glossonly}{Please specify which example package you are using as a package option!}{Please specify which example package you are using as a package option!}}
+
+\ProcessKeyOptions[expex-glossonly]
+\ifEPGL@examplesloaded\else\PackageWarning{expex-glossonly}{No example package specified! Assuming ExPex}\fi
+
\endinput \ No newline at end of file