Commit f5ab5393 authored by Roland Herzog's avatar Roland Herzog

provides a simple wrapper for cleveref commands to autoref commands

parent e3f8750e
% This package provides some rudimentary replacements for cleveref.sty by the
% variants of the \autoref command
% Limitations:
% * several commands from the cleveref.sty package are not available in autoref.sty
% * \autoref does not accept multiple arguments; see
% https://tex.stackexchange.com/questions/15728/multiple-references-with-autoref
% for a partial workaround
\RequirePackage{letltxmacro}
\LetLtxMacro{\cref}{\autoref}
\LetLtxMacro{\Cref}{\autoref}
\newcommand{\crefrange}{\PackageError{numapde-wrapCleveref}{\crefrange is currently not supported}{}}
\newcommand{\Crefrange}{\PackageError{numapde-wrapCleveref}{\Crefrange is currently not supported}{}}
\LetLtxMacro{\cpageref}{\autopageref}
\LetLtxMacro{\Cpageref}{\autopageref}
\newcommand{\cpagerefrange}{\PackageError{numapde-wrapCleveref}{\cpagerefrange is currently not supported}{}}
\newcommand{\Cpagerefrange}{\PackageError{numapde-wrapCleveref}{\Cpagerefrange is currently not supported}{}}
\newcommand{\namecref}{\PackageError{numapde-wrapCleveref}{\namecref is currently not supported}{}}
\newcommand{\nameCref}{\PackageError{numapde-wrapCleveref}{\nameCref is currently not supported}{}}
\newcommand{\lcnamecref}{\PackageError{numapde-wrapCleveref}{\lcnamecref is currently not supported}{}}
\newcommand{\namecrefs}{\PackageError{numapde-wrapCleveref}{\namecrefs is currently not supported}{}}
\newcommand{\nameCrefs}{\PackageError{numapde-wrapCleveref}{\nameCrefs is currently not supported}{}}
\newcommand{\lcnamecrefs}{\PackageError{numapde-wrapCleveref}{\lcnamecrefs is currently not supported}{}}
\LetLtxMacro{\labelcref}{\ref}
\LetLtxMacro{\labelcpageref}{\pageref}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment