summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bibcop
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-05-18 20:06:03 +0000
committerKarl Berry <karl@freefriends.org>2023-05-18 20:06:03 +0000
commit31d1704511cf500f7d821eb1ad7e60c22ac54e03 (patch)
tree9eeaee8b3ee51fc7768088be4a2b90273740138a /Master/texmf-dist/tex/latex/bibcop
parent0ec4c76b6a8aad7050a93428c92b372d37e59436 (diff)
bibcop (18may23)
git-svn-id: svn://tug.org/texlive/trunk@67145 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bibcop')
-rw-r--r--Master/texmf-dist/tex/latex/bibcop/bibcop.sty34
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