From: Charles Berry <ccberry@ucsd.edu>
To: emacs-orgmode@gnu.org
Subject: Re: Octave/Matlab Code Export Issue?
Date: Thu, 13 Mar 2014 16:16:00 +0000 (UTC) [thread overview]
Message-ID: <loom.20140313T170535-293@post.gmane.org> (raw)
In-Reply-To: 1383898485.630157.1394685710946.JavaMail.zimbra@ittc.ku.edu
Phil Regier <pregier <at> math.ku.edu> writes:
>
> I'm having trouble with Octave export, and I am not quite sure where to look.
>
> In an Org file I have the following:
>
> #+BEGIN_SRC octave
> a = [1;3;5;7;9]
> b = [2;4;6;8]
> ans=a;
> #+END_SRC octave
>
>
Instead try this:
--8<---------------cut here---------------start------------->8---
#+NAME: abc
#+BEGIN_SRC octave
a = [1;3;5;7;9]
b = [2;4;6;8]
ans=a;
#+END_SRC
--8<---------------cut here---------------end--------------->8---
Note that the #+END_SRC line has no trailing <language> nor anything else:
14.1 Structure of code blocks
=============================
Live code blocks can be specified with a `src' block or inline.(1) The
structure of a `src' block is
#+NAME: <name>
#+BEGIN_SRC <language> <switches> <header arguments>
<body>
#+END_SRC
HTH,
Chuck
prev parent reply other threads:[~2014-03-13 16:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1198335352.630117.1394684001766.JavaMail.zimbra@ittc.ku.edu>
2014-03-13 4:41 ` Octave/Matlab Code Export Issue? Phil Regier
2014-03-13 16:08 ` Eric S Fraga
2014-03-13 16:13 ` Phil Regier
2014-03-13 16:33 ` Eric S Fraga
2014-03-13 16:16 ` Charles Berry [this message]
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=loom.20140313T170535-293@post.gmane.org \
--to=ccberry@ucsd.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).