Re: [O] Bug: LaTeX source code blocks not exported in Markdown [8.3.1 (8.3.1-103-g366dc4-elpa @ /home/bitouze/.emacs.d/elpa/org-20150907/)]
Le 11/09/15 à 17h58, Nicolas Goazioua écrit : > Hello, Hi Nicolas and Charles, >> Expected behavior: >> >> ┌ >> │ #+BEGIN_SRC latex >> │ latex >> │ #+END_SRC >> └ >> >> gives: >> >> ┌ >> │ latex >> └ > > This is because latex block can be evaluated, which gives: > > #+RESULTS: > #+BEGIN_LaTeX > latex > #+END_LaTeX > > i.e., the generated results appear only when using latex export backend. > The original block is removed thereafter. You can use instead: > > #+BEGIN_SRC latex :exports code > latex > #+END_SRC Ooops, sorry for the noise due to this misuse. Regards. -- Denis
Re: [O] Bug: LaTeX source code blocks not exported in Markdown [8.3.1 (8.3.1-103-g366dc4-elpa @ /home/bitouze/.emacs.d/elpa/org-20150907/)]
On Fri, 11 Sep 2015, Denis Bitouzé wrote: Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. When exported to Mardown, the following org mode file: --8<---cut here---start->8--- * Lisp code #+begin_src emacs-lisp (some-code) #+end_src * Foo code #+BEGIN_SRC foo Foo #+END_SRC * \LaTeX code #+BEGIN_SRC latex latex #+END_SRC (Huh: nothing?) --8<---cut here---end--->8--- gives: ┌ │ │ [...] │ │ │ # Lisp code │ │ (some-code) │ │ # Foo code │ │ Foo │ │ # \LaTeX code │ │ (Huh: nothing?) └ Expected behavior: ┌ │ #+BEGIN_SRC latex │ latex │ #+END_SRC └ gives: ┌ │ latex └ Not a bug. `org-babel-default-header-args:latex' is '((:results . "latex") (:exports . "results")) Hence, on export the latex is enclosed in a latex export block (#+BEGIN_LATEX ... #+END_LATEX), which markdown (and html) will ignore as per (info "(org) results") and (info "(org) Exporting code blocks"). I think you wanted `#+BEGIN_SRC latex :exports code'. HTH, Chuck
Re: [O] Bug: LaTeX source code blocks not exported in Markdown [8.3.1 (8.3.1-103-g366dc4-elpa @ /home/bitouze/.emacs.d/elpa/org-20150907/)]
Hello, dbito...@wanadoo.fr (Denis Bitouzé) writes: > When exported to Mardown, the following org mode file: > [...] > * \LaTeX code > #+BEGIN_SRC latex > latex > #+END_SRC > > (Huh: nothing?) > > gives: > > ┌ > │ > │ [...] > │ > │ > │ # Lisp code > │ > │ (some-code) > │ > │ # Foo code > │ > │ Foo > │ > │ # \LaTeX code > │ > │ (Huh: nothing?) > └ > > Expected behavior: > > ┌ > │ #+BEGIN_SRC latex > │ latex > │ #+END_SRC > └ > > gives: > > ┌ > │ latex > └ This is because latex block can be evaluated, which gives: #+RESULTS: #+BEGIN_LaTeX latex #+END_LaTeX i.e., the generated results appear only when using latex export backend. The original block is removed thereafter. You can use instead: #+BEGIN_SRC latex :exports code latex #+END_SRC Regards, -- Nicolas Goaziou
[O] Bug: LaTeX source code blocks not exported in Markdown [8.3.1 (8.3.1-103-g366dc4-elpa @ /home/bitouze/.emacs.d/elpa/org-20150907/)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. When exported to Mardown, the following org mode file: --8<---cut here---start->8--- * Lisp code #+begin_src emacs-lisp (some-code) #+end_src * Foo code #+BEGIN_SRC foo Foo #+END_SRC * \LaTeX code #+BEGIN_SRC latex latex #+END_SRC (Huh: nothing?) --8<---cut here---end--->8--- gives: ┌ │ │ [...] │ │ │ # Lisp code │ │ (some-code) │ │ # Foo code │ │ Foo │ │ # \LaTeX code │ │ (Huh: nothing?) └ Expected behavior: ┌ │ #+BEGIN_SRC latex │ latex │ #+END_SRC └ gives: ┌ │ latex └ Emacs : GNU Emacs 24.5.1 (i686-pc-linux-gnu, GTK+ Version 3.14.8) of 2015-06-29 on drums.chezmoi.fr Package: Org-mode version 8.3.1 (8.3.1-103-g366dc4-elpa @ /home/bitouze/.emacs.d/elpa/org-20150907/) current state: == (setq org-entities-user '(("nok" "{\\color{red}\\ding{55}}" nil "" "NOK" "NOK" "✘") ("ok" "{\\color{checkmark}\\ding{51}}" nil "" "OK" "OK" "✔") ) org-enforce-todo-checkbox-dependencies t org-inlinetask-default-state "TODO" org-agenda-search-view-always-boolean t org-agenda-log-mode-items '(clock) org-latex-format-headline-function 'leuven--org-latex-format-headline org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-pretty-entities t org-latex-packages-alist '(("" "listings") ("" "xcolor") ("french" "babel")) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-stuck-projects '("+LEVEL=2/-DONE" ("TODO" "STRT") nil "") org-refile-use-cache t org-clock-in-resume t org-clock-out-when-done nil org-log-states-order-reversed nil org-odt-preferred-output-format "doc" org-agenda-sticky t org-goto-interface 'outline-path-completion outline-minor-mode-hook '(leuven--outline-minor-mode-hook (lambda nil (if (and outline-minor-mode (derived-mode-p (quote emacs-lisp-mode))) (progn (hide-sublevels 1000))) ) ) org-agenda-skip-scheduled-if-done t org-ellipsis " ►" org-clock-persist t org-archive-location "::* Archive" org-agenda-window-setup 'current-window org-adapt-indentation nil org-agenda-entry-text-leaders " │ " org-agenda-scheduled-leaders '("Scheduled " " ") org-clock-mode-line-total 'all org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-agenda-exporter-settings '((ps-number-of-columns 1) (ps-landscape-mode t) (htmlize-output-type (quote css))) org-archive-hook '(org-attach-archive-delete-maybe) org-refile-targets '((nil :maxlevel . 4) (nil :maxlevel . 2)) org-html-htmlize-output-type 'css org-modules '(org-info org-habit org-gnus org-id org-checklist) org-cycle-hook '(org-inlinetask-hide-tasks org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-html-checkbox-type 'unicode org-mime-send-subtree-hook '((lambda nil (org-entry-put (point) "mail_composed" (current-time-string))) ) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-confirm-babel-evaluate nil org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-src-window-setup 'current-window org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-export-preprocess-hook '(leuven--org-export-preprocess-hook) org-clock-total-time-cell-format "%s" org-export-snippet-translation-alist '(("b" . "beamer") ("l" . "latex") ("h" . "html")) org-agenda-current-time-string "Right now" org-blocker-hook '(org-block-todo-from-checkboxes org-block-todo-from-children-or-siblings-or-parent) org-fontify-done-headline t org-agenda-skip-deadline-prewarning-if-scheduled 7 org-agenda-restore-windows-after-quit t org-return-follows-link t org-babel-pre-tangle-hook '(save-buffer) org-agenda-diary-file "~/org/diary.org" org-export-time-stamp-file nil org-occur-hook '(org-first-headline-recenter) org-emphasis-alist '(("*" bold "" "") ("/" italic "" "") ("_" underline "" "") ("=" org-verbatim