all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Trouble exporting inline code blocks
@ 2017-04-10 17:56 Richard Stanton
  2017-04-11  3:00 ` Charles C. Berry
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Stanton @ 2017-04-10 17:56 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Trouble exporting inline code blocks
  2017-04-10 17:56 Trouble exporting inline code blocks Richard Stanton
@ 2017-04-11  3:00 ` Charles C. Berry
  0 siblings, 0 replies; 2+ messages in thread
From: Charles C. Berry @ 2017-04-11  3:00 UTC (permalink / raw)
  To: Richard Stanton; +Cc: emacs-orgmode

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

On Mon, 10 Apr 2017, Richard Stanton wrote:

> 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.


I get this

Some inline Python code: 2 plus 2 is \texttt{4}

in response to C-c C-e C-b l L

Org mode version 9.0.5


HTH,

Chuck

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-11  3:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-10 17:56 Trouble exporting inline code blocks Richard Stanton
2017-04-11  3:00 ` Charles C. Berry

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.