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

\file_compare_timestamp:nNnTF doesn't work with lualatex #792

Closed
u-fischer opened this issue Aug 11, 2020 · 0 comments
Closed

\file_compare_timestamp:nNnTF doesn't work with lualatex #792

u-fischer opened this issue Aug 11, 2020 · 0 comments

Comments

@u-fischer
Copy link
Member

\documentclass[12pt]{article}

\begin{document}
\ExplSyntaxOn
\file_compare_timestamp:nNnTF{article.cls}>{report.cls}{yes}{no}

\ExplSyntaxOff
\end{document}

gives

! Undefined control sequence.
<argument> \LaTeX3 error: 
                Primitive \(pdf)filemoddatenot available
l.16 ...re_timestamp:nNnTF{article.cls}>{report.cls}
                                                  {yes}{no}
? x

The reason is that l3file.dtx actively disables it if \tex_filemoddate:D is not defined:

\cs_if_exist:NF \tex_filemoddate:D
  {
    \prg_set_conditional:Npnn \file_compare_timestamp:nNn #1#2#3
      { p , T , F , TF }
      {
        \__kernel_msg_expandable_error:nnn
          { kernel } { primitive-not-available }
          { \(pdf)filemoddate }
        \prg_return_false:
      }
  }
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

1 participant