CTAN Comprehensive TeX Archive Network

New on CTAN: fetchcls

Date: September 9, 2017 6:56:06 PM CEST
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 .

fetchcls – Fetch the current class name

With standard 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.

Packagefetchcls
Version1.0 2015-08-11
MaintainerRuben Giannotti

Announcements

more

Guest Book Sitemap Contact Contact Author