diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/crossreftools/crossreftools_driver.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/crossreftools/crossreftools_driver.tex | 34 |
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 |