![各章节中 linguex-examples 的编号保持一致](https://linux22.com/image/474546/%E5%90%84%E7%AB%A0%E8%8A%82%E4%B8%AD%20linguex-examples%20%E7%9A%84%E7%BC%96%E5%8F%B7%E4%BF%9D%E6%8C%81%E4%B8%80%E8%87%B4.png)
我正在使用一个模板来完成我的论文,它将每个章节的单独.tex 文件导入到main.tex中。
使用 linguex 时,我的示例开始从 (1) 开始重新编号,而我似乎无法使用 \setcounter 解决这个问题。有什么办法吗?
谢谢!
答案1
只需将ExNo
计数器从重置列表中排除即可chapter
。
\documentclass{book}
\usepackage{linguex}
\counterwithout{ExNo}{chapter}
\begin{document}
\chapter{first}
\ex. This is the first level of embedding
\a. This is the second level
\b. This is still the second level, but:
\a. This is the third level
\b. This is not the end.
\b. This is the end
\chapter{second}
\ex. This is the first level of embedding
\a. This is the second level
\b. This is still the second level, but:
\a. This is the third level
\b. This is not the end.
\b. This is the end
\end{document}