emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: James Harkins <jamshark70@gmail.com>
To: orgmode <emacs-orgmode@gnu.org>
Subject: Beamer and org-language source blocks?
Date: Fri, 01 Nov 2013 12:08:22 +0900	[thread overview]
Message-ID: <0acb8682-f719-4227-be17-7fe5d4a95216@dewdrop-world.net> (raw)

Maybe there is something obvious I'm missing, but I'm having considerable 
trouble using org-language source code blocks in Beamer export.

The objective is to show a little of the org code that made the 
presentation. This means including some headers. I had thought that 
declaring the source code block to be in org mode would cause it to ignore 
headings inside, but I haven't found the incantation to make it do that.

I've customized org-babel-load-languages to include Org.

** What I mean and what I see
#+begin_src org :exports code
** Overview
*** This talk will cover:
    - bla bla
#+end_src

--> And in the output, you can see that it takes "** Overview" as a new 
frame and treats the #+begin/end_src markers as regular text. Huh?

\begin{frame}[label=sec-2-3]{What I mean and what I see}

\#+begin$_{\text{src}}$ org :exports code
\end{frame}

\begin{frame}[label=sec-2-4]{Overview}
\begin{block}{This talk will cover:}
\begin{itemize}
\item bla bla
\end{itemize}
\#+end$_{\text{src}}$
\end{block}
\end{frame}

I hope there's a way to do this. Or, do I have to use a screenshot from 
Emacs? (Screenshot? Of source code?)

hjh

             reply	other threads:[~2013-11-01  3:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-01  3:08 James Harkins [this message]
2013-11-01  7:35 ` Beamer and org-language source blocks? Nicolas Goaziou
2013-11-02  3:47   ` James Harkins

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=0acb8682-f719-4227-be17-7fe5d4a95216@dewdrop-world.net \
    --to=jamshark70@gmail.com \
    --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).