emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Stanton <stanton@haas.berkeley.edu>
To: emacs-orgmode@gnu.org
Subject: Trouble exporting inline code blocks
Date: Mon, 10 Apr 2017 10:56:34 -0700	[thread overview]
Message-ID: <51D41F8A-6BC4-4900-A86D-4C7D84EF1D94@haas.berkeley.edu> (raw)

Here’s a very simple org file:

————

Some inline Python code: 2 plus 2 is src_python[:session]{2+2}

————-

If I put the cursor on the code block and type C-c C-c, I get  nice results block containing the answer, 4. So far so good.

I’d like to export just the results to PDF via LaTeX. However, no matter what options I pass, the exported PDF file shows both the source and the output. E.g.,

src_python[:session :exports results]{2+2}
src_python[:session :exports none]{2+2}

Am I missing something? Thanks. By the way, I’m using org mode v. 9.0.5. 

Richard Stanton

             reply	other threads:[~2017-04-10 17:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-10 17:56 Richard Stanton [this message]
2017-04-11  3:00 ` Trouble exporting inline code blocks Charles C. Berry

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=51D41F8A-6BC4-4900-A86D-4C7D84EF1D94@haas.berkeley.edu \
    --to=stanton@haas.berkeley.edu \
    --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).