From: Eric S Fraga <ucecesf@ucl.ac.uk>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: full production use of org-mode: time to say thanks again!
Date: Sun, 10 Oct 2010 18:56:38 +0100 [thread overview]
Message-ID: <87d3ri0w4p.wl%ucecesf@ucl.ac.uk> (raw)
In-Reply-To: <20EA118D-E909-47F4-AEF8-8B1B929F5601@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1024 bytes --]
On Sat, 9 Oct 2010 17:26:43 +0200, Carsten Dominik <carsten.dominik@gmail.com> wrote:
> On Oct 9, 2010, at 12:46 PM, Eric S Fraga wrote:
[...]
> > As an aside, I also had to prepare a new set of lecture slides for a
> > course I teach. I used org, of course, with beamer support. Again,
> > everything worked well. What was particularly nice this time was that
> > this particular course requires showing Octave code and the outputs of
> > such code. Babel, in combination with the listings latex package, is
> > an ideal tool for this! My slides look (in my obviously biased
> > opinion) incredibly professional.
>
> Can you publish the slides? I'd like to take a look!
> Maybe even with the source?
I can't as such (some copyright material) but I can give an
illustration of the type of slide (attached) that babel now allows me
to do every so easily! From a pedagogical point of view, having code
which runs and automatically creates the content to be presented is
fantastic. No errors in transcription etc.
[-- Attachment #2: octave.pdf --]
[-- Type: application/pdf, Size: 94788 bytes --]
[-- Attachment #3: Type: text/plain, Size: 2913 bytes --]
#+ -*- coding: iso-8859-1; -*-
#+TITLE: Numerical methods with Octave
#+AUTHOR: Eric S Fraga
#+EMAIL: e.fraga@ucl.ac.uk
#+DATE: 2010.10.10 18:54:55
* COMMENT Preamble :noexport:
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE: en
#+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:
#+XSLT:
#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [bigger,t]
#+BEAMER_FRAME_LEVEL: 2
#+latex_header: \definecolor{verylightgray}{rgb}{0.93,0.93,1.0}
#+latex_header: \mode<beamer>{\usetheme{progressbar}}
#+latex_header: \mode<handout>{\usecolortheme[rgb={0.5,0.5,0.5}]{structure}\usetheme[secheader]{Boadilla}\usepackage{pgfpages}\pgfpagesuselayout{4 on 1}[a4paper,landscape,border shrink=5mm]}
#+latex_header: \usepackage[absolute,overlay]{textpos}\setlength{\TPHorizModule}{1mm}\setlength{\TPVertModule}{1mm}\newcommand{\UCL}{\begin{textblock}{14}(120.0,0.0)\pgfuseimage{ucllogo}\end{textblock}}
#+ latex_header: \AtBeginSection[]{\begin{frame}<beamer>\frametitle{Topic}\tableofcontents[currentsection]\end{frame}}
#+latex_header: \usepackage{algorithm}
#+latex_header: \usepackage{algorithmic} %[noend] option possible
#+latex_header: \renewcommand{\algorithmicrequire}{\textbf{Given:}}
#+latex_header: \renewcommand{\algorithmicensure}{\textbf{Outputs:}}
#+latex_header: \usepackage{alltt}
#+latex_header: \usepackage{cancel}
#+ ------------------------ COMMANDS -------------------------
#+latex_header: \newcommand{\D}{{\mbox{d}}}
#+latex_header: \newcommand{\Diff}[2]{\frac{\D }{\D #2}#1}
#+latex_header: \newcommand{\diff}[2]{\frac{\D #1}{\D #2}}
#+latex_header: \newcommand{\HS}{\hspace*{1cm}}
#+latex_header: \date{$Revision: 1.7 $}\renewcommand{\date}[1]{}
#+ ------------------------ LISTINGS -------------------------
#+latex_header: \lstset{keywordstyle=\color{blue},commentstyle=\color{black!50!white},identifierstyle=\color{red!60!black}}
#+COLUMNS: %20ITEM %13BEAMER_env(Env) %6BEAMER_envargs(Args) %4BEAMER_col(Col) %7BEAMER_extra(Extra)
* Octave
*** Newton's method
***** The code :BMCOL:B_block:
:PROPERTIES:
:BEAMER_col: 0.5
:BEAMER_env: block
:END:
#+source: newtons-method
#+begin_src octave :exports both :results output
f = @(x) x^2 - 2;
df = @(x) 2*x;
x = 2 % initial guess
y = f(x)
while abs(y)>1e-5
dy = df(x);
x = x - y/dy
y = f(x)
end
#+end_src
***** The output :BMCOL:B_block:
:PROPERTIES:
:BEAMER_col: 0.5
:BEAMER_env: block
:BEAMER_envargs: <2->
:END:
#+results: newtons-method
: x = 2
: y = 2
: x = 1.5000
: y = 0.25000
: x = 1.4167
: y = 0.0069444
: x = 1.4142
: y = 6.0073e-06
[-- Attachment #4: Type: text/plain, Size: 1 bytes --]
[-- Attachment #5: Type: text/plain, Size: 75 bytes --]
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D
[-- Attachment #6: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-10-10 17:57 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-09 10:46 full production use of org-mode: time to say thanks again! Eric S Fraga
2010-10-09 15:26 ` Carsten Dominik
2010-10-09 17:00 ` Nicolas Goaziou
2010-10-10 18:01 ` Eric S Fraga
2010-10-11 6:34 ` Nicolas Goaziou
2010-10-11 8:04 ` Carsten Dominik
2010-10-11 11:15 ` Paul Mead
2010-10-11 15:12 ` Nicolas Goaziou
2010-10-11 15:16 ` Nicolas Goaziou
2010-10-11 15:37 ` Eric S Fraga
2010-10-14 8:32 ` Carsten Dominik
2010-10-11 15:33 ` indenting after inline task (was Re: full production use of org-mode: time to say thanks again!) Eric S Fraga
2010-10-14 8:16 ` full production use of org-mode: time to say thanks again! Carsten Dominik
2010-10-10 17:56 ` Eric S Fraga [this message]
2010-10-11 8:01 ` Carsten Dominik
2010-10-11 9:01 ` Eric S Fraga
2010-10-09 16:48 ` Christian Moe
2010-10-09 17:15 ` Nick Dokos
2010-10-09 19:03 ` Christian Moe
2010-10-11 19:33 ` Jeff Horn
2010-10-12 8:04 ` Carsten Dominik
2010-10-12 8:08 ` Eric S Fraga
2010-10-19 8:27 ` Sébastien Vauban
2010-10-20 2:45 ` Jeff Horn
2010-10-20 8:01 ` Sébastien Vauban
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=87d3ri0w4p.wl%ucecesf@ucl.ac.uk \
--to=ucecesf@ucl.ac.uk \
--cc=carsten.dominik@gmail.com \
--cc=e.fraga@ucl.ac.uk \
--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).