Where I'm stuck is producing good output for \ref. Obviously, the default behavior is to give just the value of the counter. I need it to produce (in the above example) "AMon1". This needs to be resilient to having multiple axiomlist environments with different "tags"; each reference should be tagged properly.
So far, I've looked into the cleverref and varioref packages; neither seems to have the capability to do this localized re-tagging. (On the other hand, maybe I missed something.) The enumerate package would have done the custom list, but is also deficient in the reference department (and I don't need the full power of that package, just this specific and oft-reused environment).
Thanks in advance,
--John.
Last edited by jmtuley on Wed Sep 22, 2010 9:25 pm, edited 1 time in total.
you could use the enumitem package; a little example:
That was very helpful and a great start for me; unfortunately, not sufficient: I need to write a self-contained (or reliant only on standard packages) package/class to give to authors, to maintain consistency of style across a particular project. Unfortunately, the code for enunitem is a bit over my head, and I'm having difficulty puzzling out which bit does what I need. I guess I need to keep looking at it until it makes more sense.
You could simply redefine the commands controlling the label (\labelenumi) and the reference representation (\p@enumi) of a standard enumerate environment; something along these lines:
That's exactly what I was looking for! I was a little worried when you started changing standard labels, but everything seems to work out fine (even with multiple Axiom environments and an enumerate thrown in). Of course you knew that, but it's good to verify.
Now that the problem is solved, please be so kind and mark the topic accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that a reminder will not necessary any more.