Skip to content

tikz and pgf libraries are not in the file list used by \listfiles and similar reports in LaTeX. #1424

@u-fischer

Description

@u-fischer

Brief outline of the bug

pgf uses in its input commands \input without braces and so the primitive \input is used. This means that LaTeX can not store the file name for a report with list files and also not for the new report showing the tagging support status of packages.

Could tikz/pgf please change in pgfutil-common.tex

\def\pgfutil@InputIfFileExists#1#2#3{\pgfutil@IfFileExists{#1}{\input #1\relax#2}{#3}}%

into

\def\pgfutil@InputIfFileExists#1#2#3{\pgfutil@IfFileExists{#1}{\input{#1}\relax#2}{#3}}%

or at least load user facing libraries with \input{..} instead of \input ...?

This should be safe in other formats as all engines now support the \input syntax with braces.

Minimal working example (MWE)

uncomment the one line to see the difference in the log

\listfiles
\documentclass{report}

\usepackage{tikz}
\makeatletter
%\def\pgfutil@InputIfFileExists#1#2#3{\pgfutil@IfFileExists{#1}{\input{#1}\relax#2}{#3}}
\makeatother
\usetikzlibrary{calc}
\begin{document}
abc
\end{document}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions