Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entry in File List #2

Open
Rimole opened this issue Sep 12, 2023 · 2 comments
Open

Entry in File List #2

Rimole opened this issue Sep 12, 2023 · 2 comments

Comments

@Rimole
Copy link

Rimole commented Sep 12, 2023

May there be a file Test.In.tex

\ProvidesFile{TestIn.tex}[2023-09-12 v1.0 Test input file]
\message{Example.}

May there be a document

\documentclass{article}
\usepackage{catchfile}
\CatchFileDef{\test}{"TestIn.tex"}{}
\listfiles
\begin{document}
\end{document}

then the logfile contains in the *File List*:

   iftex.sty    2022/02/03 v1.0f TeX engine tests
 "TestIn.tex"

Even if

\documentclass{article}
\usepackage{catchfile}
\CatchFileDef{\test}{TestIn.tex}{}
\listfiles
\begin{document}
\end{document}

it has the same list entry. Either the quotes and suppressing \Provides... is a feature, which should be in the documentation, or it is a (minor) bug.

@u-fischer
Copy link
Contributor

It has nothing to do with the content. That is not read as the content is simply stored in a macro.
If you do \CatchFileDef{\test}{"test.bib"}{}, you will get "test.bib".

And yes the quotes are a small bug, LaTeX removes them but catchfile didn't catch up with recent changes in the handling of files with spaces here.

@Rimole
Copy link
Author

Rimole commented Sep 13, 2023

@u-fischer Yes, but even \CatchFileDef{\test}{TestIn.tex}{} results in "TestIn.tex" in the file list in the log file. Might even be useful as reminder: That file was not input, but \CatchFileDefined (or \CatchFileEdefined) with the catchfile package. So, if we call it a feature, it would be nice to mention it in the manual. It is no problem, it was just "Why do I have files with quotation marks in the file list?!"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants