Lately I've noticed the following warning from KOMA when I compile my documents:
Class scrreprt Warning: \float@addtolists detected!
(scrreprt) You should use the features of package `tocbasic'
(scrreprt) instead of \float@addtolists.
(scrreprt) Support for \float@addtolists may be removed from
(scrreprt) `scrreprt' soon .
The documentation for KOMA makes a brief mention of package \tocbasic
but none of the examples there mention anything about \float@addtolists
, unless this information is in the German documentation and hasn't been translated to English yet.
What does the warning mean, and can anyone suggest what changes I can make to silence it?
Best Answer
KOMA uses his own algorithm to create float environments provided by
tocbasic
.So packages like float or listings uses an old version and produce this warning. However Markus Kohm wrote a small package named
scrhack
fixing this issue.Example 1 without
scrhack
:Warning:
Example 2 with
scrhack
0 warnings