emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug: Export (to latex) ignores :exports keyword in Org 9.0 [9.0 (9.0


From: Rodrigo Belo
Subject: [O] Bug: Export (to latex) ignores :exports keyword in Org 9.0 [9.0 (9.0-elpa @ /Users/rodrigobelo/.emacs.d/elpa/org-20161102/)]
Date: Wed, 9 Nov 2016 18:49:21 +0100

Hi, I believe the export function in  Org mode 9.0 is ignoring the
:exports variable.

Here's an example org-file:


------------
* Test

How much is 3 + 4? 

#+BEGIN_SRC R :exports results
3 + 4
#+END_SRC

#+RESULTS:
: 7

-----------

This produces a pdf (or html) with the 3+4 snippet, which I believe is
not the intended output

Am I missing anything?

Thanks,

Rodrigo

Emacs  : GNU Emacs 25.1.1 (x86_64-apple-darwin15.5.0, NS appkit-1404.47 Version 
10.11.5 (Build 15F34))
of 2016-11-06
Package: Org mode version 9.0 (9.0-elpa @ 
/Users/rodrigobelo/.emacs.d/elpa/org-20161102/)

current state:
==============
(setq
org-id-locations-file "/Users/rodrigobelo/.emacs.d/.cache/.org-id-locations"
org-export-babel-evaluate nil
org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
org-latex-classes '(("beamer" "\\documentclass[presentation]{beamer}" 
("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
                     ("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}"))
                     )
org-clock-persist-file "/Users/rodrigobelo/.emacs.d/.cache/org-clock-save.el"
org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
org-occur-hook '(org-first-headline-recenter)
org-imenu-depth 8
org-metaup-hook '(org-babel-load-in-session-maybe)
org-html-format-drawer-function '(closure
                                   (htmlize-buffer-places 
org-html-format-table-no-css htmlize-css-name-prefix
                                    htmlize-output-type htmlize-output-type 
htmlize-css-name-prefix t)
                                   (_name contents) contents)
org-log-done 'time
org-src-window-setup 'current-window
org-latex-format-inlinetask-function 
'org-latex-format-inlinetask-default-function
org-confirm-shell-link-function 'yes-or-no-p
org-image-actual-width nil
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-link-translation-function 'toc-org-unhrefify
org-present-mode-hook '(spacemacs//org-present-start)
org-agenda-restore-windows-after-quit t
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-default-notes-file "~/org/notes.org"
org-startup-indented t
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-latex-format-drawer-function '(closure (t) (_ contents) contents)
org-odt-format-headline-function 'org-odt-format-headline-default-function
org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-babel-pre-tangle-hook '(save-buffer)
org-mode-hook '(org-display-inline-images
                 #[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-show-block-all append local] 5]
                 (closure
                  (org-bracket-link-regexp org-src-window-setup *this* 
org-babel-confirm-evaluate-answer-no
                   org-src-preserve-indentation org-src-lang-modes 
org-edit-src-content-indentation
                   org-babel-library-of-babel t)
                  nil
                  (add-hook (quote change-major-mode-hook) (quote 
org-babel-show-result-all) (quote append) (quote local))
                  )
                 org-babel-result-hide-spec org-babel-hide-all-hashes 
spacemacs/load-yasnippet toc-org-enable
                 org-download-enable org-bullets-mode 
spacemacs//org-babel-do-load-languages flyspell-mode
                 spacemacs/add-org-surrounds evil-org-mode org-eldoc-load 
spacemacs//init-company-org-mode company-mode)
org-archive-hook '(org-attach-archive-delete-maybe)
org-ascii-format-drawer-function '(closure (t) (_name contents _width) contents)
org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
org-publish-timestamp-directory 
"/Users/rodrigobelo/.emacs.d/.cache/.org-timestamps/"
org-present-mode-quit-hook '(spacemacs//org-present-end)
org-export-async-init-file 
"/Users/rodrigobelo/.emacs.d/layers/+emacs/org/local/org-async-init.el"
org-download-annotate-function 'org-download-annotate-default
org-latex-packages-alist '(("" "listings"))
org-babel-tangle-lang-exts '(("stata" . "do") ("python" . "py") ("emacs-lisp" . 
"el") ("elisp" . "el"))
org-confirm-elisp-link-function 'yes-or-no-p
org-startup-with-inline-images t
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-odt-format-drawer-function '(closure
                                  (hfy-user-sheet-assoc hfy-html-quote-regex 
hfy-html-quote-map hfy-face-to-css
                                   hfy-begin-span-handler hfy-end-span-handler 
archive-zip-extract
                                   nxml-auto-insert-xml-declaration-flag t)
                                  (_name contents) contents)
org-babel-after-execute-hook '(org-display-inline-images 
spacemacs/ob-fix-inline-images)
org-latex-listings 'lstlisting
org-html-format-headline-function 'org-html-format-headline-default-function
org-link-parameters '(("id" :follow org-id-open) ("rmail" :follow 
org-rmail-open :store org-rmail-store-link)
                       ("mhe" :follow org-mhe-open :store org-mhe-store-link)
                       ("irc" :follow org-irc-visit :store org-irc-store-link)
                       ("info" :follow org-info-open :export org-info-export 
:store org-info-store-link)
                       ("gnus" :follow org-gnus-open :store org-gnus-store-link)
                       ("docview" :follow org-docview-open :export 
org-docview-export :store org-docview-store-link)
                       ("bibtex" :follow org-bibtex-open :store 
org-bibtex-store-link)
                       ("bbdb" :follow org-bbdb-open :export org-bbdb-export 
:complete org-bbdb-complete-link :store
                        org-bbdb-store-link)
                       ("w3m" :store org-w3m-store-link) ("file+sys") 
("file+emacs")
                       ("orgit-rev" :store orgit-rev-store :follow 
orgit-rev-open :export orgit-rev-export)
                       ("orgit-log" :store orgit-log-store :follow 
orgit-log-open :export orgit-log-export)
                       ("orgit" :store orgit-status-store :follow 
orgit-status-open :export orgit-status-export)
                       ("doi" :follow org--open-doi-link) ("elisp" :follow 
org--open-elisp-link)
                       ("file" :complete org-file-complete-link)
                       ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" 
path))))
                       ("help" :follow org--open-help-link)
                       ("http" :follow (lambda (path) (browse-url (concat 
"http:" path))))
                       ("https" :follow (lambda (path) (browse-url (concat 
"https:" path))))
                       ("mailto" :follow (lambda (path) (browse-url (concat 
"mailto:"; path))))
                       ("message" :follow (lambda (path) (browse-url (concat 
"message:" path))))
                       ("news" :follow (lambda (path) (browse-url (concat 
"news:"; path))))
                       ("shell" :follow org--open-shell-link))
org-structure-template-alist '(("sh" "#+BEGIN_SRC sh\n?\n#+END_SRC" "<src 
lang=\"shell\">\n?\n</src>")
                                ("el" "#+BEGIN_SRC emacs-lisp\n?\n#+END_SRC" 
"<src lang=\"emacs-lisp\">\n?\n</src>")
                                ("pv" "#+BEGIN_SRC python :results 
value\n?\n#+END_SRC"
                                 "<src lang=\"python\">\n?\n</src>")
                                ("por" "#+BEGIN_SRC python :results output 
raw\n?\n#+END_SRC"
                                 "<src lang=\"python\">\n?\n</src>")
                                ("p" "#+BEGIN_SRC python\n?\n#+END_SRC" "<src 
lang=\"python\">\n?\n</src>")
                                ("st" "#+BEGIN_SRC stata :session 
*stata*\n?\n#+END_SRC"
                                 "<src lang=\"stata\">\n?\n</src>")
                                ("rg"
                                 "#+BEGIN_SRC R :results drawer graphics :file 
(org-babel-temp-file \"figure-\" \".png\") :height 500 :width 
700\n?\n#+END_SRC" "<src lang=\"R\">\n?\n</src>")
                                ("r" "#+BEGIN_SRC R\n?\n#+END_SRC" "<src 
lang=\"R\">\n?\n</src>")
                                ("pe" "**** Example\n\n#+BEGIN_SRC 
python\n?\n#+END_SRC"
                                 "<src lang=\"python\">\n?\n</src>")
                                ("eg" "**** Example\n?" "") ("s" "#+BEGIN_SRC 
?\n\n#+END_SRC")
                                ("e" "#+BEGIN_EXAMPLE\n?\n#+END_EXAMPLE") ("q" 
"#+BEGIN_QUOTE\n?\n#+END_QUOTE")
                                ("v" "#+BEGIN_VERSE\n?\n#+END_VERSE") ("V" 
"#+BEGIN_VERBATIM\n?\n#+END_VERBATIM")
                                ("c" "#+BEGIN_CENTER\n?\n#+END_CENTER") ("l" 
"#+BEGIN_EXPORT latex\n?\n#+END_EXPORT")
                                ("L" "#+LaTeX: ") ("h" "#+BEGIN_EXPORT 
html\n?\n#+END_EXPORT") ("H" "#+HTML: ")
                                ("a" "#+BEGIN_EXPORT ascii\n?\n#+END_EXPORT") 
("A" "#+ASCII: ") ("i" "#+INDEX: ?")
                                ("I" "#+INCLUDE: %file ?"))
org-babel-load-languages '((python . t) (R . t) (shell . t) (stata . t))
org-src-preserve-indentation t
org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
org-agenda-files "~/org/agendas.org"
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-confirm-babel-evaluate nil
)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]