I'm currently working on my linguistics thesis, and I would like to add several example texts into the appendix. So I would like the ExPex numbering to restart from the beginning of every different text from (1). Is that achievable with ExPex?
Main document:
\documentclass[12pt,twoside,a4paper]{book}
\usepackage{tipa} % IPA symbols.
\usepackage{expex} % glossing
\begin{document}
\frontmatter
\maketitle
%expex
\lingset{glhangindent=0em} % adjust as necessary
\lingset{numoffset=0.5cm} % indentation for examples in expex
%\lingset{aboveexskip=0pt} % spacing between exs
\lingset{aboveglftskip=-0.3pt} %spacing before glft
\tableofcontents
\mainmatter
\include{Chapter1/chapter1}
\include{Chapter2/chapter2}
\appendix
\include{AppendixA/appendixa}
\backmatter
\end{document}
I have examples in each chapter and they are numbered from (1) until whatever, and now I would like the texts in the appendix number from (1) for each text (Text 1 and Text 2). Appendix:
\chapter{Example texts}
\section{Text 1}
\ex Line 1 \xe
\ex Line 2 \xe
\section{Text 2}
\ex Line 1 \xe
\ex Line 2 \xe
\ex ... \xe
) code, has more structure than is needed and uses\include
, which doesn't help since we don't have your included files (and they are not necessary in this case). See my answer for a more perspicuous MWE for this question.