On Sunday, July 5th, 2026 at 9:35 PM, Udi Fogiel <[email protected]> wrote:

> what about babel-hebrew? this is not really a package, and I'm not sure how 
> to load it correctly to test its version.
> 

babel-hebrew use the generic \ProvidesFile. So what do you think about
\newcommand{\TestFileAddVersion}[2][\default]{
   \def\default{#2}
   \def\package@version{}
   \IfFileExists{#1}{%
      \input{#1}%
      \protected@edef\package@@version{\csname ver@#1\endcsname}%
      
\protected@edef\package@version{\expandafter\@parse@version\packag@@version//00\@nil}%
   }{}
   \TestItem[#1]{#2}{package}{tex}{\AddPackage[\package@version]{#2}}{}
}

to test versions of files declared with \ProvidesFile?

Udi
-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to