Rewrite soc with addtocontents
Reading and writing the soc file is an own implementation that could be replaced by using the toc mechanism of LaTeX.
Rewrite the code so it is similar to the loc code used in the package.
Reading and writing the soc file is an own implementation that could be replaced by using the toc mechanism of LaTeX.
Rewrite the code so it is similar to the loc code used in the package.