summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2013-07-05 13:57:46 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2013-07-05 13:57:46 +0200
commit7e1799e5fc7ba6f050b40c228e7957090426bb96 (patch)
treed4f270a4338a987214c28828d23924b970d9afb8
parenteeb13239335cd4e34b9c81648207803091d38a16 (diff)
downloadorg-mode-7e1799e5fc7ba6f050b40c228e7957090426bb96.tar.gz
ox-latex: Update a docstring
* lisp/ox-latex.el (org-latex-listings): Update docstring.
-rw-r--r--lisp/ox-latex.el15
1 files changed, 11 insertions, 4 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 55553cf..0f6fbb5 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -613,6 +613,7 @@ in order to mimic default behaviour:
(defcustom org-latex-listings nil
"Non-nil means export source code using the listings package.
+
This package will fontify source code, possibly even with color.
If you want to use this, you also need to make LaTeX use the
listings package, and if you want to have color, the color
@@ -620,8 +621,8 @@ package. Just add these to `org-latex-packages-alist', for
example using customize, or with something like:
\(require 'ox-latex)
- \(add-to-list 'org-latex-packages-alist '\(\"\" \"listings\"))
- \(add-to-list 'org-latex-packages-alist '\(\"\" \"color\"))
+ \(add-to-list 'org-latex-packages-alist '(\"\" \"listings\"))
+ \(add-to-list 'org-latex-packages-alist '(\"\" \"color\"))
Alternatively,
@@ -633,12 +634,18 @@ the minted package to `org-latex-packages-alist', for example
using customize, or with
\(require 'ox-latex)
- \(add-to-list 'org-latex-packages-alist '\(\"\" \"minted\"))
+ \(add-to-list 'org-latex-packages-alist '(\"\" \"minted\"))
In addition, it is necessary to install pygments
\(http://pygments.org), and to configure the variable
`org-latex-pdf-process' so that the -shell-escape option is
-passed to pdflatex."
+passed to pdflatex.
+
+The minted choice has possible repercussions on the preview of
+latex fragments (see `org-preview-latex-fragment'). If you run
+into previewing problems, please consult
+
+ http://orgmode.org/worg/org-tutorials/org-latex-preview.html"
:group 'org-export-latex
:type '(choice
(const :tag "Use listings" t)