From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: org file: export matlab to latex, then to html
Date: Fri, 25 May 2018 15:15:00 +0200 [thread overview]
Message-ID: <87po1j3mi3.fsf@mat.ucm.es> (raw)
Hello
Please consider the following example
This is a test
#+begin_src matlab :results output latex :exports results
X=[1,2,3,4,5,6,7];
p=[1/7 1/7 1/7 1/7 1/7 1/7 1/7];
E=X*p';
x2=X.*X;
E2=x2*p';
V=E2-E^2;
disp('\begin{align}')
fprintf('E[X]&=%g\\\\ \n', E)
fprintf('E^2[X]&=%g\\\\\n', E2)
fprintf('V[X]&=%g\n', V)
disp('\end{align}')
#+end_src
Executing the src block leads
#+RESULTS:
#+BEGIN_EXPORT latex
\begin{align}
E[X]&=4\\
E^2[X]&=20\\
V[X]&=4
\end{align}
#+END_EXPORT
But if I now want to export the org file to html, the latex constructs
are not exported.
I have to remove the
#+BEGIN_EXPORT latex
#+END_EXPORT
Manually which is cumbersome.
So I need to modify the line
#+begin_src matlab :results output latex :exports results
But whatever I tried either there was not result exported, or when when
it was the result was not converted to HTML.
Any help is appreciated
Regards
Uwe Brauer
next reply other threads:[~2018-05-25 13:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-25 13:15 Uwe Brauer [this message]
2018-05-25 15:20 ` org file: export matlab to latex, then to html John Kitchin
2018-05-26 8:28 ` Uwe Brauer
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=87po1j3mi3.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--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 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.