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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- 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.