diff --git a/example.tex b/example.tex index e23566e..3f7f2b9 100644 --- a/example.tex +++ b/example.tex @@ -32,4 +32,40 @@ \mainmatter -\end{document} + \chapter{Some research question} + + \begin{resq}{myRQ} \label{rq:myRQ} + Some spectacular research question \dots + \end{resq} + + Look at \cref{ch:problem} \dots + + \chapter{problem} \label{ch:problem} + + Somewhere later in the document \dots + + \section{Current situation} + + \begin{summary}{With \backslash{}cref} \label{later} + So the answer to \cref{rq:myRQ} is \dots \\ + \end{summary} + + Did not work, and a compiler warning says why: \\ + LaTeX: cref reference format for label type `resq' undefined. + + \begin{summary}{With \backslash{}ref} + So the answer to RQ\ref{rq:myRQ} is \dots + \end{summary} + Works but, does not look to nice. + + \section{Workaround / solutions} + + With \backslash{}hyperref nicer solutions are possible. + \begin{summary}{Option A: Using the resq number} + So the answer to \hyperref[rq:myRQ]{Research question \theresq} is \dots + \end{summary} + + \begin{summary}{Option A: Using the resq label} + So the answer to \hyperref[rq:myRQ]{\emph{myRQ}} is \dots + \end{summary} + \end{document}