diff options
author | Norbert Preining <norbert@preining.info> | 2021-09-14 03:03:34 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-09-14 03:03:34 +0000 |
commit | 1666f2f182d9f9fb45ef8aa275b477d3264ef1cb (patch) | |
tree | 1f0104d5a5a8d31e9bc6671f2c1e72ed27a36ad7 /macros/latex/contrib/crumbs | |
parent | e403b5892f209477e44b123a10b5b35cc425d8e9 (diff) |
CTAN sync 202109140303
Diffstat (limited to 'macros/latex/contrib/crumbs')
-rw-r--r-- | macros/latex/contrib/crumbs/DEPENDS.txt | 1 | ||||
-rw-r--r-- | macros/latex/contrib/crumbs/crumbs.pdf | bin | 345356 -> 345354 bytes | |||
-rw-r--r-- | macros/latex/contrib/crumbs/crumbs.sty | 68 | ||||
-rw-r--r-- | macros/latex/contrib/crumbs/crumbs.tex | 2 |
4 files changed, 36 insertions, 35 deletions
diff --git a/macros/latex/contrib/crumbs/DEPENDS.txt b/macros/latex/contrib/crumbs/DEPENDS.txt index 79f2bb0b5f..78c5e550c1 100644 --- a/macros/latex/contrib/crumbs/DEPENDS.txt +++ b/macros/latex/contrib/crumbs/DEPENDS.txt @@ -1,2 +1,3 @@ +hard xkeyval hard etoolbox hard catchfile diff --git a/macros/latex/contrib/crumbs/crumbs.pdf b/macros/latex/contrib/crumbs/crumbs.pdf Binary files differindex 4d7bd0169f..9be4929f90 100644 --- a/macros/latex/contrib/crumbs/crumbs.pdf +++ b/macros/latex/contrib/crumbs/crumbs.pdf diff --git a/macros/latex/contrib/crumbs/crumbs.sty b/macros/latex/contrib/crumbs/crumbs.sty index 17194892c0..8440f80ba5 100644 --- a/macros/latex/contrib/crumbs/crumbs.sty +++ b/macros/latex/contrib/crumbs/crumbs.sty @@ -21,7 +21,10 @@ % SOFTWARE. \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{crumbs}[2021/09/12 0.3.0 Navigation Crumbs] +\ProvidesPackage{crumbs}[2021/09/13 0.3.1 Navigation Crumbs] + +\RequirePackage{xkeyval} +\RequirePackage{etoolbox} \makeatletter\newif\ifcrumbs@dry\makeatother \makeatletter\DeclareOption{dry}{\crumbs@drytrue}\makeatother @@ -29,8 +32,6 @@ \makeatletter\DeclareOption{increment}{\crumbs@incrementtrue}\makeatother \ProcessOptions\relax -\RequirePackage{etoolbox} - % see https://tex.stackexchange.com/a/12414/1449 \makeatletter\newcommand\crumbs@back{\@backslashchar}\makeatother % \makeatletter\newcommand\crumbs@percent{\@percentchar}\makeatother @@ -47,22 +48,22 @@ \endgroup } -\newcommand\subcrumbs{ - \ifnum\value{section}=0\else - \expandafter\ifcsname crumbs\romannumeral\the\value{section}\endcsname - \csname crumbs\romannumeral\the\value{section}\endcsname{} - \fi - \fi +\newcommand\subcrumbs{% + \ifnum\value{section}=0\else% + \expandafter\ifcsname crumbs\romannumeral\the\value{section}\endcsname% + \csname crumbs\romannumeral\the\value{section}\endcsname{}% + \fi% + \fi% } \makeatletter\newcommand\crumbection[2][]{% \def\temp{#1}% \ifx\crumbs\empty% - \appendtofile{\jobname.crumbs}{ - \crumbs@back ifx \crumbs@back crumbs \crumbs@back empty - \crumbs@back gappto \crumbs@back crumbs{\crumbs@back setcounter{crumbi}{0}} - \crumbs@back fi - \crumbs@back gappto\crumbs@back crumbs{\crumbs@back stepcounter{crumbi}\crumbs@back crumb{\ifx\temp\empty #2\else #1\fi}{#2}} + \appendtofile{\jobname.crumbs}{% + \crumbs@back ifx\crumbs@back crumbs\crumbs@back empty% + \crumbs@back gappto\crumbs@back crumbs{\crumbs@back setcounter{crumbi}{0}}% + \crumbs@back fi% + \crumbs@back gappto\crumbs@back crumbs{\crumbs@back stepcounter{crumbi}\crumbs@back crumb{\ifx\temp\empty #2\else #1\fi}{#2}}% }% \fi% \ifcrumbs@increment\stepcounter{section}\fi% @@ -71,24 +72,23 @@ \makeatletter\newcommand\subcrumbection[2][]{% \def\temp{#1}% \ifx\crumbs\empty% - \appendtofile{\jobname.crumbs}{ + \appendtofile{\jobname.crumbs}{% \crumbs@back ifcsname crumbs\romannumeral\the\value{section}\crumbs@back endcsname\crumbs@back else \crumbs@back expandafter\crumbs@back newcommand\crumbs@back csname crumbs\romannumeral\the\value{section}\crumbs@back endcsname{% - \crumbs@back setcounter{subcrumbi}{0} - } - \crumbs@back fi + \crumbs@back setcounter{subcrumbi}{0}% + }% + \crumbs@back fi% \crumbs@back expandafter\crumbs@back gappto\crumbs@back csname crumbs\romannumeral\the\value{section}\crumbs@back endcsname{% - \crumbs@back stepcounter{subcrumbi} - \crumbs@back subcrumb{\ifx\temp\empty #2\else #1\fi}{#2} - } + \crumbs@back stepcounter{subcrumbi}% + \crumbs@back subcrumb{\ifx\temp\empty #2\else #1\fi}{#2}}% }% \fi% \ifcrumbs@increment\stepcounter{subsection}\fi% }\makeatother -\makeatletter\ifcrumbs@dry - \message{Since "dry" mode is ON we don't renew "section" and "subsection" commands} -\else +\makeatletter\ifcrumbs@dry% + \message{Since "dry" mode is ON we don't renew "section" and "subsection" commands}% +\else% \NewCommandCopy\crumbs@oldsection\section \renewcommand\section[2][]{% \crumbection[#1]{#2}% @@ -101,16 +101,16 @@ } \fi\makeatletter -\ifcsname crumb\endcsname - \message{The command "crumb" is already defined} -\else - \newcommand\crumb[2]{#1} -\fi -\ifcsname subcrumb\endcsname - \message{The command "subcrumb" is already defined} -\else - \newcommand\subcrumb[2]{#1} -\fi +\ifcsname crumb\endcsname% + \message{The command "crumb" is already defined}% +\else% + \newcommand\crumb[2]{#1}% +\fi% +\ifcsname subcrumb\endcsname% + \message{The command "subcrumb" is already defined}% +\else% + \newcommand\subcrumb[2]{#1}% +\fi% \newcommand*\crumbs{} \newcounter{crumbi} diff --git a/macros/latex/contrib/crumbs/crumbs.tex b/macros/latex/contrib/crumbs/crumbs.tex index dbed6fc408..9ec5ca47e2 100644 --- a/macros/latex/contrib/crumbs/crumbs.tex +++ b/macros/latex/contrib/crumbs/crumbs.tex @@ -42,7 +42,7 @@ \title{\ff{crumbs}: \LaTeX{} Package \\ for Navigation Crumbs} \author{Yegor Bugayenko} -\date{0.3.0 2021/09/12} +\date{0.3.1 2021/09/13} \begin{document} \pagenumbering{gobble} |