I also think putting <?tex \usepackage{amsmath}?> into the source document would do the trick.
<?tex \usepackage{amsmath}?>