>From 6d0e535cc9de8411cd7291acecca632a0eb46c11 Mon Sep 17 00:00:00 2001 From: Rasmus Date: Thu, 2 Jul 2015 13:10:30 +0200 Subject: [PATCH 2/3] Update minted documentation. * ox-latex.el (org-latex-listings): * org.texi (Literal examples): Update minted documentation. --- doc/org.texi | 22 +++++++++++++--------- lisp/ox-latex.el | 2 +- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index 8ec8a51..f979483 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -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 address@hidden works automatically for 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 -achieved using either the listings or the address@hidden://code.google.com/p/minted, minted,} package. Refer to address@hidden documentation for details.}. This is done -with the @samp{src} block, where you also need to specify the name of the -major mode that should be used to fontify the address@hidden in address@hidden 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. +achieved using either the address@hidden://www.ctan.org/tex-archive/macros/latex/contrib/listings/?lang=en, listings,} +or the address@hidden://github.com/gpoore/minted, minted,} package. +If you use minted or listing, you must load the packages manually, for +example by adding the desired package to address@hidden Refer to @code{org-latex-listings} +for details.}. This is done with the @samp{src} block, where you also need +to specify the name of the major mode that should be used to fontify the address@hidden 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 @example diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 31d804b..d9f7c0e 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -795,7 +795,7 @@ 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 '(\"newfloat\" \"minted\")) In addition, it is necessary to install pygments \(http://pygments.org), and to configure the variable -- 2.4.4