For certain styles it appears that the
\label statement must be included in
\caption to preserve good referencing. Why is that?
i've recently seen a post from someone who had written something like
(anyone with any experience would baulk at that, but it has happened.)
for only ordinarily-misguided people, it's enough just to say "put the
\label immediately after the
the grouping effect applies equally well for sections and other things that can be labelled.
mbq claims that some templates mess the label system up. if that's so, you just have not to use labels.
fwiw, i've downloaded and scanned the jss stuff that mbq mentioned, and see no indication that label processing is anything other than standard.