So, I've written a document class, based on the report class, which is designed to format a document according to my school's thesis guidelines (well, part written, part inherited). It's been working just fine for a while now, but I just came across an interesting error (and by "interesting" I mean one I can't figure out). It seems that hyperref and ifthen don't like working together when the \equal command gets called inside a sectioning command (level of the command doesn't matter). The error from the log file is:
Code: Select all
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
which is what I'd expect if ifthen wasn't loaded. Not loading the hyperref package causes the error to go away, as does switching the document class to report. The error also goes away if my \combine command doesn't call the \equal command. Any ideas on what kind of interaction might be causing this behavior.
Attached is a MWE which also contains my class file.