I have used the 'cleveref' package for a large document. It contains a lot of (tikz) figures and the 'scrreprt' class is used.
\documentclass[a4paper, onecolumn, twoside, openright, titlepage, DIV=calc, BCOR=1cm, headinclude=false,footinclude=false, draft, captions=topbeside]{scrreprt}
I'd like to place figure captions in outer margins of the pages. I tried to use the 'floatrow' package and the 'captionbeside' environment for this purpose.
KOMA-Script and sidenotes : how to format side (margin) caption and its caption label?
'cleveref' can not recognise the labels of figures and tables anymore afterwards. I can guess that this is related to some kind of changed 'labelling' but am not able to find a solution.
Would you please advice me on how to address this issue?
Chr.
EDIT: I have added this example:
\documentclass[captions=topbeside]{scrreprt}
\usepackage{graphicx}
\usepackage{cleveref}
\begin{document}
\begin{figure}[!htb]
\begin{captionbeside}{caption1}
[o]{\includegraphics[width=3cm]{example-image-a}}
\end{captionbeside}\label{fig:fig_1}
\end{figure}
\begin{figure}[!htb]
\begin{captionbeside}{caption2}
[o]{\includegraphics[width=3cm]{example-image-a}}
\end{captionbeside}\caption{caption2}\label{fig:fig_2}
\end{figure}
\begin{figure}[!htb]
\includegraphics[width=3cm]{example-image-a}
\caption{caption3}\label{fig:fig_3}
\end{figure}
\cref{fig:fig_1}, \cref{fig:fig_2}, \cref{fig:fig_3}.
\end{document}
tufte
classes several years back.