I want to change the default behavior of gb4e
for a small portion of the text. I have a series of modifications of an example that I want to be labelled as if they were subexamples. For example:
(3a) Blah blah
But (3a) is problematic and can be refined:
(3b) Refined blah blah
The example gets "refined" about six times.
First MWE:
\documentclass{article}
\usepackage{gb4e}
\begin{document}
\begin{exe}
\ex\label{ex:1} Blah
\ex\label{ex:2} Blah
\ex\label{ex:3a} Blah blah
\end{exe}
But (\ref{ex:3a}) is problematic and can be refined:
\begin{exe}
\ex\label{ex:3b} Refined blah blah
\end{exe}
\end{document}
When I try to just override the label using gb4e
's \exi
command, the cross-referencing gets messed up:
\documentclass{article}
\usepackage{gb4e}
\begin{document}
\begin{exe}
\ex\label{ex:1} Blah
\ex\label{ex:2} Blah
\exi{(3a)}\label{ex:3a} Blah blah
\end{exe}
But (\ref{ex:3a}) is problematic and can be refined:
\begin{exe}
\exi{(3b)}\label{ex:3b} Refined blah blah
\end{exe}
\setcounter{exx}{3}
\end{document}
Instead of printing "(3a)" it prints "(2)".
How do I achieve what I'm looking for in a way that respects the counters and gets cross-referencing right?