|
@@ -376,7 +376,25 @@ for example using customize, or with something like
|
|
|
|
|
|
(require 'org-latex)
|
|
|
(add-to-list 'org-export-latex-packages-alist '(\"\" \"listings\"))
|
|
|
- (add-to-list 'org-export-latex-packages-alist '(\"\" \"color\"))"
|
|
|
+ (add-to-list 'org-export-latex-packages-alist '(\"\" \"color\"))
|
|
|
+
|
|
|
+Alternatively,
|
|
|
+
|
|
|
+ (setq org-export-latex-listings 'minted)
|
|
|
+
|
|
|
+causes source code to be exported using the minted package as
|
|
|
+opposed to listings. If you want to use minted, you need to add
|
|
|
+the minted package to `org-export-latex-packages-alist', for
|
|
|
+example using customize, or with
|
|
|
+
|
|
|
+ (require 'org-latex)
|
|
|
+ (add-to-list 'org-export-latex-packages-alist '(\"\" \"minted\"))
|
|
|
+
|
|
|
+In addition, it is neccessary to install
|
|
|
+pygments (http://pygments.org), and to configure
|
|
|
+`org-latex-to-pdf-process' so that the -shell-escape option is
|
|
|
+passed to pdflatex.
|
|
|
+"
|
|
|
:group 'org-export-latex
|
|
|
:type 'boolean)
|
|
|
|
|
@@ -411,23 +429,6 @@ of noweb."
|
|
|
:group 'org-export-latex
|
|
|
:type 'boolean)
|
|
|
|
|
|
-(defcustom org-export-latex-minted nil
|
|
|
- "Non-nil means export source code using the minted package.
|
|
|
-This package will fontify source code with color.
|
|
|
-If you want to use this, you need to make LaTeX use the
|
|
|
-minted package. Add this to `org-export-latex-packages-alist',
|
|
|
-for example using customize, or with something like
|
|
|
-
|
|
|
- (require 'org-latex)
|
|
|
- (add-to-list 'org-export-latex-packages-alist '(\"\" \"minted\"))
|
|
|
-
|
|
|
-In addition, it is neccessary to install
|
|
|
-pygments (http://pygments.org), and configure
|
|
|
-`org-latex-to-pdf-process' so that the -shell-escape option is
|
|
|
-passed to pdflatex."
|
|
|
- :group 'org-export-latex
|
|
|
- :type 'boolean)
|
|
|
-
|
|
|
(defcustom org-export-latex-minted-langs
|
|
|
'((emacs-lisp "common-lisp")
|
|
|
(cc "c++")
|