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

\IfFileLoadedTF missing #1222

Closed
Rimole opened this issue Dec 25, 2023 · 7 comments
Closed

\IfFileLoadedTF missing #1222

Rimole opened this issue Dec 25, 2023 · 7 comments

Comments

@Rimole
Copy link

Rimole commented Dec 25, 2023

Brief outline of the enhancement

Minimal example showing the current behaviour

pdflatexing

\RequirePackage{latexbug}       % <--should be always the first line (see CONTRIBUTING)!
\documentclass{article}
\begin{document}

\IfFileLoadedTF{l3backend-pdftex.def}{\message{l3backend-pdftex.def has been loaded.}%
}{\message{l3backend-pdftex.def has NOT been loaded.}%
}
  
\end{document}

gives ! Undefined control sequence. \IfFileLoadedTF{l3backend-pdftex.def}{\message{l3backend-pdftex.def has...,
while \IfPackageLoadedTF and \IfClassLoadedTF are defined.

Minimal example showing the desired new behaviour

Define \IfFileLoadedTF.

@muzimuzhi
Copy link
Contributor

Nice complement to

@josephwright
Copy link
Member

Is there a concrete use case here?

@Rimole
Copy link
Author

Rimole commented Apr 9, 2024

There is a somewhat related case at https://tex.stackexchange.com/q/98108 and I use it to check whether some files (.def, .cfg etc.) are still being loaded or some update removed the requirement. (Look in the log file? "Manually"? I'm too lazy for that.)

@FrankMittelbach
Copy link
Member

problem is that most files aren't detected by this approach, you have to have a file that contains a \ProvidesFile line, that is true for some .def files but not for all nor for many .cfg files etc. Which is why I don't really think this is very useful.

@FrankMittelbach FrankMittelbach self-assigned this Apr 10, 2024
FrankMittelbach added a commit that referenced this issue Apr 10, 2024
@FrankMittelbach FrankMittelbach added this to Pool (unscheduled issues) in upcoming LaTeX2e releases via automation Apr 10, 2024
@FrankMittelbach FrankMittelbach moved this from Pool (unscheduled issues) to Done in dev in upcoming LaTeX2e releases Apr 10, 2024
FrankMittelbach added a commit that referenced this issue Apr 10, 2024
* fix for #1222 and #1262

* retry

* mumble (that loaded multicol and thus failed)

* change rollback; ltnews and changes
@FrankMittelbach FrankMittelbach added the fixed in dev Fixed in development branch, not in stable release label Apr 10, 2024
@FrankMittelbach
Copy link
Member

added the commands

@Rimole
Copy link
Author

Rimole commented Apr 11, 2024

@FrankMittelbach

  1. Thank you!
  2. In ltnews39.tex, line 359, \cs{IfClassLoadedWithOptionsFF} should be ...TF instead ...FF - right?

@FrankMittelbach
Copy link
Member

it should, sigh :-) thanks

FrankMittelbach added a commit that referenced this issue Apr 11, 2024
@FrankMittelbach FrankMittelbach moved this from Done in dev to Done in upcoming LaTeX2e releases Jun 3, 2024
@FrankMittelbach FrankMittelbach removed the fixed in dev Fixed in development branch, not in stable release label Jun 3, 2024
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

4 participants