0

Documenting this because I could not find an answer in stack exchange.

A heading such as this breaks during LaTeX export:

* MITRE ATT&CK

Rather than switching to a code-block, and loosing the folding and movement abilities of an org-mode heading, how do you escape the & inline?

  • This seems to be properly escape for LaTeX, at least as of Org version 9.1.14 in Emacs version 25.3.50 (actually Aquamacs 3.5 on a Mac) – Win Dec 17 '18 at 2:01
  • M-x org-version -> Org mode version 9.1.14 (9.1.14-9-g131531-elpaplus @ /Users/.../.emacs.d/elpa/org-plus-contrib-20181203/) and M-x emacs-version -> GNU Emacs 26.1 (build 1, x86_64-apple-darwin18.0.0, Carbon Version 158 AppKit 1671) of 2018-10-01 using emacs-mac port from Mitsuharu Yamamoto. Dunno why it didn't work either, works in text, just not headings. Just wanted to document the workaround. – glallen Dec 17 '18 at 4:54
0

One solution is to use C-x 8 <RET> or M-x insert-char to select the unicode character. This method works for LuaLaTeX and XeLaTeX when using \usepackage{fontspec}.

Another solution is to use inline code:

* MITRE @@latex: ATT\&CK@@

This works perfectly for LaTeX, but breaks HTML export, as the @@latex: @@ block isn't exported.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.