I have a long expression which I'd like to export to Latex, so I'm using the copy as latex function. However, in my Latex document I'm using different notation, so I'd like to use the replace rule to change to formatting of my expressions before copying them across.
This sounds fine - however, I'm using a package, 'Quantum', which is for non-commutative algebras, and the ordering of items is very specific and important. I'm finding that when I use my replacement rule, things get reordered and the output expression is no longer correct.
So here's my question: How can I use a replacement rule, whilst making sure that the ordering of the expression remains exactly the same?