CTAN
Comprehensive TeX Archive Network

New on CTAN: fetch­cls

Date: Septem­ber 9, 2017 6:56:06 PM CEST
Ruben Gian­notti sub­mit­ted the fetch­cls pack­age. Ver­sion: 1.0 2015-08-11 Li­cense: lp­pl1.3c Sum­mary de­scrip­tion: Fetch the cur­rent class name An­nounce­ment text:
With stan­dard LaTeX you are able to check for the class in use in­vok­ing the ker­nel com­mand `\@if­class­loaded`. How­ever, do­ing so you can't get the ex­plicit class name (un­less you want to loop over ev­ery pos­si­ble class name un­til `\@if­class­loaded` re­turns true -- don't do that!) With the present pack­age you can get the name with sig­nif­i­cantly less ef­fort. Just load the pack­age as usual: \usep­a­ck­age{fetch­cls} Then, the con­trol se­quence `\class­name` will hold the name of the cur­rent class.
The pack­age’s Cat­a­logue en­try can be viewed at https://ctan.org/pkg/fetch­cls The pack­age’s files them­selves can be in­spected at http://mir­ror.ctan.org/macros/la­tex/con­trib/fetch­cls/
Thanks for the up­load. For the CTAN Team Pe­tra Rübe-Pugliese
We are sup­ported by the TeX users groups. Please join a users group; see https://www.tug.org/user­groups.html .

fetch­cls – Fetch the cur­rent class name

With stan­dard you are able to check for the class in use in­vok­ing the ker­nel com­mand \@if­class­loaded. How­ever, do­ing so you can­not get the ex­plicit class name, un­less you want to loop over ev­ery pos­si­ble class name un­til \@if­class­loaded re­turns true — don't do that!

With the help of the present pack­age you can ob­tain the name of the cur­rent class with sig­nif­i­cantly less ef­fort. Just load the pack­age as usual: \usep­a­ck­age{fetch­cls}; then, the con­trol se­quence \class­name will hold the name you were look­ing for.

Pack­agefetch­cls
Ver­sion1.0 2015-08-11
Main­tainerRuben Gian­notti

An­nounce­ments

more

Guest Book Sitemap Contact Contact Author