
我在示例數量方面遇到問題。當我在實際發生之前參考該範例(透過其標籤)時,該數字是正確的。但是在定義之後引用它會給出錯誤的數字。
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}