Rasmus has fixed this in http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=679adcaa64613c821b38cd1d34b081640315293a . -- Kaushal Modi On Tue, Sep 29, 2015 at 5:11 AM, Rainer M Krug wrote: > > Exporting to latex of the simple file below results in an error: > > ,---- > | mapcar: Symbol’s value as variable is void: compile > `---- > > --8<---------------cut here---------------start------------->8--- > #+LATEX_CLASS: article > #+LATEX_CLASS_OPTIONS: > #+LATEX_HEADER: > #+LATEX_HEADER_EXTRA: > #+DESCRIPTION: > #+KEYWORDS: > #+SUBTITLE: > #+LATEX_COMPILER: pdflatex > #+DATE: \today > > * Emacs version > #+begin_src emacs-lisp > (emacs-version) > #+end_src > > #+RESULTS: > : GNU Emacs 25.0.50.1 (x86_64-apple-darwin14.5.0, NS appkit-1348.17 > Version 10.10.5 (Build 14F27)) > : of 2015-09-29 > > #+begin_src emacs-lisp > (org-version) > #+end_src > > #+RESULTS: > : 8.3.1 > > Org-mode version 8.3.1 (release_8.3.1-283-gf6187d @ > /Users/rainerkrug/.emacs.d/org-mode/lisp/) > > PS: how do I get this output from a source block above? > --8<---------------cut here---------------end--------------->8--- > > > ,---- > | Debugger entered--Lisp error: (void-variable compile) > | #[(pkg) " <\205. \303 8\211.\205. \304\n <\203. \202. > C\"?)?\205\". \207" [pkg third compile 3 member-ignore-case] 4](("AUTO" > "inputenc" t ("pdflatex"))) > | mapcar(#[(pkg) " <\205. \303 8\211.\205. \304\n <\203. \202. > C\"?)?\205\". \207" [pkg third compile 3 member-ignore-case] 4] (("AUTO" > "inputenc" t ("pdflatex")) ("T1" "fontenc" t ("pdflatex")) ("" "graphicx" > t) ("" "grffile" t) ("" "longtable" nil) ("" "wrapfig" nil) ("" "rotating" > nil) ("normalem" "ulem" t) ("" "amsmath" t) ("" "textcomp" t) ("" "amssymb" > t) ("" "capt-of" nil) ("" "hyperref" nil))) > | org-latex--remove-packages((("AUTO" "inputenc" t ("pdflatex")) ("T1" > "fontenc" t ("pdflatex")) ("" "graphicx" t) ("" "grffile" t) ("" > "longtable" nil) ("" "wrapfig" nil) ("" "rotating" nil) ("normalem" "ulem" > t) ("" "amsmath" t) ("" "textcomp" t) ("" "amssymb" t) ("" "capt-of" nil) > ("" "hyperref" nil)) (:export-options nil :input-buffer "test.org" > :input-file "/Users/rainerkrug/tmp/test.org" :latex-class "article" > :latex-class-options "" :latex-header "" :latex-header-extra "" > :description nil :keywords nil :subtitle nil :latex-active-timestamp-format > "\\textit{%s}" :latex-caption-above (table) :latex-classes (("article" > "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . > "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") > ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" > "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") > ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . > "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" > ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") > ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . > "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) > :latex-default-figure-position "htb" :latex-default-table-environment > "tabular" :latex-default-table-mode table :latex-diary-timestamp-format > "\\textit{%s}" :latex-footnote-separator "\\textsuperscript{,}\\," > :latex-format-drawer-function (lambda (name contents) contents) > :latex-format-headline-function org-latex-format-headline-default-function > :latex-format-inlinetask-function > org-latex-format-inlinetask-default-function :latex-hyperref-template > "\\hypersetup{\n pdfauthor={%a},\n pdftitle={%t},\n pdfkeywords={%k},\n > pdfsubject={%d},\n pdfcreator={%c}, \n pdflang={%L}}\n" > :latex-image-default-height "" :latex-image-default-option "" > :latex-image-default-width ".9\\linewidth" ...)) > | org-latex--make-header((:export-options nil :input-buffer "test.org" > :input-file "/Users/rainerkrug/tmp/test.org" :latex-class "article" > :latex-class-options "" :latex-header "" :latex-header-extra "" > :description nil :keywords nil :subtitle nil :latex-active-timestamp-format > "\\textit{%s}" :latex-caption-above (table) :latex-classes (("article" > "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . > "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") > ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" > "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") > ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . > "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" > ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") > ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . > "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) > :latex-default-figure-position "htb" :latex-default-table-environment > "tabular" :latex-default-table-mode table :latex-diary-timestamp-format > "\\textit{%s}" :latex-footnote-separator "\\textsuperscript{,}\\," > :latex-format-drawer-function (lambda (name contents) contents) > :latex-format-headline-function org-latex-format-headline-default-function > :latex-format-inlinetask-function > org-latex-format-inlinetask-default-function :latex-hyperref-template > "\\hypersetup{\n pdfauthor={%a},\n pdftitle={%t},\n pdfkeywords={%k},\n > pdfsubject={%d},\n pdfcreator={%c}, \n pdflang={%L}}\n" > :latex-image-default-height "" :latex-image-default-option "" > :latex-image-default-width ".9\\linewidth" ...)) > | org-latex-template(#("\n\\section{Emacs > version}\n\\label{sec:orgheadline1}\n\\lstset{language=Lisp,label= > ,caption= ,captionpos=b,numbers=none}\n\\begin{lstlisting}\n > (emacs-version)\n\\end{lstlisting}\n\n\\lstset{language=Lisp,label= > ,caption= ,captionpos=b,numbers=none}\n\\begin{lstlisting}\n > (org-version)\n\\end{lstlisting}\n\nOrg-mode version 8.3.1 > (release\\(_{\\text{8.3.1}}\\)-283-gf6187d @ > \\emph{Users/rainerkrug}.emacs.d/org-mode/lisp/)\n\nPS: how do I get this > output from a source block above?\n" 10 23 (:parent (headline (:raw-value > "Emacs version" :begin 167 :end 436 :pre-blank 0 :contents-begin 183 > :contents-end 435 :level 1 :priority nil :tags nil :todo-keyword nil > :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil > :commentedp nil :post-affiliated 167 :title (#("Emacs version" 0 13 > (:parent #2))) :parent (org-data nil (section (:begin 1 :end 167 > :contents-begin 1 :contents-end 166 :post-blank 1 :post-affiliated 1 > :parent #4) (keyword (:key "LATEX_CLASS" :value "article" :begin 1 :end 24 > :post-blank 0 :post-affiliated 1 :parent #5)) (keyword (:key > "LATEX_CLASS_OPTIONS" :value "" :begin 24 :end 47 :post-blank 0 > :post-affiliated 24 :parent #5)) (keyword (:key "LATEX_HEADER" :value "" > :begin 47 :end 63 :post-blank 0 :post-affiliated 47 :parent #5)) (keyword > (:key "LATEX_HEADER_EXTRA" :value "" :begin 63 :end 85 :post-blank 0 > :post-affiliated 63 :parent #5)) (keyword (:key "DESCRIPTION" :value "" > :begin 85 :end 100 :post-blank 0 :post-affiliated 85 :parent #5)) (keyword > (:key "KEYWORDS" :value "" :begin 100 :end 112 :post-blank 0 > :post-affiliated 100 :parent #5)) (keyword (:key "SUBTITLE" :value "" > :begin 112 :end 124 :post-blank 0 :post-affiliated 112 :parent #5)) > (keyword (:key "LATEX_COMPILER" :value "pdflatex" :begin 124 :end 151 > :post-blank 0 :post-affiliated 124 :parent #5)) (keyword (:key "DATE" > :value "\\today" :begin 151 :end 166 :post-blank 0 :post-affiliated 151 > :parent #5))) #2)) (section (:begin 183 :end 436 :contents-begin 183 > :contents-end 435 :post-blank 1 :post-affiliated 183 :parent #2) (src-block > (:language "emacs-lisp" :switches nil :parameters nil :begin 183 :end 234 > :number-lines nil :preserve-indent nil :retain-labels t :use-labels t > :label-fmt nil :value " (emacs-version)\n" :post-blank 1 :post-affiliated > 183 :parent #3)) (src-block (:language "emacs-lisp" :switches nil > :parameters nil :begin 234 :end 283 :number-lines nil :preserve-indent nil > :retain-labels t :use-labels t :label-fmt nil :value " (org-version)\n" > :post-blank 1 :post-affiliated 234 :parent #3)) (paragraph (:begin 283 :end > 379 :contents-begin 283 :contents-end 378 :post-blank 1 :post-affiliated > 283 :parent #3) #("Org-mode version 8.3.1 (release" 0 31 (:parent #4)) > (latex-math-block (:parent #4 :post-blank 0) (subscript (:begin 314 :end > 320 :use-brackets-p nil :contents-begin 315 :contents-end 320 :post-blank 0 > :parent #5) #("8.3.1" 0 5 ...))) #("-283-gf6187d @ " 0 15 (:parent #4)) > (italic (:begin 335 :end 353 :contents-begin 336 :contents-end 352 > :post-blank 0 :parent #4) #("Users/rainerkrug" 0 16 (:parent #5))) > #(".emacs.d/org-mode/lisp/)\n" 0 25 (:parent #4))) (paragraph (:begin 379 > :end 435 :contents-begin 379 :contents-end 435 :post-blank 0 > :post-affiliated 379 :parent #3) #("PS: how do I get this output from a > source block above?\n" 0 56 (:parent #4)))))) 290 321 (:parent (paragraph > (:begin 283 :end 379 :contents-begin 283 :contents-end 378 :post-blank 1 > :post-affiliated 283 :parent (section (:begin 183 :end 436 :contents-begin > 183 :contents-end 435 :post-blank 1 :post-affiliated 183 :parent (headline > (:raw-value "Emacs version" :begin 167 :end 436 :pre-blank 0 > :contents-begin 183 :contents-end 435 :level 1 :priority nil :tags nil > :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil > :archivedp nil :commentedp nil :post-affiliated 167 :title ... :parent ...) > #4)) (src-block (:language "emacs-lisp" :switches nil :parameters nil > :begin 183 :end 234 :number-lines nil :preserve-indent nil :retain-labels t > :use-labels t :label-fmt nil :value " (emacs-version)\n" :post-blank 1 > :post-affiliated 183 :parent #4)) (src-block (:language "emacs-lisp" > :switches nil :parameters nil :begin 234 :end 283 :number-lines nil > :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value " > (org-version)\n" :post-blank 1 :post-affiliated 234 :parent #4)) #2 > (paragraph (:begin 379 :end 435 :contents-begin 379 :contents-end 435 > :post-blank 0 :post-affiliated 379 :parent #4) #("PS: how do I get this > output from a source block above?\n" 0 56 (:parent #5))))) #("Org-mode > version 8.3.1 (release" 0 31 (:parent #2)) (latex-math-block (:parent #2 > :post-blank 0) (subscript (:begin 314 :end 320 :use-brackets-p nil > :contents-begin 315 :contents-end 320 :post-blank 0 :parent #3) #("8.3.1" 0 > 5 (:parent #4)))) #("-283-gf6187d @ " 0 15 (:parent #2)) (italic (:begin > 335 :end 353 :contents-begin 336 :contents-end 352 :post-blank 0 :parent > #2) #("Users/rainerkrug" 0 16 (:parent #3))) #(".emacs.d/org-mode/lisp/)\n" > 0 25 (:parent #2)))) 331 336 (:parent (subscript (:begin 314 :end 320 > :use-brackets-p nil :contents-begin 315 :contents-end 320 :post-blank 0 > :parent (latex-math-block (:parent (paragraph (:begin 283 :end 379 > :contents-begin 283 :contents-end 378 :post-blank 1 :post-affiliated 283 > :parent ...) #("Org-mode version 8.3.1 (release" 0 31 ...) #4 > #("-283-gf6187d @ " 0 15 ...) (italic ... #("Users/rainerkrug" 0 16 ...)) > #(".emacs.d/org-mode/lisp/)\n" 0 25 ...)) :post-blank 0) #2)) #("8.3.1" 0 5 > (:parent #2)))) 340 355 (:parent (paragraph (:begin 283 :end 379 > :contents-begin 283 :contents-end 378 :post-blank 1 :post-affiliated 283 > :parent (section (:begin 183 :end 436 :contents-begin 183 :contents-end 435 > :post-blank 1 :post-affiliated 183 :parent (headline (:raw-value "Emacs > version" :begin 167 :end 436 :pre-blank 0 :contents-begin 183 :contents-end > 435 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil > :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil > :post-affiliated 167 :title ... :parent ...) #4)) (src-block (:language > "emacs-lisp" :switches nil :parameters nil :begin 183 :end 234 > :number-lines nil :preserve-indent nil :retain-labels t :use-labels t > :label-fmt nil :value " (emacs-version)\n" :post-blank 1 :post-affiliated > 183 :parent #4)) (src-block (:language "emacs-lisp" :switches nil > :parameters nil :begin 234 :end 283 :number-lines nil :preserve-indent nil > :retain-labels t :use-labels t :label-fmt nil :value " (org-version)\n" > :post-blank 1 :post-affiliated 234 :parent #4)) #2 (paragraph (:begin 379 > :end 435 :contents-begin 379 :contents-end 435 :post-blank 0 > :post-affiliated 379 :parent #4) #("PS: how do I get this output from a > source block above?\n" 0 56 (:parent #5))))) #("Org-mode version 8.3.1 > (release" 0 31 (:parent #2)) (latex-math-block (:parent #2 :post-blank 0) > (subscript (:begin 314 :end 320 :use-brackets-p nil :contents-begin 315 > :contents-end 320 :post-blank 0 :parent #3) #("8.3.1" 0 5 (:parent #4)))) > #("-283-gf6187d @ " 0 15 (:parent #2)) (italic (:begin 335 :end 353 > :contents-begin 336 :contents-end 352 :post-blank 0 :parent #2) > #("Users/rainerkrug" 0 16 (:parent #3))) #(".emacs.d/org-mode/lisp/)\n" 0 > 25 (:parent #2)))) 361 377 (:parent (italic (:begin 335 :end 353 > :contents-begin 336 :contents-end 352 :post-blank 0 :parent (paragraph > (:begin 283 :end 379 :contents-begin 283 :contents-end 378 :post-blank 1 > :post-affiliated 283 :parent (section (:begin 183 :end 436 :contents-begin > 183 :contents-end 435 :post-blank 1 :post-affiliated 183 :parent ...) > (src-block ...) (src-block ...) #4 (paragraph ... #("PS: how do I get this > output from a source block above?\n" 0 56 ...)))) #("Org-mode version 8.3.1 > (release" 0 31 (:parent #4)) (latex-math-block (:parent #4 :post-blank 0) > (subscript (:begin 314 :end 320 :use-brackets-p nil :contents-begin 315 > :contents-end 320 :post-blank 0 :parent #5) #("8.3.1" 0 5 ...))) > #("-283-gf6187d @ " 0 15 (:parent #4)) #2 #(".emacs.d/org-mode/lisp/)\n" 0 > 25 (:parent #4)))) #("Users/rainerkrug" 0 16 (:parent #2)))) 378 402 > (:parent (paragraph (:begin 283 :end 379 :contents-begin 283 :contents-end > 378 :post-blank 1 :post-affiliated 283 :parent (section (:begin 183 :end > 436 :contents-begin 183 :contents-end 435 :post-blank 1 :post-affiliated > 183 :parent (headline (:raw-value "Emacs version" :begin 167 :end 436 > :pre-blank 0 :contents-begin 183 :contents-end 435 :level 1 :priority nil > :tags nil :todo-keyword nil :todo-type nil :post-blank 1 > :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 167 > :title ... :parent ...) #4)) (src-block (:language "emacs-lisp" :switches > nil :parameters nil :begin 183 :end 234 :number-lines nil :preserve-indent > nil :retain-labels t :use-labels t :label-fmt nil :value " > (emacs-version)\n" :post-blank 1 :post-affiliated 183 :parent #4)) > (src-block (:language "emacs-lisp" :switches nil :parameters nil :begin 234 > :end 283 :number-lines nil :preserve-indent nil :retain-labels t > :use-labels t :label-fmt nil :value " (org-version)\n" :post-blank 1 > :post-affiliated 234 :parent #4)) #2 (paragraph (:begin 379 :end 435 > :contents-begin 379 :contents-end 435 :post-blank 0 :post-affiliated 379 > :parent #4) #("PS: how do I get this output from a source block above?\n" 0 > 56 (:parent #5))))) #("Org-mode version 8.3.1 (release" 0 31 (:parent #2)) > (latex-math-block (:parent #2 :post-blank 0) (subscript (:begin 314 :end > 320 :use-brackets-p nil :contents-begin 315 :contents-end 320 :post-blank 0 > :parent #3) #("8.3.1" 0 5 (:parent #4)))) #("-283-gf6187d @ " 0 15 (:parent > #2)) (italic (:begin 335 :end 353 :contents-begin 336 :contents-end 352 > :post-blank 0 :parent #2) #("Users/rainerkrug" 0 16 (:parent #3))) > #(".emacs.d/org-mode/lisp/)\n" 0 25 (:parent #2)))) 404 459 (:parent > (paragraph (:begin 379 :end 435 :contents-begin 379 :contents-end 435 > :post-blank 0 :post-affiliated 379 :parent (section (:begin 183 :end 436 > :contents-begin 183 :contents-end 435 :post-blank 1 :post-affiliated 183 > :parent (headline (:raw-value "Emacs version" :begin 167 :end 436 > :pre-blank 0 :contents-begin 183 :contents-end 435 :level 1 :priority nil > :tags nil :todo-keyword nil :todo-type nil :post-blank 1 > :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 167 > :title ... :parent ...) #4)) (src-block (:language "emacs-lisp" :switches > nil :parameters nil :begin 183 :end 234 :number-lines nil :preserve-indent > nil :retain-labels t :use-labels t :label-fmt nil :value " > (emacs-version)\n" :post-blank 1 :post-affiliated 183 :parent #4)) > (src-block (:language "emacs-lisp" :switches nil :parameters nil :begin 234 > :end 283 :number-lines nil :preserve-indent nil :retain-labels t > :use-labels t :label-fmt nil :value " (org-version)\n" :post-blank 1 > :post-affiliated 234 :parent #4)) (paragraph (:begin 283 :end 379 > :contents-begin 283 :contents-end 378 :post-blank 1 :post-affiliated 283 > :parent #4) #("Org-mode version 8.3.1 (release" 0 31 (:parent #5)) > (latex-math-block (:parent #5 :post-blank 0) (subscript ... #("8.3.1" 0 5 > ...))) #("-283-gf6187d @ " 0 15 (:parent #5)) (italic (:begin 335 :end 353 > :contents-begin 336 :contents-end 352 :post-blank 0 :parent #5) > #("Users/rainerkrug" 0 16 ...)) #(".emacs.d/org-mode/lisp/)\n" 0 25 > (:parent #5))) #2)) #("PS: how do I get this output from a source block > above?\n" 0 56 (:parent #2))))) (:export-options nil :input-buffer " > test.org" :input-file "/Users/rainerkrug/tmp/test.org" :latex-class > "article" :latex-class-options "" :latex-header "" :latex-header-extra "" > :description nil :keywords nil :subtitle nil :latex-active-timestamp-format > "\\textit{%s}" :latex-caption-above (table) :latex-classes (("article" > "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . > "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") > ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" > "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") > ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . > "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" > ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") > ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . > "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) > :latex-default-figure-position "htb" :latex-default-table-environment > "tabular" :latex-default-table-mode table :latex-diary-timestamp-format > "\\textit{%s}" :latex-footnote-separator "\\textsuperscript{,}\\," > :latex-format-drawer-function (lambda (name contents) contents) > :latex-format-headline-function org-latex-format-headline-default-function > :latex-format-inlinetask-function > org-latex-format-inlinetask-default-function :latex-hyperref-template > "\\hypersetup{\n pdfauthor={%a},\n pdftitle={%t},\n pdfkeywords={%k},\n > pdfsubject={%d},\n pdfcreator={%c}, \n pdflang={%L}}\n" > :latex-image-default-height "" :latex-image-default-option "" > :latex-image-default-width ".9\\linewidth" ...)) > | org-export-as(latex nil nil nil (:output-file "./test.tex")) > | org-export-to-file(latex "./test.tex" nil nil nil nil nil) > | org-latex-export-to-latex(nil nil nil nil) > | org-export-dispatch(nil) > | funcall-interactively(org-export-dispatch nil) > | call-interactively(org-export-dispatch nil nil) > | command-execute(org-export-dispatch) > `---- > > -- > Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation > Biology, UCT), Dipl. Phys. (Germany) > > Centre of Excellence for Invasion Biology > Stellenbosch University > South Africa > > Tel : +33 - (0)9 53 10 27 44 > Cell: +33 - (0)6 85 62 59 98 > Fax : +33 - (0)9 58 10 27 44 > > Fax (D): +49 - (0)3 21 21 25 22 44 > > email: Rainer@krugs.de > > Skype: RMkrug > > PGP: 0x0F52F982 >