fetchcls – Fetch the current class name
With standard LaTeX you are able to check for the class in use invoking the kernel command \@ifclassloaded. However, doing so you cannot 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 help of the present package you can obtain the name of the current class with significantly less effort. Just load the package as usual: \usepackage{fetchcls}; then, the control sequence \classname will hold the name you were looking for.
Sources | /macros/latex/contrib/fetchcls |
Documentation | |
Repository | https://github.com/giannotr/fetchcls |
Version | 1.0 2015-08-11 |
Licenses | The LaTeX Project Public License 1.3c |
Maintainer | Ruben Giannotti |
Contained in | TeX Live as fetchcls MiKTeX as fetchcls |
Topics | Macro support |
Download the contents of this package in one zip archive (124.0k).
Announcements
Suggestions
Maybe you are interested in the following packages as well.
My Rating
Only registered and authenticated members may vote. Please Login to vote.
Community Comments
No comments on this package are available yet. You can be the first to rate this package!