Comprehensive TeX Archive Network

fetchcls – Fetch the current 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.

Sources /macros/latex/contrib/fetchcls
Re­pos­i­tory https://github.com/gi­an­notr/fetch­cls
Ver­sion 1.0 2015-08-11
Li­cense The Project Public Li­cense 1.3c
Main­tainer Ruben Gian­notti
Con­tained in TeX Live as fetch­cls
MiKTeX as fetch­cls
Topics sup­port for de­vel­op­ment of macros

Down­load the con­tents of this pack­age in one zip archive (124.0k).

Com­mu­nity Com­ments



Here you can see a re­spec­tive di­a­gram in newer browsers.


Guest Book Sitemap Contact Contact Author