[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: |
Nicolas Goaziou |
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 17:58:18 +0200 |
Hello,
address@hidden (Denis Bitouzé) writes:
> When exported to Mardown, the following org mode file:
>
[...]
> * \LaTeX code
> #+BEGIN_SRC latex
> latex
> #+END_SRC
>
> (Huh: nothing?)
>
> 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
> └────
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