\def\havemjolinearalgebra{1}
-% Needed for \lvert, \rVert, etc. and \operatorname.
-\usepackage{amsmath}
+\ifx\lvert\undefined
+ \usepackage{amsmath} % \lvert, \rVert, etc. and \operatorname.
+\fi
-% Wasysym contains the \ocircle that we use in \directsumperp.
-\usepackage{wasysym}
+\ifx\ocircle\undefined
+ \usepackage{wasysym}
+\fi
-% Part of the adjustbox package; needed to clip the \perp sign.
-\usepackage{trimclip}
+\ifx\clipbox\undefined
+ % Part of the adjustbox package; needed to clip the \perp sign.
+ \usepackage{trimclip}
+\fi
\input{mjo-common}