Add document (content)

This commit is contained in:
Michael Baumgartner 2024-03-30 14:58:25 +01:00
parent c2d2a4b5ed
commit 8f14c9f28f
Signed by: BaumiCoder
GPG key ID: 0E6AD690E6659C65

View file

@ -32,4 +32,40 @@
\mainmatter \mainmatter
\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} \end{document}