Skip to main content

provides_version_of

Function provides_version_of 

Source
pub fn provides_version_of(filename: &str) -> Option<String>
Expand description

The [<date> <version> <info>] a package or class declares with \ProvidesPackage{name}[…] / \ProvidesClass{name}[…] (ltclass: \ver@name.ext is that text), or the date v<version> <info> that \ProvidesExplPackage{name}{date}{version}{info} makes of its groups (expl3.sty:35-48), read from the installed file so a binding exposes the same string as the raw file would. latex.ltx \xdefs the text, so the kernel’s \space and \ read as spaces; None when no file is on disk, it declares nothing, or the text holds any other control sequence — the file’s own macros (listings.sty:19-23 \filedate\space\fileversion, set by a prologue a binding never runs), whose expansion a static read cannot know.