Hot answers tagged


Change the syntax of character - from symbol to punctuation in org-mode. You can do that by: (defun my-org-change-minus-syntax-fun () (modify-syntax-entry ?- ".")) (add-hook 'org-mode-hook #'my-org-change-minus-syntax-fun) You can add these lines to your init file. Note that I have running that setup for ages now with no relevant negative effects.


Org-mode translates $n$ to \(n\) in latex. You can also directly write \(n\)-doc in the org file and it should export just fine.


For reference I found this message on the org-mode mailing list which mentions a way to do this by means of file local #+LATEX_HEADER lines which use the fancyvrb package and redefine the verbatim environment that org-mode #+RESULTS blocks get exported to via: #+LATEX_HEADER: \RequirePackage{fancyvrb} #+LATEX_HEADER: \DefineVerbatimEnvironment{verbatim}{...

Only top voted, non community-wiki answers of a minimum length are eligible