summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/crossreftools/crossreftools_driver.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-12-26 22:07:36 +0000
committerKarl Berry <karl@freefriends.org>2017-12-26 22:07:36 +0000
commitab34d559eee3be0fcacb000229e72c45e2a56ad2 (patch)
treec6c44ee1c1aff2666c3f825a2359f37c5bb67f1f /Master/texmf-dist/doc/latex/crossreftools/crossreftools_driver.tex
parent700227e76504f7d34cad2c0c3bf6bbc7616f862a (diff)
crossreftools (26dec17)
git-svn-id: svn://tug.org/texlive/trunk@46142 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/crossreftools/crossreftools_driver.tex')
-rw-r--r--Master/texmf-dist/doc/latex/crossreftools/crossreftools_driver.tex34
1 files changed, 31 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/crossreftools/crossreftools_driver.tex b/Master/texmf-dist/doc/latex/crossreftools/crossreftools_driver.tex
index 38c5858af4d..f4aa243eebc 100644
--- a/Master/texmf-dist/doc/latex/crossreftools/crossreftools_driver.tex
+++ b/Master/texmf-dist/doc/latex/crossreftools/crossreftools_driver.tex
@@ -1,4 +1,4 @@
-%% LaTeX package crossreftools - version 0.3 (2017/10/31 -- 08:23:52)
+%% LaTeX package crossreftools - version 0.4 (2017/12/26 -- 17:55:15)
%% Driver file for crossreftools.sty
%%
%%
@@ -36,10 +36,17 @@
\def\equationlabeltoshow{fooequationlabel}
+\crtlistoflabelsstructurelevel{section}
\begin{document}
+\tableofcontents
-\setcounter{chapter}{16}
+\crtlistoflabels*
+
+\clearpage
+
+\chapter{Some easy usages of crossreftools}
+%\setcounter{chapter}{16}% Just for checking
Let us refer the usual way: \Cref{\labeltoshow}
@@ -72,6 +79,7 @@ If the \fbox{hyperref} package is loaded, further properties are retrievable:
The 5th (and usually empty) label property introduced by hyperref is unused as of version v6.85a of that package -- \crtextractref{unused}{labelname} will return nothing here, i.e. the expansion is empty.
+This works only if there is usual hyper anchor for the counter: \crtrefcounter{fooequationlabel}.
\section{Extracting the cleveref names}
@@ -91,7 +99,20 @@ The 5th (and usually empty) label property introduced by hyperref is unused as o
The macro \verb!\crtextractcref! is expandable!\edef\counterof{\crtextractcref{counter}{\labeltoshow}} Using the stored value for counter: \counterof!
-See \crthyperCref{fooequationlabel}
+See \crthyperCref{fooequationlabel} and \cref{pythagoreantheorem}.
+
+
+
+\chapter{Placing more generic labels}
+
+\clearpage
+\crtcrossreflabel[Let us place a label without a counter]{Let us plant a label not being connected to a counter:}[somelabel]
+
+
+
+\clearpage
+
+See \ref{somelabel} or \nameref{somelabel} on \cpageref{somelabel}
\chapter{This is foo}\label{foochapterlabel}
@@ -107,4 +128,11 @@ See \crthyperCref{fooequationlabel}
E=mc^{2}\label{fooequationlabel}
\end{equation}
+
+\clearpage
+
+\section{Another foo bar section}
+\begin{equation}
+ a^{2} + b^{2}=c^{2}\label[section]{pythagoreantheorem}% Explicitly use a wrong counter type here for testing
+\end{equation}
\end{document} \ No newline at end of file