How can I get cleveref
to work with \linelabel
from lineno
?
\documentclass{article}
\usepackage{lineno}
\usepackage{cleveref}
\begin{document}
\linenumbers
Bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \linelabel{foo} bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
\cref{foo} doesn't work because the cleveref line doesn't get written to the aux file, but \ref{foo} works.
\end{document}
\linelabel
is not using\label
and that's whycleveref
can't hook into it\linelabel
to write a cleveref-compatible line to the aux file?\cref@currentlabel
, but I have no time to figure it out