Document Classes ⇒ Testing for which class is being used
Testing for which class is being used
Does anyone know of a way to test which class is being used for a document? I could test whether a certain variable is set, but I'd rather see whether one can test for a class.
TIA
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Testing for which class is being used
Code: Select all
texdoc source2e
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Testing for which class is being used
Thanks for the welcome, and thanks for the help

best,
Bev
Re: Testing for which class is being used
Thanks again for your help. I've confirmed that your solution works.