diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/gb4e-next/README.md | 25 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/gb4e-next/gb4e-next.pdf | bin | 0 -> 43190 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/gb4e-next/gb4e-next.tex | 97 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/gb4e-next/gb4e-next.sty | 58 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 2 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-humanities.tlpsrc | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/gb4e-next.tlpsrc | 0 |
7 files changed, 182 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/gb4e-next/README.md b/Master/texmf-dist/doc/latex/gb4e-next/README.md new file mode 100644 index 00000000000..84166b7b8c8 --- /dev/null +++ b/Master/texmf-dist/doc/latex/gb4e-next/README.md @@ -0,0 +1,25 @@ + # The `gb4e-next` package + + The `gb4e-next` package provides `gb4e` users two relative example reference commands. `\Next` refers to the next + example in the document and `\Prev` refers to the previous example. No explicit label command is required. + + Version 0.5 2024-10-27 + Copyright 2024 by Alan Munn + + This package may be distributed and/or modified under the + conditions of the LaTeX Project Public License, either version 1.3 + of this license or 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. + + This package has the LPPL maintenance status `maintained'. + + The Current Maintainer of this package is Alan Munn. + + This package consists of the file gb4e-next.sty and documentation files + gb4e-next.tex and gb4e-next.pdf. + + This package is currently experimental. Use at your own risk. + diff --git a/Master/texmf-dist/doc/latex/gb4e-next/gb4e-next.pdf b/Master/texmf-dist/doc/latex/gb4e-next/gb4e-next.pdf Binary files differnew file mode 100644 index 00000000000..51077fe548b --- /dev/null +++ b/Master/texmf-dist/doc/latex/gb4e-next/gb4e-next.pdf diff --git a/Master/texmf-dist/doc/latex/gb4e-next/gb4e-next.tex b/Master/texmf-dist/doc/latex/gb4e-next/gb4e-next.tex new file mode 100644 index 00000000000..356856e8c6f --- /dev/null +++ b/Master/texmf-dist/doc/latex/gb4e-next/gb4e-next.tex @@ -0,0 +1,97 @@ +% !TEX TS-program = lualatexmk +\def\gbnextversion{0.5} +\def\gbnextdate{October 27, 2024} +\documentclass[11pt]{article} +\title{\textbf{The \textsf{gb4e-next} package}} +\author{\textbf{Alan Munn}\\Department of Linguistics, Languages, and Cultures\\Michigan State University\\\texttt{\href{mailto:amunn@msu.edu}{amunn@msu.edu}}} +\date{Version \gbnextversion\\\gbnextdate} +\usepackage[margin=.5in,includefoot]{geometry} +\usepackage{fontspec} +\setmonofont[Scale=MatchLowercase]{DejaVu Sans Mono} +\usepackage{titling} +\usepackage{array, booktabs, multicol, fancyhdr, xspace,tabularx} +\usepackage{enumitem} +\usepackage{fancyvrb,listings,url} +\usepackage[sf,compact]{titlesec} +\usepackage[colorlinks=true]{hyperref} + + +\DefineShortVerb{\|} +\newcommand*\bs{\textbackslash} + + +\lstset{% + basicstyle=\ttfamily\small, + commentstyle=\itshape\ttfamily\small, + keywordstyle={}, + showspaces=false, + showstringspaces=false, + breaklines=true, + breakautoindent=true, + breakindent=1em, + xrightmargin=2.5em, + captionpos=t, + frame=tl, + language=TeX, +} + +\newcommand*{\pkg}[1]{\texttt{#1}\xspace} +\setitemize[1]{label={}} +\setitemize[2]{label={}} +\setdescription{font={\normalfont}} +\setlength{\droptitle}{-1in} + +\lhead{} +\chead{} +\rhead{} +\lfoot{\emph{}} +\cfoot{\thepage} +\rfoot{} +\renewcommand{\headrulewidth}{0pt} +\renewcommand{\footrulewidth}{0pt} +\pagestyle{fancy} + + +\begin{document} +\maketitle +\thispagestyle{empty} +\renewcommand{\abstractname}{\sffamily Abstract} +\abstract{\noindent\begin{quote}This package provides relative example referencing commands |\Next| and |\Prev| to \pkg{gb4e} users.\end{quote}} + +\section{Package usage} +Usage of the package is simple: simply load it alongside \pkg{gb4e}. The commands |\Next| which refers to the next example in the text and |\Prev| which refers to the previous example in the text, will then be made available. +\subsection{Package options} +The package has a single key-value option |fn| to specify the default format for the commands when used inside a footnote. The \pkg{gb4e} package defaults to arabic numbering of examples in footnotes unless the |{xlisti}| environment is explicitly used. Since the package can’t know this, you need to specify the default format for relative reference inside a footnote. Possible values are |arabic| (default), |roman|, |Roman|, |alph|, and |Alph|. The most likely choice in most cases will be either the default or |roman|. +\subsection{Package commands} +The package provides two commands: |\Next[<format>]| which refers to the next example and |\Prev[<format>]| which refers to the previous example. The optional |[<format>]| argument allows you to specify a specific format for the number. Possible values are |arabic|, |roman|, |Roman|, |alph|, and |Alph|. The most likely choice in most cases will be either the default or |roman|. If you have specified a format for the |fn| option, this will be used automatically, so there will usually be no need for the optional argument. +\section{Example} +Here’s an example of how to use the package: + +\begin{quote} +\begin{lstlisting} +\documentclass{article} +\usepackage{gb4e} +\usepackage[fn=roman]{gb4e-next} +\begin{document} +This is the reference to example \Next. +\begin{exe} +\ex An example +\end{exe} + +This is reference to example \Next. + +\begin{exe} +\ex Another example +\end{exe} +This contains a footnote\footnote{This is a footnote with an example. We can refer to it as \Next. \begin{xlisti}\ex A footnote example\end{xlisti}} And this is a reference to the previous example: \Prev +\end{document} +\end{lstlisting} +\end{quote} + + +\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/gb4e-next}{GitHub repository}, however. +\section{Version history} +This is the initial version of the package (0.5). + +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/gb4e-next/gb4e-next.sty b/Master/texmf-dist/tex/latex/gb4e-next/gb4e-next.sty new file mode 100644 index 00000000000..5974f21feb7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/gb4e-next/gb4e-next.sty @@ -0,0 +1,58 @@ +\def\gbnext@version{0.5} +\def\gbnext@date{2024-10-27} +% The gb4e-next package provides gb4e users two relative example reference commands. \Next refers to the next +% example in the document and \Prev refers to the previous example. No explicit label command is required. +% +% Copyright 2024 by Alan Munn +% +% This package may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% of this license or 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. +% +% This package has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this package is Alan Munn. +% +% This package consists of the file gb4e-next.sty and documentation files +% gb4e-next.tex and gb4e-next.pdf. +% +% This package is currently experimental. Use at your own risk. +% +\ProvidesPackage{gb4e-next}[\gbnext@date\ Provides relative example reference to gb4e v. \gbnext@version ] +\RequirePackage{gb4e} +\DeclareKeys[gb4e-next]{ +fn.store = \gbnext@fnformat +} +\SetKeys[gb4e-next]{fn=roman} +\ProcessKeyOptions[gb4e-next] +\newcounter{gbnext@tmpcnt} +\NewDocumentCommand{\Next}{o}{% +\IfNoValueTF{#1}% +{\save@exx}% +{\save@exx[#1]}% +\stepcounter{gbnext@tmpcnt}\printExNo} +\NewDocumentCommand{\Prev}{o}{% +\IfNoValueTF{#1}% +{\save@exx}% +{\save@exx[#1]}% +\printExNo} +\NewDocumentCommand{\save@exx}{o}{% +\if@noftnote% +\setcounter{gbnext@tmpcnt}{\value{exx}}% +\IfNoValueTF{#1}% +{\def\thegbnext@tmpcnt{\arabic{gbnext@tmpcnt}}}% default format of printed number +{\def\thegbnext@tmpcnt{\csname#1\endcsname{gbnext@tmpcnt}}}% +\else% +\setcounter{gbnext@tmpcnt}{\value{fnx}}% +\IfNoValueTF{#1}% +{\def\thegbnext@tmpcnt{\csname\gbnext@fnformat\endcsname{gbnext@tmpcnt}}}% default format of printed number +{\def\thegbnext@tmpcnt{\csname#1\endcsname{gbnext@tmpcnt}}}% +\fi} +\newcommand\printExNo{(\thegbnext@tmpcnt)} +\endinput + + diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 0e5199a449d..db0114250c3 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -374,7 +374,7 @@ my @TLP_working = qw( g-brief gaceta galois gamebook gamebooklib gammas garamond-libre garamond-math garuda-c90 garrigues gastex gates gatherenum gauss - gb4e gbt7714 gcard gchords gcite gckanbun + gb4e gb4e-next gbt7714 gcard gchords gcite gckanbun gelasio gelasiomath genealogy genealogytree gender gene-logic genealogy-profiles genmpage gensymb gentium-tug gentle gentombow geometry geradwp german germbib germkorr geschichtsfrkl diff --git a/Master/tlpkg/tlpsrc/collection-humanities.tlpsrc b/Master/tlpkg/tlpsrc/collection-humanities.tlpsrc index 2d858ad338d..2d11e33facb 100644 --- a/Master/tlpkg/tlpsrc/collection-humanities.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-humanities.tlpsrc @@ -21,6 +21,7 @@ depend eledmac depend expex depend expex-glossonly depend gb4e +depend gb4e-next depend gmverse depend interlinear depend jura diff --git a/Master/tlpkg/tlpsrc/gb4e-next.tlpsrc b/Master/tlpkg/tlpsrc/gb4e-next.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/gb4e-next.tlpsrc |