emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Bug: LaTeX source code blocks not exported in Markdown [8.3.1 (8


From: Charles C. Berry
Subject: 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/)]
Date: Fri, 11 Sep 2015 09:10:24 -0700
User-agent: Alpine 2.20 (OSX 67 2015-01-07)

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

reply via email to

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