I am writing in the class [report]
and using package linguex
for numbered examples in main text and in footnotes. I need to make my examples in footnotes numbered continuously. The issue is that currently they do not number continuously even within the same chapter, let alone across chapters. I found a solution for the same issue with the package gb4e
(here: gb4e examples numbering in footnotes continuously), but it involves a counter that my package doesn't have: fnx
, so it is not applicable to my problem (at least not clear to me how).
Thanks in advance. This is my first time asking a question so if I could ask better, please let me know. Note for those who do not use the package linguex
: it is based on numbered list environments. So a solution might rest on that fact.
Here is a minimal code illustrating the issue, and pictures of its compilation below:
\documentclass[12pt]{report}
\usepackage{linguex} %for glossed examples
\counterwithout{ExNo}{chapter} % for continuous numbered examples
\counterwithout{footnote}{chapter} % for continuous numbered footnotes
\begin{document}
\chapter{This is Chapter 1}
bla
\section{Section 1}
Here is some text.\footnote{Here is a footnote with two examples.
\ex.\label{bla} bla
\ex.\label{blabla} blabla
As you can see in example \ref{bla} and \ref{blabla}, we got an issue.
}
\ex. main bla
\ex. main blabla
Here is MORE text.\footnote{Here is ANOTHER footnote with ANOTHER couple of examples.
\ex.\label{boom} boom
\ex.\label{boom2} boom boom
As you can see in example \ref{boom} and \ref{boom2}, we got an issue within chapters.
}
\chapter{This is Chapter 2}
bla
\section{Section 1 of Ch2}
Here is some text.\footnote{Here is a footnote with two examples.
\ex.\label{bla2} bla2
\ex.\label{blabla2} blabla2
As you can see in example \ref{bla2} and \ref{blabla2}, we got an issue.
}
Here is MORE text.\footnote{Here is ANOTHER footnote with ANOTHER couple of examples.
\ex.\label{boom-ch2} boom2
\ex.\label{boom2-ch2} boom2 boom2
As you can see in example \ref{boom-ch2} and \ref{boom2-ch2}, we got an issue not only within chapters, but also across chapters.
}
\ex. main bla
\ex. main blabla
\end{document}
On the pictures, you can see that the commands have solved the issue of example numbering in main text and of footnote numbering across chapters, but not the example-in-footnote numbering within or across chapters.
A solution of the within-chapter part of the example-in-footnote issue would be acceptable, and across chapters - preferable. Thank you in advance and I hope the solution helps others as well.