From mboxrd@z Thu Jan 1 00:00:00 1970 From: "vendo.libri@libero.it" Subject: Somehow orgmode doesn't export code to pdf in MINTED environment! Date: Sun, 30 Apr 2017 17:41:59 +0200 (CEST) Message-ID: <99936378.16590671493566919306.JavaMail.httpd@webmail-38.iol.local> Reply-To: "vendo.libri@libero.it" Mime-Version: 1.0 Content-Type: text/plain;charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4qz8-0006Oy-TN for emacs-orgmode@gnu.org; Sun, 30 Apr 2017 11:42:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d4qz4-0004p5-WB for emacs-orgmode@gnu.org; Sun, 30 Apr 2017 11:42:06 -0400 Received: from smtp-32.italiaonline.it ([212.48.25.160]:52224 helo=libero.it) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d4qz4-0004oM-NK for emacs-orgmode@gnu.org; Sun, 30 Apr 2017 11:42:02 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hello, I've already posted a few days ago on my MINTED problem. On someone's suggestion on this mailing list, I cleared up my init file and only left the following settings: --------- (server-start) ; (add-hook 'LaTeX-mode-hook 'turn-on-reftex) (setq reftex-plug-into-AUCTeX t) ;;; a key for tilde symbol (define-key key-translation-map (kbd "M-2") (kbd "~")) ;;; a key for backquote symbol (define-key key-translation-map (kbd "M-6") "") (define-key key-translation-map (kbd "M-9") (kbd "`")) ;;this one's only for CDLaTeX math insertion (define-key key-translation-map (kbd "C-1") (kbd "`")) ;; visual line word wrapping (global-visual-line-mode t) ;;automatically recognize org files (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) ;; MINIMAL init FILE (add-to-list 'load-path "~/src/emacs/org/org-mode/lisp") (require 'org-loaddefs) (require 'org) (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-cc" 'org-capture) (global-set-key "\C-ca" 'org-agenda) ;;; (setq org-latex-listings 'minted org-latex-packages-alist '(("" "minted")) org-latex-pdf-process '("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" "pdflatex -shell-escape -interaction nonstopmode -output-directory %o % f")) (setq org-latex-minted-options '(("fontsize" "\\footnotesize")("bgcolor" "white")("obeytabs" "true"))) ;; -shell-escape for minted pkg (COMMENT WHEN NOT IN USE) (add-hook 'TeX-mode-hook (lambda () (setq TeX-command-extra-options "-shell-escape") ) ) ;;; --------- The above is my ENTIRE .emacs file. There's nothing else on it beyond those lines. After this tweak, all was working fine but today the problem has come up again. I DON'T KNOW WHY! Essentially, when going from .org to .tex, it exports the contents of #+BEGIN_SRC inside LISTINGS environment, not MINTED, in spite of being told to do so! This is the minted.org file that I'm trying to export to pdf via .tex (C-c C-e l o). I'm on a 32-bit Windows 7, emacs 24, org-mode 8.2, TeXlive 2015 with MINTED package and pygmentize correctly installed. Sumatra as pdf viewer. ---------- #+TITLE: My Minted Experiment #+AUTHOR: me #+DATE: #+STARTUP: nolatexpreview #+OPTIONS: toc:nil #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: [a4paper,10pt] #+ATTR_LATEX: :mode table :booktabs #+LATEX_HEADER: \usepackage{esdiff} #+LATEX_HEADER: \usepackage[version=4]{mhchem} #+LATEX_HEADER: \usepackage{amssymb} #+LATEX_HEADER: \usepackage{siunitx} #+LATEX_HEADER: \usepackage{booktabs} #+LATEX_HEADER: \setcounter{secnumdepth}{0} #+LATEX_HEADER: \usepackage[margin=1in]{geometry} #+LATEX_HEADER: \frenchspacing \allowdisplaybreaks #+LATEX_HEADER: \usepackage{fancyhdr} #+LATEX_HEADER: \pagestyle{fancy} % choose page-style #+LATEX_HEADER: \fancyhf{} % erase and clean up #+LATEX_HEADER: \fancyhf[HLE,HRO]{\thepage} % H or F=Header or Footer, LCR=Left, Centre, Right #+LATEX_HEADER: \fancyhf[HC]{My minted experiment} * SECTION #+BEGIN_SRC python print "there's some code here"; a= True; #+END_SRC ---------- Sorry to bother you with the same problem!