expex“everylabel=\actualexno”导致后续引用出现错误

expex“everylabel=\actualexno”导致后续引用出现错误

我对示例的数量有疑问。当我在示例实际出现之前引用该示例(通过其标签)时,数字是正确的。但在定义之后引用它时会给出错误的数字。

everylabel=\actualexno仅当我在命令中使用时才会发生这种情况\definestyle,并且示例被分为子示例。

    \documentclass[10pt, a4paper]{article}
    \usepackage{expex}
    \definelingstyle{IJAL}{everylabel=\actualexno}  % HERE IS THE PROBLEM
    \lingset{lingstyle=IJAL}                        % (and here)

    \begin{document}
    \gathertags
    Referencing ahead of the definition gives 
      correct number of the whole example (\getref{a}), 
      as well as its part (\getref{a.A}), 
      although the full reference gives us too much (\getfullref{a.A}).

    \pex<a>
      \a<A> some example
    \xe


    The reference to the whole example is still correct afterwards (\getref{a}), 
      but the reference to its part has a one too large prefix (\getref{a.A}) 
      and the full reference is just a concatenation of both, as usual (\getfullref{a.A}).

    \end{document}

在此处输入图片描述

相关内容