Update minted documentation.

* ox-latex.el (org-latex-listings):
* org.texi (Literal examples): Update minted documentation.
This commit is contained in:
Rasmus 2015-07-02 13:10:30 +02:00
parent 46a71bb93f
commit c4a913770d
2 changed files with 14 additions and 10 deletions

View File

@ -9996,15 +9996,19 @@ that can be marked up by font-lock in Emacs, you can ask for the example to
look like the fontified Emacs buffer@footnote{This works automatically for look like the fontified Emacs buffer@footnote{This works automatically for
the HTML back-end (it requires version 1.34 of the @file{htmlize.el} package, the HTML back-end (it requires version 1.34 of the @file{htmlize.el} package,
which is distributed with Org). Fontified code chunks in @LaTeX{} can be which is distributed with Org). Fontified code chunks in @LaTeX{} can be
achieved using either the listings or the achieved using either the
@url{http://code.google.com/p/minted, minted,} package. Refer to @url{https://www.ctan.org/tex-archive/macros/latex/contrib/listings/?lang=en, listings,}
@code{org-latex-listings} documentation for details.}. This is done or the
with the @samp{src} block, where you also need to specify the name of the @url{https://github.com/gpoore/minted, minted,} package.
major mode that should be used to fontify the example@footnote{Code in If you use minted or listing, you must load the packages manually, for
@samp{src} blocks may also be evaluated either interactively or on export. example by adding the desired package to
See @pxref{Working with source code} for more information on evaluating code @code{org-latex-packages-alist}. Refer to @code{org-latex-listings}
blocks.}, see @ref{Easy templates} for shortcuts to easily insert code for details.}. This is done with the @samp{src} block, where you also need
blocks. to specify the name of the major mode that should be used to fontify the
example@footnote{Code in @samp{src} blocks may also be evaluated either
interactively or on export. See @pxref{Working with source code} for more
information on evaluating code blocks.}, see @ref{Easy templates} for
shortcuts to easily insert code blocks.
@cindex #+BEGIN_SRC @cindex #+BEGIN_SRC
@example @example

View File

@ -795,7 +795,7 @@ the minted package to `org-latex-packages-alist', for example
using customize, or with using customize, or with
\(require 'ox-latex) \(require 'ox-latex)
\(add-to-list 'org-latex-packages-alist '(\"\" \"minted\")) \(add-to-list 'org-latex-packages-alist '(\"newfloat\" \"minted\"))
In addition, it is necessary to install pygments In addition, it is necessary to install pygments
\(http://pygments.org), and to configure the variable \(http://pygments.org), and to configure the variable