From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: 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 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="0-521573016-1441987825=:540" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaQuG-0000GV-AK for emacs-orgmode@gnu.org; Fri, 11 Sep 2015 12:10:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaQuB-0005eR-5R for emacs-orgmode@gnu.org; Fri, 11 Sep 2015 12:10:32 -0400 Received: from iport-acv6-out.ucsd.edu ([132.239.0.13]:50402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaQuA-0005eD-U2 for emacs-orgmode@gnu.org; Fri, 11 Sep 2015 12:10:27 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?ISO-8859-15?Q?Denis_Bitouz=E9?= Cc: emacs-orgmode@gnu.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-521573016-1441987825=:540 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT 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 --0-521573016-1441987825=:540--