emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Charles C. Berry" <ccberry@ucsd.edu>
To: "Denis Bitouzé" <dbitouze@wanadoo.fr>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <alpine.OSX.2.20.1509110857160.540@charles-berrys-macbook.local> (raw)
In-Reply-To: <m3pp1prsbx.fsf@drums.chezmoi.fr>

[-- Attachment #1: Type: text/plain, Size: 1708 bytes --]

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

      parent reply	other threads:[~2015-09-11 16:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-11 13:36 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/)] Denis Bitouzé
2015-09-11 15:58 ` Nicolas Goaziou
     [not found]   ` <87twr1uew5.fsf-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org>
2015-09-12  6:17     ` Denis Bitouzé
2015-09-11 16:10 ` Charles C. Berry [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.OSX.2.20.1509110857160.540@charles-berrys-macbook.local \
    --to=ccberry@ucsd.edu \
    --cc=dbitouze@wanadoo.fr \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).