GeneralTesting in a document if a package is available

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
migf
Posts: 20
Joined: Mon Feb 18, 2013 2:33 pm

Testing in a document if a package is available

Post by migf »

Hello,

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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Testing in a document if a package is available

Post by Ijon Tichy »

You can use \IfFileExists to test for the sty-file of the package.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
migf
Posts: 20
Joined: Mon Feb 18, 2013 2:33 pm

Testing in a document if a package is available

Post by migf »

Thanks a lot for your reply! This is the kind of stuff I rarely use...
Post Reply