General ⇒ Testing in a document if a package is available
Testing in a document if a package is available
In a LaTeX document I am preparing I need to know whether a certain package is installed in order either to use it, or use some other alternative without getting an error. I would preferably make some kind of test that would also allow setting a toggle for later use. But I could not find out how to this: is this possible?
Thanks in advance for any help.
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
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
Testing in a document if a package is available
\IfFileExists
to test for the sty-file of the package.