I am trying to write LaTex matrizes in org-mode. It works fine with exporting tables via #+attr_latex :mode math :environment matrix.

However, when I try

1 & 2\\
3 & 4\\

this exports to

1 \& 2\\
3 \& 4

in the latex document. And that gives me a literal & in the final latex document.

Is this default behaviour? How can I fix this?

  • The strange thing is that it exports just fine for me to both latex and HTML without any ampersand escaping. I tried with emacs -Q and it exports just fine as well. It might be due to something in your configuration. Try exporting with emacs started with the -Q option.
    – darcamo
    Commented Nov 10, 2020 at 18:47


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.