[LyX/master] Improve LaTeX version checking
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Tue Jan 10 15:08:00 UTC 2023
Le 08/01/2023 à 19:49, Jean-Marc Lasgouttes a écrit :
> For some reason (maybe because I am in C++11 mode) the eatLine() does
> not grab the potential second part of the line, but the package name in
> the next line.
OK, ignore that. It turns out I had an old version of chkconfig.ltx in
my ~/.lyx directory (don't ask why, I do not know). It produced a
packages.lst file without trailing space, whence the issue.
I am still interested in the thing below, though (and in the 'magic' use
of \@parse at command in chkconfig.ltx).
JMarc
>> +bool LaTeXPackages::isAvailableAtLeastFrom(string const & name,
>> + int const y, int const m, int const d)
>> +{
>
> Is there a reason why we need that instead of comparing dates as string?
> Something like
> if (package_date >= "2015/09/01") {
> [...]
More information about the lyx-devel
mailing list