Re: [LyX/master] Improve LaTeX version checking

2023-01-14 Thread Kornel Benko
Am Sat, 14 Jan 2023 11:40:22 +0100 schrieb "Jürgen Spitzmüller" : > Am Samstag, dem 14.01.2023 um 11:34 +0100 schrieb Kornel Benko: > > Something fishi is after reconfigure. This is not caused bu this > > change though. > > > > textclass.lst is now missing the entry > > "aastex63" "aastex63"

Re: [LyX/master] Improve LaTeX version checking

2023-01-14 Thread Jürgen Spitzmüller
Am Samstag, dem 14.01.2023 um 11:34 +0100 schrieb Kornel Benko: > Something fishi is after reconfigure. This is not caused bu this > change though. > > textclass.lst is now missing the entry > "aastex63" "aastex63" "American Astronomical Society (AASTeX > v. 6.3)" "false" > "aastex63.c

Re: [LyX/master] Improve LaTeX version checking

2023-01-14 Thread Kornel Benko
Am Sat, 14 Jan 2023 10:47:57 +0100 schrieb "Jürgen Spitzmüller" : > Am Mittwoch, dem 11.01.2023 um 19:51 +0100 schrieb Jean-Marc > Lasgouttes: > > The same happened to me on a different machine when configure.py was > > not ran automatically because only chkconfig.ltx was modified. I am > > not su

Re: [LyX/master] Improve LaTeX version checking

2023-01-14 Thread Jürgen Spitzmüller
Am Mittwoch, dem 11.01.2023 um 19:51 +0100 schrieb Jean-Marc Lasgouttes: > The same happened to me on a different machine when configure.py was > not ran automatically because only chkconfig.ltx was modified. I am > not sure it is worth check for that. As of d213b72978d7423, a reconfigure is trigg

Re: [LyX/master] Improve LaTeX version checking

2023-01-11 Thread Jean-Marc Lasgouttes
Le 11/01/2023 à 06:10, Jürgen Spitzmüller a écrit : Still, I think the current method is more convenient, since the day can almost always be omitted (ad we could even make the month optional, defaulting to 1 as well. As you prefer. I still think that using the explicit date in out code has the

Re: [LyX/master] Improve LaTeX version checking

2023-01-11 Thread Jean-Marc Lasgouttes
Le 10/01/2023 à 16:08, Jean-Marc Lasgouttes a écrit : 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 ou

Re: [LyX/master] Improve LaTeX version checking

2023-01-10 Thread Jürgen Spitzmüller
Am Dienstag, dem 10.01.2023 um 20:11 +0100 schrieb Jean-Marc Lasgouttes: > We have lexicographic ordering, right? > https://en.cppreference.com/w/cpp/string/basic_string/operator_cmp > > How would we sort strings otherwise? Oh, I never thought about that. Still, I think the current method is mor

Re: [LyX/master] Improve LaTeX version checking

2023-01-10 Thread Jean-Marc Lasgouttes
We have lexicographic ordering, right? https://en.cppreference.com/w/cpp/string/basic_string/operator_cmp How would we sort strings otherwise? JMarc Le 10 janvier 2023 18:34:15 GMT+01:00, "Jürgen Spitzmüller" a écrit : >Maybe I miss something obvious, but I thought strings can only be >compa

Re: [LyX/master] Improve LaTeX version checking

2023-01-10 Thread Jürgen Spitzmüller
Am Dienstag, dem 10.01.2023 um 17:28 +0100 schrieb Jean-Marc Lasgouttes: > Am I wrong that > "2015/10/01" >= "2014/06/01" > ? > > I may be missing something obvious. Maybe I miss something obvious, but I thought strings can only be compared for equality (== or !=) not size difference (unless you

Re: [LyX/master] Improve LaTeX version checking

2023-01-10 Thread Jürgen Spitzmüller
Am Dienstag, dem 10.01.2023 um 16:08 +0100 schrieb Jean-Marc Lasgouttes: > and in the 'magic' use of \@parse@command in chkconfig.ltx That's a command from the LaTeX kernel that can parse a LaTeX package string, strip the name and anything expect for the date and can also handle different date for

Re: [LyX/master] Improve LaTeX version checking

2023-01-10 Thread Jean-Marc Lasgouttes
Le 10/01/2023 à 17:26, Jürgen Spitzmüller a écrit : Am Sonntag, dem 08.01.2023 um 19:49 +0100 schrieb Jean-Marc Lasgouttes: Is there a reason why we need that instead of comparing dates as string? Something like if (package_date >= "2015/09/01") { [...] How would "com

Re: [LyX/master] Improve LaTeX version checking

2023-01-10 Thread Jürgen Spitzmüller
Am Sonntag, dem 08.01.2023 um 19:49 +0100 schrieb Jean-Marc Lasgouttes: > Is there a reason why we need that instead of comparing dates as > string? > Something like > if (package_date >= "2015/09/01") { > [...] How would "comparing dates as strings" work? Wouldn't we need

Re: [LyX/master] Improve LaTeX version checking

2023-01-10 Thread Jean-Marc Lasgouttes
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 d

Re: [LyX/master] Improve LaTeX version checking

2023-01-08 Thread Jean-Marc Lasgouttes
Le 19/12/2022 à 14:20, Juergen Spitzmueller a écrit : commit 029adfa28cedf921ee7ee4709422441705d93520 Author: Juergen Spitzmueller Date: Mon Dec 19 15:15:41 2022 +0100 Improve LaTeX version checking Instead of having to add and individually test the versions to check for