Port write_equation_tags to write_latex_static_model and write_latex_original_model