emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] org export to PDF src block syntax highlighting not working


From: stardiviner
Subject: [O] org export to PDF src block syntax highlighting not working
Date: Tue, 13 Mar 2018 20:31:38 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

I use the following settings to toggle src block syntax highlighting:

#+begin_src emacs-lisp

;;; export to PDF with src blocks syntax highlighting.
(setq org-latex-listings 'minted)
(add-to-list 'org-latex-packages-alist '("newfloat" "minted" "color"))
(add-to-list 'org-latex-pdf-process
             '("latexmk -shell-escape -bibtex -f -pdf %f"))
(setq org-latex-minted-options
      '(("frame" "lines")
        ("linenos" "true")
        ("bgcolor" "bg")
        ))
#+end_src


In attachment, has the org-mode template file.

Attachment: org-export-template.org
Description: Lotus Organizer


reply via email to

[Prev in Thread] Current Thread [Next in Thread]