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:
>
>   ┌────
>   │ <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

Reply via email to