CTAN 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
Doc­u­men­ta­tion
Re­pos­i­toryhttps://github.com/gi­an­notr/fetch­cls
Ver­sion1.0 2015-08-11
Li­censesThe Project Public Li­cense 1.3c
Main­tainerRuben Gian­notti
Con­tained inTeX Live as fetch­cls
MiKTeX as fetch­cls
TopicsMacro sup­port

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

Com­mu­nity Com­ments

Load­ing...

An­nounce­ments

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

more

Pack­age Links

Guest Book Sitemap Contact Contact Author