summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-09-10 21:04:14 +0000
committerKarl Berry <karl@freefriends.org>2021-09-10 21:04:14 +0000
commit004f3b9a898da969f640cecab1346df8c6118d78 (patch)
tree9614d707ca41f9ccd6b6caea404b9789cee6dccc /Master/texmf-dist/tex/latex
parent4b79745423266a43faee6595620461d873704a1c (diff)
crumbs (10sep21)
git-svn-id: svn://tug.org/texlive/trunk@60469 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/crumbs/crumbs.sty15
1 files changed, 12 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/crumbs/crumbs.sty b/Master/texmf-dist/tex/latex/crumbs/crumbs.sty
index 89126af2fb0..2b497078da6 100644
--- a/Master/texmf-dist/tex/latex/crumbs/crumbs.sty
+++ b/Master/texmf-dist/tex/latex/crumbs/crumbs.sty
@@ -21,7 +21,7 @@
% SOFTWARE.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{crumbs}[2021/09/06 0.2.1 Navigation Crumbs]
+\ProvidesPackage{crumbs}[2021/09/09 0.2.2 Navigation Crumbs]
\RequirePackage{etoolbox}
@@ -82,8 +82,17 @@
\crumbsoldsubsection{#2}
}
-\newcommand\crumb[2]{#1}
-\newcommand\subcrumb[2]{#1}
+\ifcsname crumb\endcsname
+ \message{The command "crumb" already defined}
+\else
+ \newcommand\crumb[2]{#1}
+\fi
+\ifcsname subcrumb\endcsname
+ \message{The command "crumb" already defined}
+\else
+ \newcommand\subcrumb[2]{#1}
+\fi
+
\newcommand*\crumbs{}
\newcounter{crumbi}
\newcounter{subcrumbi}