summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/refenums/test
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-12-18 01:34:38 +0000
committerKarl Berry <karl@freefriends.org>2013-12-18 01:34:38 +0000
commit7eb6505775706d8c579eeb8e8bcb039655101190 (patch)
tree7d3190692ddc6712ad71e00b9c693c19ee694848 /Master/texmf-dist/doc/latex/refenums/test
parent5837565307206d06f408fd7bc573853c5aef0133 (diff)
refenums
git-svn-id: svn://tug.org/texlive/trunk@32430 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/refenums/test')
-rw-r--r--Master/texmf-dist/doc/latex/refenums/test/demo-sec-param.tex34
1 files changed, 34 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/refenums/test/demo-sec-param.tex b/Master/texmf-dist/doc/latex/refenums/test/demo-sec-param.tex
new file mode 100644
index 00000000000..ebb3b3d1150
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/refenums/test/demo-sec-param.tex
@@ -0,0 +1,34 @@
+\documentclass{article}
+
+%required by referenceableenumelement
+\usepackage{csquotes}
+\usepackage{ifthen}
+\usepackage{etoolbox}
+\usepackage{hyperref}
+\usepackage[capitalise,nameinlink]{cleveref}
+
+%Always add a dot behind the definition
+\newcommand{\thighlight}[1]{#1.}
+
+\input{../referenceableenumelement}
+
+\begin{document}
+
+%Setup ``Steps'' not having a print form
+\setupRefEnums[ ]{Step}{ONLYSHORT}
+
+\section{Steps}
+\label{sec:steps}
+
+\defRefEnum[subsection]{Step}{Requirements Analysis}{rqa}
+\label{sec:rqa}
+The heading is defined using the macro.
+
+%to show that the links are working: start a new page
+
+\section{Discussion}
+
+In \cref{sec:steps}, we started with \refEnumFull{Step}{rqa}.
+\LaTeX{} put that step into \cref{sec:rqa}.
+
+\end{document} \ No newline at end of file