added alignat latex directive support

it might be better to use a regex that captures any
/begin{.*}, not sure about it.