summaryrefslogtreecommitdiff
path: root/support/checkcites
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-03-23 03:01:06 +0000
committerNorbert Preining <norbert@preining.info>2022-03-23 03:01:06 +0000
commit8a64caefc9bb0d4afe66b6bf09cf8f283a5e386e (patch)
treec6574d20d0007892968e557a7984fbfb1a5e7664 /support/checkcites
parent51119d11f3700a5be7da086dacad56dd219a5c90 (diff)
CTAN sync 202203230301
Diffstat (limited to 'support/checkcites')
-rw-r--r--support/checkcites/README13
-rw-r--r--support/checkcites/checkcites-doc.pdfbin288397 -> 290255 bytes
-rw-r--r--support/checkcites/checkcites-doc.tex33
-rw-r--r--support/checkcites/checkcites.lua27
4 files changed, 40 insertions, 33 deletions
diff --git a/support/checkcites/README b/support/checkcites/README
index c673a23200..2b52dc0bbd 100644
--- a/support/checkcites/README
+++ b/support/checkcites/README
@@ -1,13 +1,14 @@
-checkcites.lua -- Version 2.4 from September 3, 2019.
-=====================================================
+checkcites.lua -- Version 2.5 from March 22, 2022
+=================================================
License
-------
-Copyright (c) 2012, 2019 Enrico Gregorio, Paulo Roberto Massa Cereda
+Copyright (c) 2012, 2019, Enrico Gregorio, Paulo Cereda
+Copyright (c) 2022, Enrico Gregorio, Island of TeX
- Enrico dot Gregorio at univr dot it
-- cereda at users dot sf dot net
+- https://gitlab.com/islandoftex
This script is licensed under the LaTeX Project Public License.
If you want to support LaTeX development by a donation, the best
@@ -92,6 +93,8 @@ time checkcites also looks for bibliography data, in the form of
extract the bibliography data and add them to a table. Again, no duplicate
values are allowed. Stick with this backend if you are using BibLaTeX with
the default options or with the 'backend=biber' option explicitly set.
+It is important to note, however, that the 'glob=true' option is not
+supported yet.
Open a terminal and run checkcites:
@@ -146,4 +149,4 @@ That is it, folks!
Official code repository
------------------------
-http://github.com/cereda/checkcites
+http://gitlab.com/islandoftex/checkcites
diff --git a/support/checkcites/checkcites-doc.pdf b/support/checkcites/checkcites-doc.pdf
index 3fac0e8309..4265f23822 100644
--- a/support/checkcites/checkcites-doc.pdf
+++ b/support/checkcites/checkcites-doc.pdf
Binary files differ
diff --git a/support/checkcites/checkcites-doc.tex b/support/checkcites/checkcites-doc.tex
index 5de54fbd99..a0a976d6b0 100644
--- a/support/checkcites/checkcites-doc.tex
+++ b/support/checkcites/checkcites-doc.tex
@@ -15,12 +15,12 @@
\usepackage[svgnames]{xcolor}
\usepackage[colorlinks, linkcolor={blue}, urlcolor={blue}]{hyperref}
-\usepackage{tcolorbox}
+\usepackage[breakable]{tcolorbox}
\tcbuselibrary{listings}
\newcommand{\checkcites}{\texttt{checkcites}}
\newcommand{\email}[1]{\small\texttt{#1}}
-\newcommand{\version}{Version 2.4 from September 3, 2019.}
+\newcommand{\version}{Version 2.5 from March 22, 2022.}
\newenvironment{infoblock}[1]
{\par\addvspace{\medskipamount}
@@ -34,8 +34,8 @@
\title{The \checkcites\footnote{\version}\ \ script}
\author{%
- Enrico Gregorio\\\email{Enrico dot Gregorio at univr dot it}\\[3ex]
- Paulo Roberto Massa Cereda\\\email{cereda at users dot sf dot net}%
+ Enrico Gregorio\\\email{Enrico.Gregorio@univr.it}\\[3ex]
+ Island of \TeX\\\email{https://gitlab.com/islandoftex}%
}
\date{}
@@ -103,7 +103,8 @@ citation table contains no duplicate values. At the same time
script will extract the bibliography data and add them to a table.
Again, no duplicate values are allowed. Stick with this backend if
you are using Bib\LaTeX\ with the default options or with the
-\verb|backend=biber| option explicitly set.
+\verb|backend=biber| option explicitly set. It is important to note,
+however, that the \verb|glob=true| option is not supported yet.
\end{description}
\begin{infoblock}{Attention!}
@@ -150,7 +151,7 @@ sample bibliography file \verb|example.bib|, with five fictional
entries.
\begin{tcblisting}{colframe=DarkTurquoise,coltitle=black,listing only,
- title=Bibliography file, fonttitle=\bfseries,
+ title=Bibliography file, fonttitle=\bfseries, breakable,
listing options={columns=fullflexible,basicstyle=\ttfamily}}
@BOOK{foo:2012a,
title = {My Title One},
@@ -227,8 +228,9 @@ $ checkcites
| _| | -_| _| '_| _| | _| -_|_ -|
|___|_|_|___|___|_,_|___|_|_| |___|___|
-checkcites.lua -- a reference checker script (v2.4)
-Copyright (c) 2012, 2019, Enrico Gregorio, Paulo Roberto Massa Cereda
+checkcites.lua -- a reference checker script (v2.5)
+Copyright (c) 2012, 2019, Enrico Gregorio, Paulo Cereda
+Copyright (c) 2022, Enrico Gregorio, Island of TeX
--------------------------------------------------------------------------
I am sorry, but you have not provided any command line argument, including
@@ -263,8 +265,9 @@ $ checkcites --help
| _| | -_| _| '_| _| | _| -_|_ -|
|___|_|_|___|___|_,_|___|_|_| |___|___|
-checkcites.lua -- a reference checker script (v2.1)
-Copyright (c) 2012, 2019, Enrico Gregorio, Paulo Roberto Massa Cereda
+checkcites.lua -- a reference checker script (v2.5)
+Copyright (c) 2012, 2019, Enrico Gregorio, Paulo Cereda
+Copyright (c) 2022, Enrico Gregorio, Island of TeX
Usage: checkcites.lua [ [ --all | --unused | --undefined ] [ --backend
<arg> ] <file> [ <file 2> ... <file n> ] | --help | --version ]
@@ -324,8 +327,9 @@ $ checkcites document.aux
| _| | -_| _| '_| _| | _| -_|_ -|
|___|_|_|___|___|_,_|___|_|_| |___|___|
-checkcites.lua -- a reference checker script (v2.4)
-Copyright (c) 2012, 2019, Enrico Gregorio, Paulo Roberto Massa Cereda
+checkcites.lua -- a reference checker script (v2.5)
+Copyright (c) 2012, 2019, Enrico Gregorio, Paulo Cereda
+Copyright (c) 2022, Enrico Gregorio, Island of TeX
Great, I found 4 citations in 1 file. I also found 1 bibliography file. Let
me check this file and extract the references. Please wait a moment.
@@ -465,8 +469,9 @@ $ checkcites --backend biber document.bcf
| _| | -_| _| '_| _| | _| -_|_ -|
|___|_|_|___|___|_,_|___|_|_| |___|___|
-checkcites.lua -- a reference checker script (v2.4)
-Copyright (c) 2012, 2019, Enrico Gregorio, Paulo Roberto Massa Cereda
+checkcites.lua -- a reference checker script (v2.5)
+Copyright (c) 2012, 2019, Enrico Gregorio, Paulo Cereda
+Copyright (c) 2022, Enrico Gregorio, Island of TeX
Great, I found 4 citations in 1 file. I also found 1 bibliography file. Let
me check this file and extract the references. Please wait a moment.
diff --git a/support/checkcites/checkcites.lua b/support/checkcites/checkcites.lua
index 6191ca284a..1ab7b9fa6d 100644
--- a/support/checkcites/checkcites.lua
+++ b/support/checkcites/checkcites.lua
@@ -1,7 +1,8 @@
#!/usr/bin/env texlua
-- -----------------------------------------------------------------
-- checkcites.lua
--- Copyright 2012, 2019, Enrico Gregorio, Paulo Roberto Massa Cereda
+-- Copyright 2012, 2019, Enrico Gregorio, Paulo Cereda
+-- Copyright 2022, Enrico Gregorio, Island of TeX
--
-- This work may be distributed and/or modified under the conditions
-- of the LaTeX Project Public License, either version 1.3 of this
@@ -14,11 +15,11 @@
-- and version 1.3 or later is part of all distributions of LaTeX
-- version 2005/12/01 or later.
--
--- This work has the LPPL maintenance status `maintained'. the
--- current maintainers of this work are the original authors. This
+-- This work has the LPPL maintenance status `maintained'. The
+-- current maintainers of this work are the Island of TeX. This
-- work consists of the file checkcites.lua.
--
--- Project repository: http://github.com/cereda/checkcites
+-- Project repository: https://gitlab.com/islandoftex/checkcites
-- -----------------------------------------------------------------
-- Checks if the table contains the element.
@@ -387,7 +388,7 @@ backends.biber = function(lines, _)
end
else
hit = string.match(line, '^%s*<bcf:datasource type="file" ' ..
- 'datatype="%w+">(.+)</bcf:datasource>$')
+ 'datatype="%w+" glob="false">(.+)</bcf:datasource>$')
if hit then
parts = split(hit, '[^,%s]+')
for _, v in ipairs(parts) do
@@ -485,10 +486,9 @@ print("| _| | -_| _| '_| _| | _| -_|_ -|")
print("|___|_|_|___|___|_,_|___|_|_| |___|___|")
print()
print(wrap('checkcites.lua -- a reference ' ..
- 'checker script (v2.4)', 74))
- print(wrap('Copyright (c) 2012, 2019, ' ..
- 'Enrico Gregorio, Paulo ' ..
- 'Roberto Massa Cereda', 74))
+ 'checker script (v2.5)', 74))
+ print(wrap('Copyright (c) 2012, 2019, Enrico Gregorio, Paulo Cereda', 74))
+ print(wrap('Copyright (c) 2022, Enrico Gregorio, Island of TeX', 74))
end
-- Operation namespace
@@ -670,8 +670,8 @@ local function checkcites(args)
if keys['version'] or keys['help'] then
if keys['version'] then
print()
- print(wrap('checkcites.lua, version 2.4 (dated September ' ..
- '3, 2019)', 74))
+ print(wrap('checkcites.lua, version 2.5 (dated March ' ..
+ '22, 2022)', 74))
print(pad('-', 74))
print(wrap('You can find more details about this ' ..
@@ -679,13 +679,12 @@ local function checkcites(args)
'in the official source code repository:', 74))
print()
- print('https://github.com/cereda/checkcites')
+ print('https://gitlab.com/islandoftex/checkcites')
print()
print(wrap('The checkcites.lua script is licensed ' ..
'under the LaTeX Project Public License, ' ..
- 'version 1.3. The current maintainers ' ..
- 'are the original authors.', 74))
+ 'version 1.3.', 74))
else
print()
print(wrap('Usage: ' .. args[0] .. ' [ [ --all | --unused | ' ..