summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/crossreftools/crossreftools_driver.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-02-23 22:07:41 +0000
committerKarl Berry <karl@freefriends.org>2018-02-23 22:07:41 +0000
commita634832239bc23a946c5ce5d60c139981f3f141b (patch)
tree72941e0e0ebe9fd0f431641d9be171838c5a800c /Master/texmf-dist/doc/latex/crossreftools/crossreftools_driver.tex
parentfc5c9edd95a17a5ca54c6a9c8d6a5348afa5f6e5 (diff)
crossreftools (23feb18)
git-svn-id: svn://tug.org/texlive/trunk@46724 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.tex26
1 files changed, 23 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 f4aa243eebc..69b1863d933 100644
--- a/Master/texmf-dist/doc/latex/crossreftools/crossreftools_driver.tex
+++ b/Master/texmf-dist/doc/latex/crossreftools/crossreftools_driver.tex
@@ -1,9 +1,9 @@
-%% LaTeX package crossreftools - version 0.4 (2017/12/26 -- 17:55:15)
+%% LaTeX package crossreftools - version 0.5 (2018/02/23 -- 13:46:13)
%% Driver file for crossreftools.sty
%%
%%
%% -------------------------------------------------------------------------------------------
-%% Copyright (c) 2017 by Dr. Christian Hupfer <typography dot with dot latex at gmail dot com>
+%% Copyright (c) 2017 -- 2018 by Dr. Christian Hupfer <typography dot with dot latex at gmail dot com>
%% -------------------------------------------------------------------------------------------
%%
%% This work may be distributed and/or modified under the
@@ -24,6 +24,7 @@
\usepackage{hyperref}
+\usepackage[user]{zref}
\usepackage{cleveref}
\usepackage{crossreftools}
@@ -118,7 +119,7 @@ See \ref{somelabel} or \nameref{somelabel} on \cpageref{somelabel}
\chapter{This is foo}\label{foochapterlabel}
\setcounter{section}{5}
-\section{Foo}\label{foosectionlabel}
+\section{Foo}\label{foosectionlabel} \zlabel{foosectionlabel}
\begin{equation}
E=mc^{2}\label{firstequationlabel}
@@ -135,4 +136,23 @@ See \ref{somelabel} or \nameref{somelabel} on \cpageref{somelabel}
\begin{equation}
a^{2} + b^{2}=c^{2}\label[section]{pythagoreantheorem}% Explicitly use a wrong counter type here for testing
\end{equation}
+
+
+\chapter{Checking for label existence}
+
+\crtifdefinedlabel{firstfooequationlabel}{%
+ Yes, that label exists%
+}{
+ No, that label does not exist%
+}
+
+\crtcrefifdefinedlabel{fooequationlabel}{%
+ Yes, that cleveref label exists%
+}{
+ No, that cleveref label does not exist%
+}
+
+
+
+
\end{document} \ No newline at end of file