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

\IfFileAtLeastTF missing #1015

Closed
Rimole opened this issue Mar 12, 2023 · 0 comments
Closed

\IfFileAtLeastTF missing #1015

Rimole opened this issue Mar 12, 2023 · 0 comments

Comments

@Rimole
Copy link

Rimole commented Mar 12, 2023

Brief outline of the bug

There is \IfFormatAtLeastTF, \IfClassAtLeastTF, and \IfPackageAtLeastTF. There is also \ProvidesFile, but there is no \IfFileAtLeastTF. The ltxcmds package provides \ltx@iffilelater, but obviously it should be provided by the kernel. Example for a real live use case at: https://tex.stackexchange.com/q/309680

Minimal example showing the bug

\RequirePackage{latexbug}
\documentclass{article}
\ProvidesFile{text.tex}[2023-03-12 v1.0 bug]
%\usepackage{ltxcmds}
\begin{document}
\IfFileAtLeastTF{test.tex}{2023-01-01}{earlier}{at least}
%\makeatletter\ltx@iffilelater{test.tex}{2023-01-01}{earlier}{at least}\makeatother
\end{document}

Log file (required) and possibly PDF file

This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex 2023.3.8) 12 MAR 2023 16:09
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**test.tex
(./test.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-02-22> (m:/2022/texmf-dist/tex/latex/latexbug/latexbug.sty
Package: latexbug 2022/06/14 v1.0n Bug-classification
)
(m:/2022/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(m:/2022/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2022/07/02 v1.4n Standard LaTeX file (size option)
)
\c@part=\count185
\c@section=\count186
\c@subsection=\count187
\c@subsubsection=\count188
\c@paragraph=\count189
\c@subparagraph=\count190
\c@figure=\count191
\c@table=\count192
\abovecaptionskip=\skip48
\belowcaptionskip=\skip49
\bibindent=\dimen140
)
File: text.tex 2023-03-12 v1.0 bug
(m:/2022/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
File: l3backend-pdftex.def 2023-01-16 L3 backend support: PDF output (pdfTeX)
\l__color_backend_stack_int=\count193
\l__pdf_internal_box=\box51
) (./test.aux)
\openout1 = `test.aux'.

LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.

! Undefined control sequence.
l.6 \IfFileAtLeastTF
{test.tex}{2023-01-01}{earlier}{at least}
?
[1

{m:/2022/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./test.aux) )
Here is how much of TeX's memory you used:
1763 strings out of 476024
41910 string characters out of 5798009
1849382 words of memory out of 5000000
22290 multiletter control sequences out of 15000+600000
512287 words of font info for 32 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 32749
34i,5n,38p,167b,1309s stack positions out of 10000i,1000n,20000p,200000b,200000s
<m:/2022/texmf-dist/fonts/type1/public/amsfonts/cm/cmr1
0.pfb>
Output written on test.pdf (1 page, 13557 bytes).
PDF statistics:
13 PDF objects out of 1000 (max. 8388607)
7 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)

@josephwright josephwright self-assigned this Mar 28, 2023
@FrankMittelbach FrankMittelbach added this to the Release 2023 Spring milestone Mar 28, 2023
josephwright added a commit that referenced this issue Mar 29, 2023
josephwright added a commit that referenced this issue Mar 29, 2023
josephwright added a commit that referenced this issue Mar 29, 2023
josephwright added a commit that referenced this issue Mar 29, 2023
josephwright added a commit that referenced this issue Mar 29, 2023
@josephwright josephwright added the fixed in dev Fixed in development branch, not in stable release label Mar 29, 2023
@josephwright josephwright reopened this Mar 29, 2023
@josephwright josephwright removed the fixed in dev Fixed in development branch, not in stable release label Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants