content = """\\documentclass{article}
\\usepackage{graphicx,amsmath}
\\begin{document}
\\noindent\\rotatebox{180}{\\vbox{%%
    %(equation)s
    }%%
}
\\end{document}
"""
ValueError: unsupported format character '