The \listfiles command will give the list of all loaded files (and therefore also packages) at the end of the .log file, but how do I determine from inside LaTeX, whether package A was loaded before package B or vice versa?
|
|
||||
|
|
You can access the list as a comma separated list of filenames in If you need this check after
to iterate over this list. So for example you could define
then using this as:
will type out
if that is in fact the case. As noted in the comments you might want to use different comand names in production code, also if the two |
|||||
|
|
A way to check for file order is to check the order of the files loaded in the
|
|||||||
|
|
Here's a way: the code from
This is the output:
Usage:
If the packages are not both loaded, no code will be executed. |
|||
