I want to know which one is suited when I try to create a package file or a class file?
Asked
Active
Viewed 1,626 times
1 Answers
5
Use the appropriate macro for the appropriate case. That is, use \ProvidesPackage for a package (typically a .sty), \ProvidesClass for a class (a .cls) and \ProvidesFile for anything else.
One example: \ProvidesPackage does additional checking in terms of the name used by the package and that used with \usepackage. However, it also stores a package "version" if is it supplied:
\ProvidesPackage{<package name>}[<version>]
This can be used to make sure loading of packages meet a version criteria, if needed.
Werner
- 603,163
\ProvidesFilecan, but it's not currently set up that way. – Werner Jan 09 '17 at 13:55\ProvidesFilemonospace like yours in the comment? – Jiapan Jan 14 '17 at 11:08\`` on both ends. So``` is marked as– Skillmon Nov 06 '18 at 18:39<code>.