On 2011-02-01, Jürgen Spitzmüller wrote:
> Julien Rioux wrote:
>> > Is here a TeX method to find out a package version other than LaTeX's
>> > \@ifpackagelater? With the latter, the packages need to be loaded in
>> > advance, and we can't do that in checkconfig.ltx.

>> \RequirePackage[<options>]{<package>}[<date>]

> We cannot use this in checkconfig.ltx either. We are not in "preamble" mode 
> when checking for the files, apparently.

The clsguide tells:

The first thing a class or package file does is identify itself. Package
files do this as follows:

    \NeedsTeXFormat{LaTeX2e}
    \ProvidesPackage{ package }[ date    other information ]

e.g.

\ProvidesPackage{fontspec}
  [2008/08/09 v1.18 Advanced font selection for XeLaTeX]

Parsing this should not bee too difficult with Python -- watch that there
might be line breaks between the \ProvidesPackage command and the arguments.


Günter

Reply via email to