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:
┌────
│ <div id="table-of-contents">
│ [...]
│ </div>
│
│ # Lisp code<a id="orgheadline1"></a>
│
│ (some-code)
│
│ # Foo code<a id="orgheadline2"></a>
│
│ Foo
│
│ # \LaTeX code<a id="orgheadline3"></a>
│
│ (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