refcard-org-beamer icon indicating copy to clipboard operation
refcard-org-beamer copied to clipboard

(setq org-latex-listings t)

Open rebcabin opened this issue 8 years ago • 1 comments

I found recently that your refcard doesn't format properly in recent versions of emacs and org-mode

  #+RESULTS:
  : Emacs version: GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
  :  of 2015-04-10 on builder10-9.porkrind.org
  : org version: 8.3.1

... the listings blocks get a "verbatim" environment instead of a "lstlistings" environment. The fix is to put the emacs-lisp line (setq org-latex-listings t) somewhere in your org file so that it gets evaluated. There is more info here: http://stackoverflow.com/questions/21005885/export-org-mode-code-block-and-result-with-different-styles/21007117#21007117

rebcabin avatar Feb 24 '16 20:02 rebcabin

I knew about that; I have it in my Emacs configuration file (as you can see when looking at the PDF, or in my Emacs-Leuven project).

Though, to be sure others can compile the doc with that setting by default, I've added an Emacs local variable in the source document itself.

Did you have another idea?

fniessen avatar Jul 08 '16 21:07 fniessen