Added flatten to some functions in
tex_html_article.py
Schould tex_macros be left as they are?