diff --git a/latex/paquets.sty b/latex/paquets.sty index 036ca0f..e81e1f4 100644 --- a/latex/paquets.sty +++ b/latex/paquets.sty @@ -123,9 +123,13 @@ tex.print([[\addbibresource{]]..dirname(status["filename"])..[[commun.bib}]]) %%% https://github.com/latex3/latex2e/issues/411#issuecomment-708434918 % catoptions patch (no guarantee that will work): % must be applied before loading catoptions +%%% https://tex.stackexchange.com/a/26229 +\newcommand*\@iflatexlater{\@ifl@t@r\fmtversion} +\@iflatexlater{2020/10/01}{% \def\FIXcatoptions\endgroup#1\begingroup{#1} \AddToHook{package/after/catoptions} - {\gleftaddtocs\document{\FIXcatoptions}} + {\gleftaddtocs\document{\FIXcatoptions}}% +}{} \RequirePackage[os=win]{menukeys} %% charge catoptions \renewmenumacro{\keys}{shadowedangularkeys} \renewmenumacro{\directory}{hyphenatepathswithblackfolder}