Algorithm packages need to be loaded before cleveref to make references to single lines work properly
When referencing lines in pseudocode algorithms using \cref
, to get the correct reference to the line rather than a global reference to the Algorithm, any algorithm package, like algorithm2e
, algpseudocode
, etc. need to be loaded prior to cleveref
, which is currently loaded in the class files.
We may need options for the usual algorithm packages so we can load them selectively before cleveref
is loaded, and at the same time avoid clashes between the packages when loading them simultaneously.