Can you provide the storage format / body content of the page containing the latex macro?
We have to mess with LaTeX macro contents because Confluence doesn't necessarily put LaTeX stuff in the right LaTeX environment in the macro content itself. In XWiki, if something requires an environment, it needs to be explicitly there. We kinda have to guess what Confluence does to display the LaTeX content and tweak and refine our heuristics as we encounter non working cases…
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.