I am using the lingmacros package for numbered examples. By default it works like this:
\enumsentence{This is the first example.}
\enumsentence{This is the second example.}
(1) This is the first example.
(2) This is the second example.
I'd like to add chapter numbers in the parentheses.
If I change the following line in the .sty file, it adds the chapter numbers:
-{\refstepcounter{enums}\@enumsentence[(\theenums)]}}
+{\refstepcounter{enums}\@enumsentence[(\arabic{chapter}.\theenums)]}}
Question: what do I add to the document's preamble so that I get the same result without modifying the .sty file?
Also, I'd like to decrease the space between examples. I'm using the following in my document but it doesn't affect the examples:
\usepackage{enumitem}
\setlist{topsep=0pt, partopsep=0pt, parsep=0pt, itemsep=0pt}
lingmacros? It's a very old package, and there are better packages available for example numbering: Numbered examples in linguistics that I can refer back to. – Alan Munn Nov 30 '14 at 17:11gb4ebecause its markup is more semantic. Loadgb4elate in the loading sequence of packages, and add\noautomathright after you load the package to turn off the underscore features. Lots of people likelinguexas well, and it has more parameters that you can tweak for adjusting the spacing. To adjust counter dependencies without modifying the package, I use thechngcntrpackage. For your case andgb4eyou would use\usepackage{chngcntr}\counterwithin{xnumi}{chapter}– Alan Munn Nov 30 '14 at 17:27\counterwithin{exx}{chapter}to reset the example numbers each chapter. – Alan Munn Nov 30 '14 at 17:35