fniessen / refcard-org-beamer

Streamline your Beamer presentations with our Org mode Beamer Refcard. Download now for quick reference and enhanced productivity. #orgmode #beamer #referencecard #productivity
GNU General Public License v3.0
296 stars 31 forks source link

(setq org-latex-listings t) #2

Open rebcabin opened 8 years ago

rebcabin commented 8 years ago

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

fniessen commented 8 years ago

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?