diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/bibcop')
-rw-r--r-- | Master/texmf-dist/tex/latex/bibcop/bibcop.sty | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/bibcop/bibcop.sty b/Master/texmf-dist/tex/latex/bibcop/bibcop.sty index ccc02e1854c..7ee506ca157 100644 --- a/Master/texmf-dist/tex/latex/bibcop/bibcop.sty +++ b/Master/texmf-dist/tex/latex/bibcop/bibcop.sty @@ -31,7 +31,8 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{bibcop} -[2023-05-16 0.0.10 Style Checker of Bibliography Files] +[2023-05-18 0.0.11 Style Checker of Bibliography Files] + @@ -67,6 +68,12 @@ \RequirePackage{pgfopts} \pgfkeys{ /bibcop/.cd, + notags/.store in=\bibcop@notags, + noorg/.store in=\bibcop@noorg, + noinproc/.store in=\bibcop@noinproc, + nocaps/.store in=\bibcop@nocaps, + nodoi/.store in=\bibcop@nodoi, + nowraps/.store in=\bibcop@nowraps, verbose/.store in=\bibcop@verbose, script/.store in = \bibcop@script, } @@ -82,13 +89,25 @@ \makeatother \makeatletter +\newcommand\bibcop@exec[1]{ + \iexec{\bibcop@script\space + \ifdefined\bibcop@verbose--verbose\fi\space + \ifdefined\bibcop@notags--no:tags\fi\space + \ifdefined\bibcop@noinproc--no:org\fi\space + \ifdefined\bibcop@noinproc--no:inproc\fi\space + \ifdefined\bibcop@nodoi--no:doi\fi\space + \ifdefined\bibcop@nocaps--no:caps\fi\space + \ifdefined\bibcop@nowraps--no:wraps\fi\space + --latex '#1'}% + \message{bibcop: style checking finished for #1^^J}% +} +\makeatother + +\makeatletter \ifdefined\bibliography \let\bibcop@oldbibliography\bibliography \renewcommand\bibliography[1]{% - \iexec{\bibcop@script\space - \ifdefined\bibcop@verbose--verbose\fi\space - --latex '#1.bib'}% - \message{bibcop: style checking finished^^J}% + \bibcop@exec{#1.bib}% \bibcop@oldbibliography{#1}% } \fi @@ -98,10 +117,7 @@ \ifdefined\addbibresource \let\bibcop@oldaddbibresource\addbibresource \renewcommand\addbibresource[1]{% - \iexec{\bibcop@script\space - \ifdefined\bibcop@verbose--verbose\fi\space - --latex '#1'}% - \message{bibcop: style checking finished^^J}% + \bibcop@exec{#1}% \bibcop@oldaddbibresource{#1}% } \fi |