LaTeX Error: Command \@CheckKOMAScriptVersion already defined.
The bfh-layout-listings.cfg
includes scrhack.sty
which breaks due to "Command @CheckKOMAScriptVersion already defined".
(~/texmf/tex/latex/bfh-ci/bfh-layout-listings.cfg
(/usr/local/texlive/2024/texmf-dist/tex/latex/koma-script/scrhack.sty
! LaTeX Error: Command \@CheckKOMAScriptVersion already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.66 }
Suggestion, to remove the include of scrhack.sty. Is it still necessary?
*** bfh-layout-listings.cfg 2025-01-29 13:15:57.044307983 +0100
--- bfh-layout-listings.cfg 2025-01-29 13:15:46.327531107 +0100
***************
*** 30,38 ****
%%
\ProvidesFile{bfh-layout-listings.cfg}[2023/10/20 v2.2.0 listings configuration for bfhlayout]
\RequirePackage{bfhcolors}
- %% Hack to fix issue with float env used in listings package
- %% ref. : https://tex.stackexchange.com/questions/51867/koma-warning-about-toc
- \RequirePackage{scrhack}
\RequirePackage{listings}
%%
\lstloadlanguages{[ANSI]C,C++,Matlab,[LaTeX]TeX,bash,python}
--- 30,35 ----