From e89e1facc2bb661a83f5f6486a3df21a6b717672 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Fri, 12 Nov 2010 00:51:55 +0000 Subject: [PATCH] Remove hard-wired configuration of latex minted export * lisp/org-exp.el: (org-export-format-source-code-or-example): Remove hard-wired configuration of minted export (org-export-latex-minted-with-line-numbers): remove variable * lisp/org-latex.el: (org-export-latex-minted-with-line-numbers): remove variable --- lisp/org-exp.el | 5 +---- lisp/org-latex.el | 6 ------ 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 9004dd5ea..05d8ef676 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -2258,8 +2258,6 @@ in the list) and remove property and value from the list in LISTVAR." (defvar org-export-latex-listings-langs) ;; defined in org-latex.el (defvar org-export-latex-listings-w-names) ;; defined in org-latex.el (defvar org-export-latex-minted-langs) ;; defined in org-latex.el -(defvar org-export-latex-minted-with-line-numbers) ;; defined in org-latex.el - (defun org-export-format-source-code-or-example (backend lang code &optional opts indent caption) "Format CODE from language LANG and return it formatted for export. @@ -2426,8 +2424,7 @@ INDENT was the original indentation of the block." (format "\n%s $\\equiv$ \n" (replace-regexp-in-string "_" "\\\\_" caption))) - (format - "\\begin{minted}[mathescape,%s\nnumbersep=5pt,\nframe=lines,\nframesep=2mm]{%s}\n" (if org-export-latex-minted-with-line-numbers "\nlinenos," "") minted-lang) + (format "\\begin{minted}{%s}\n" minted-lang) rtn "\\end{minted}\n")))) (t (concat (car org-export-latex-verbatim-wrap) rtn (cdr org-export-latex-verbatim-wrap)))) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 2cf947312..210e89965 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -453,12 +453,6 @@ pygmentize -L lexers (symbol :tag "Major mode ") (string :tag "Listings language")))) -(defcustom org-export-latex-minted-with-line-numbers nil - "Should source code line numbers be included when exporting -with the latex minted package?" - :group 'org-export-latex - :type 'boolean) - (defcustom org-export-latex-remove-from-headlines '(:todo nil :priority nil :tags nil) "A plist of keywords to remove from headlines. OBSOLETE.