I'm having trouble with referring to numbered examples in the gb4e package. When I refer to a labeled example, instead of example number I get '??'. It happened even when I copy-pasted the example from LaTeX/Linguistics:
\begin{exe}
\ex\label{ex1} Godzilla destroyed the city.
\ex\label{ex2} Godzilla roared.
\end{exe}
Sentence (\ref{ex1}) contains two arguments, but (\ref{ex2}) contains only one.
Last edited by localghost on Wed Feb 13, 2013 5:46 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
I don't know the package but have you compiled it two times? First the label needs to be written to the AUX file and secondly the \ref needs to `catch' the label.
Last edited by svend_tveskaeg on Thu Feb 14, 2013 12:44 am, edited 1 time in total.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
How do you do that? I don't see in reference to my numbered examples in the AUX. And I don't really know what i means to have \ref catch the label, other than what I showed in my example. Currently my AUX looks like this, if it helps:
Kotoschow wrote:I encountered this double-compilation thingie also in bibtex, should have thought about it. Isn't there any solution to this?
Well, there are some tools that can take care of double compilation and similar stuff, e.g. latexmk or arara.
In my opinion double compilation is the solution. When I creat a document I usually have compiled it so often before it is ready that the double-compilation for references doesn't really matter.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p