You can use formatting in headlines in
org-mode. For example:
* Behavior of the _insert_ operation
This exports to PDF just fine.
If, however, your formatting is code formatting
* Behavior of the ~insert~ operation
, exporting it PDF results in an error message instead of a PDF:
org-latex-compile: PDF file built_files_ignored_by_git_tex/a.pdf wasn't produced: [undefined control sequence] Runaway argument
Within Emacs, the formatting is displayed correctly.
Is this a bug? Is there something a user can do to make the PDF build correctly?
I use GNU Emacs 24.5.1 and (according to what's written to the
pdfcreator tag in the exported LaTeX document) org-mode