summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/webquiz/doc/examples/discussion-ref.tex
blob: b51c9037044e7cc0a7052d04acdefd38b263a643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
\documentclass[onepage]{webquiz}
\title{A dref and qref example}
\begin{document}
  \begin{discussion}[First bit][First discussion item]\label{d:one}
    Some cross-references to question 1: \qref{q:one}, \qref*{q:one},
    \qref[some text]{q:one}, and \qref*[some text]{q:one}.
  \end{discussion}
  \begin{question}\label{q:one}
    Cross-references to discussion: \answer{1} \dref{d:one}, \dref*{d:one},
    \dref[some text]{d:one} and \dref*[some text]{d:one}.
  \end{question}
\end{document}