However, I cannot seem to find a specific way to refer to an example with a specific name at a position in the text before the example has been declared.
For instance I have this code.
Code: Select all
In the following example \getref{littleDog}, one can see that this is true
\ex<littleDog>
bednagatj
\xe
As the previous example in \getref{littleDog} shows, this is true.
Does anyone know how to be able to refer to named examples at a location in the source file before the examples have occurred in the source?In the following example [littleDog], one can see that this is true.
(1) bednagatj
As the previous example in 1 shows, this is true.
PS: I'm aware of the
\nextx
command, but this is only useful for one example, and only for the immediately following example, and cannot refer to an example by its label tag. My current workaround is just with the standard \label
and \ref
commands, but that doesn't allow for the flexibility in referring to examples and parts of examples.