open-macro-tex function added.