]> gitweb.michael.orlitzky.com - mjotex.git/commit
Put \ifx guards on most other package includes, too.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 15 Sep 2019 21:01:48 +0000 (17:01 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 15 Sep 2019 21:01:48 +0000 (17:01 -0400)
commite6bb4f9ae2d3785b331388703b8793e0409d30af
tree22b7206fcdf8a6ece2c62ed2156dd5fb47be388a
parentba0227140d34fe1c8cacdb4996b5896aec4c4013
Put \ifx guards on most other package includes, too.

We shouldn't be trying to load "amsopn" ten times, for example. But
testing whether or not a package is loaded is tricky. First, I tried
the \@ifpackageloaded macro: that causes problems with some of my
existing documents, and the "spacefactor" error that results is
apparently a FAQ. But I don't know what to do about it.

The other way to test if a package is loaded is by checking for some
(unique?) macro that it defines. That's what I've guessed at here.  It
works in most cases, like when we want \operatorname from "amsopn."
But, some packages also didn't have something obvious to check for, so
coverage isn't 100%.
14 files changed:
mjo-algebra.tex
mjo-algorithm.tex
mjo-arrow.tex
mjo-calculus.tex
mjo-common.tex
mjo-cone.tex
mjo-convex.tex
mjo-font.tex
mjo-linear_algebra.tex
mjo-listing.tex
mjo-misc.tex
mjo-theorem-star.tex
mjo-theorem.tex
mjo-topology.tex