From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Matt Price <moptop99@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: teaching with live-updating code examples
Date: Fri, 09 Dec 2016 17:19:27 +0000 [thread overview]
Message-ID: <87oa0l58bk.fsf@ucl.ac.uk> (raw)
In-Reply-To: <68509a97983e4d4e9eaca4922725c87a@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> (Matt Price's message of "Fri, 9 Dec 2016 16:42:16 +0000")
[-- Attachment #1.1: Type: text/plain, Size: 503 bytes --]
On Friday, 9 Dec 2016 at 16:42, Matt Price wrote:
> I think I am getting closer, actually (details soon, when I have a
> fully working solution)).
I look forward to seeing it!
> Meanwhile, I'd love to see an example in beamer -- I don't know
> anything about beamer myself and this might be an opportunity to
> learn.
Attached are an org file with resulting beamer (using default rather
simple style).
--
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.1-49-ga43eac
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: cols.org --]
[-- Type: text/x-org, Size: 547 bytes --]
#+options: toc:nil
#+startup: beamer
* The slide
** The code :B_block:BMCOL:
:PROPERTIES:
:BEAMER_col: 0.7
:BEAMER_env: block
:END:
Define an inline function:
#+name: thecode
#+begin_src octave :exports both
f = @(x) (x(1)-3)^2+(x(2)-5)^2+8;
f([5, 6])
#+end_src
** The results :B_block:BMCOL:
:PROPERTIES:
:BEAMER_col: 0.3
:BEAMER_env: block
:END:
The result from applying that function to the vector [5, 6]:
#+results: thecode
: 13
[-- Attachment #1.3: cols.pdf --]
[-- Type: application/pdf, Size: 48459 bytes --]
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 162 bytes --]
next prev parent reply other threads:[~2016-12-09 17:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bcd5ea41e88d4128ab2103df173ec879@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-12-09 6:33 ` teaching with live-updating code examples Eric S Fraga
2016-12-09 16:42 ` Matt Price
[not found] ` <68509a97983e4d4e9eaca4922725c87a@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-12-09 17:19 ` Eric S Fraga [this message]
2016-12-10 4:59 ` Matt Price
2016-12-10 5:19 ` Matt Price
2016-12-08 18:07 Matt Price
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oa0l58bk.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=moptop99@gmail.com \
/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 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.