using Latexify,Markdown,Symbolics @variables x expr=latexify(3x^3 + 2x - 5) Markdown.parse("""$(expr)""")
\[\begin{equation} -5 + 2 x + 3 x^{3} \end{equation}\]