pgf icon indicating copy to clipboard operation
pgf copied to clipboard

Not every source file begins with `\ProvidesFileRCS`

Open muzimuzhi opened this issue 3 years ago • 1 comments

Brief outline of the bug

For example, https://tex.stackexchange.com/q/646391 finds that tikzlibraryexternal.code.tex doesn't use \ProvidesFileRCS but source file for calc library does.

With (forgive my bash)

for file in `find . -name 'tikzlibrary*.code.tex'`; do grep -q '\\ProvidesFileRCS{'`basename $file`'}' $file || echo $(basename $file); done

the list of all tikzlibrary*.code.tex files that lack \ProvidesFileRCS{<filename>} is

tikzlibraryexternal.code.tex
tikzlibraryfpu.code.tex
tikzlibrarymath.code.tex
tikzlibraryfixedpointarithmetic.code.tex
tikzlibrarycircuits.logic.code.tex
tikzlibrarycircuits.ee.IEC.code.tex
tikzlibrarycircuits.logic.US.code.tex
tikzlibrarycircuits.logic.CDH.code.tex
tikzlibrarycircuits.logic.IEC.code.tex
tikzlibrarycircuits.ee.code.tex
tikzlibrarycircuits.code.tex
tikzlibrarydecorations.markings.code.tex
tikzlibrarydecorations.text.code.tex
tikzlibrarydecorations.pathreplacing.code.tex
tikzlibrarydecorations.pathmorphing.code.tex
tikzlibrarydecorations.shapes.code.tex
tikzlibraryintersections.code.tex
tikzlibraryshapes.callouts.code.tex
tikzlibrarydecorations.code.tex
tikzlibrarydecorations.footprints.code.tex
tikzlibrarydecorations.fractals.code.tex
tikzlibrarylindenmayersystems.code.tex
tikzlibrarypatterns.meta.code.tex
tikzlibrarygraphdrawing.evolving.code.tex

Minimal working example (MWE)

skip

muzimuzhi avatar Jun 01 '22 18:06 muzimuzhi

It seems \ProvidesFileRCS is deprecated (sort of) when pgf is converted to git. Also at that time a latex-styled \ProvidesFile{<file-name>}[<release-info>] was supported and maybe is recommended now. See

  • https://github.com/pgf-tikz/pgf/commit/c1e51497546e4eec1b2bda9ddbfa52a3322473c5#diff-eb412af08654b8073bf30b54ae0afd1418008443eaa91aff81a839a32d39c7c5 (it takes several seconds to auto scroll to the right position)

https://github.com/pgf-tikz/pgf/blob/2b1da75747475e869ef9dd48de271b80bc851be3/tex/generic/pgf/utilities/pgfrcs.code.tex#L53-L60

muzimuzhi avatar Jul 09 '22 03:07 muzimuzhi