When using the syntax of LaTeX2e, we can share information such as date, version number and description in the following way, so that the document and package use the same version number and date, and there is no need to fill in it repeatedly.
% \iffalse
%<*driver>
\ProvidesFile{mypackage.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{mypackage}
%<*package>
[2008/02/18 v1.0 My sample package]
%</package>
However, if develope the package of LaTeX3, we use \GetIdInfo
to add this information for LaTeX3 package, but owing to the different syntax, we can't share this information directly with \ProvidesFile
.
expl3
-based package you want\ProvidesExplPackage
, by the way.\ProvidesExplPackage
and\ProvidesFile
is different, I can't share the code line of date, version number and description information.