Ruben Giannotti submitted the
fetchcls
package.
Version: 1.0 2015-08-11 License: lppl1.3c
Summary description: Fetch the current class name
Announcement text: ----------------------------------------------------------------------
With standard LaTeX you are able to check for the class in use invoking the kernel command `@ifclassloaded`. However, doing so you can't get the explicit class name (unless you want to loop over every possible class name until `@ifclassloaded` returns true -- don't do that!) With the present package you can get the name with significantly less effort.
Just load the package as usual: usepackage{fetchcls}
Then, the control sequence `classname` will hold the name of the current class.
----------------------------------------------------------------------
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/fetchcls
The package’s files themselves can be inspected at http://mirror.ctan.org/macros/latex/contrib/fetchcls/
------------------------------------------------------------------------
Thanks for the upload.
For the CTAN Team Petra Rübe-Pugliese
------------------------------------------------------------------------
We are supported by the TeX users groups. Please join a users group; see https://www.tug.org/usergroups.html .