multiline math: test, use same method for multi-line code.