Add document (content)
This commit is contained in:
parent
c2d2a4b5ed
commit
8f14c9f28f
36
example.tex
36
example.tex
|
|
@ -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}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue