achemso: Cross-referencing to floats
I’ve had a a few questions about the achemso bundle concerning creating references such as “Figures 1 to 3” automatically. The problem has been that I’ve been using the varioref package to turn \ref{some-fig} in “Figure 1” automatically, rather than having to put Figure~\ref{some-fig}. Unfortunately, varioref does not handle multiple references in an automated fashion.
For version 3.4 of achemso (which I’ve just sent to CTAN), I’ve switched to the cleveref package. This means that you can now write something like \ref{fig-1,fig-2,fig-3} and get “Figures 1 to 3” without further effort. I hope that this makes life much easier for users, although it does mean that there is another package required to use achemso. I think that this is the right balance: I’m sure users will let me know if I’ve got it wrong.
I am having a problem with my cross-references. The table references appear as
[table][1][]1
and the figures as
[figure][1][]1
It also does not pick up my references to equations claiming undefined reference. All this works as expected without achemso.
Robert
18 Mar 10 at 2:21 pm
Hello Robert,
Please send me a demo, and your log file: joseph.wright@morningstar2.co.uk
Joseph Wright
18 Mar 10 at 2:33 pm
Error fixed when I was setting up the demo. I noticed I was including hyperref. Once it is removed from the packages everything works fine.
Robert
18 Mar 10 at 2:52 pm
The interaction with hyperref should work with the latest version of achemso: please take a look at the docs for details.
Joseph Wright
18 Mar 10 at 3:18 pm
Is it possible to default chemstyle to use cleveref instead of varioref? As mentioned in this post, being able to use “scheme 1 to 3″ is a useful feature.
Jon
16 Apr 10 at 8:20 pm