仅在一章中更改 gb4e 枚举

仅在一章中更改 gb4e 枚举

我在论文中使用gb4e它来注释示例。我想将示例编号重新设置为零以作为附录。我假设 Alan Munn 的解决方案的一些变体gb4e 枚举格式可能对我有用,但是如何格式化它以便它只影响一个章节,而不是所有章节。

答案1

您可以在命令exx之后简单地重置计数器\appendix

\appendix
\setcounter{exx}{0}

MWE(借用自链接答案)

\documentclass{book}
\usepackage{gb4e}

\begin{document}
\chapter{}

\begin{exe}
\ex
\gll born be?ettef\={a}q.e yek.i ?az aqv\={a}m.a\v{s} be \v{s}ahr.e per\={a}g moh\={a}jerat kard\\
     Born with.EZ one.INDEF from relatives.CL-3SG to city.EZ Prague move did.3SG \\
\glt `Born moved to the city of Prague with one of his relatives.'
\end{exe}

\begin{exe}
\ex
\gll born be?ettef\={a}q.e yek.i ?az aqv\={a}m.a\v{s} be \v{s}ahr.e per\={a}g moh\={a}jerat kard\\
     Born with.EZ one.INDEF from relatives.CL-3SG to city.EZ Prague move did.3SG \\
\glt `Born moved to the city of Prague with one of his relatives.'
\end{exe}

\chapter{}

\begin{exe}
\ex
\gll born be?ettef\={a}q.e yek.i ?az aqv\={a}m.a\v{s} be \v{s}ahr.e per\={a}g moh\={a}jerat kard\\
     Born with.EZ one.INDEF from relatives.CL-3SG to city.EZ Prague move did.3SG \\
\glt `Born moved to the city of Prague with one of his relatives.'
\end{exe}

\appendix
\setcounter{exx}{0}

\chapter{}

\begin{exe}
\ex
\gll born be?ettef\={a}q.e yek.i ?az aqv\={a}m.a\v{s} be \v{s}ahr.e per\={a}g moh\={a}jerat kard\\
     Born with.EZ one.INDEF from relatives.CL-3SG to city.EZ Prague move did.3SG \\
\glt `Born moved to the city of Prague with one of his relatives.'
\end{exe}

\end{document} 

输出:

在此处输入图片描述

相关内容