emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org mode with babel source: execute all source blocks, don't export them to latex
@ 2020-10-13  6:29 Uwe Brauer
  2020-10-13  7:04 ` Diego Zamboni
  0 siblings, 1 reply; 12+ messages in thread
From: Uwe Brauer @ 2020-10-13  6:29 UTC (permalink / raw)
  To: emacs-orgmode



Hi 

I have a org file with has a lot source blocks of the form 

#+begin_src matlab  :results output raw :exports code  :eval never-export
close all
N = 3; % number of chebyshev nodes
n = 1; % polytropic index
iters = 1; % iterations
j=[0 1 2 3];
z=cos((pi*j)/3);
y=1-(0.5*(z+1)).^2;
a=n*(8);
a2=eye(3+1)*a;
disp('\begin{align*}')
disp('A_{1,k-1}&=')
disp('\begin{pmatrix}')
fprintf('%g &%g &%g &%g\\\\\n',a2')
disp('\end{pmatrix}=OK\\')
disp('\end{align*}')
#+end_src

#+RESULTS:
\begin{align*}
A_{1,k-1}&=
\begin{pmatrix}
8 &0 &0 &0\\
0 &8 &0 &0\\
0 &0 &8 &0\\
0 &0 &0 &8\\
\end{pmatrix}=OK\\
\end{align*}

Two questions. 

    1. Is there any equivalent to org-update-all-dblocks for the source blocks?

    2. I want to export the org file to latex, in the current setting
       the source blocks are also exported. I tried
       #+begin_src matlab  :results output raw   :eval never-export
       but it did not help. 

Thanks 

Uwe Brauer 



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

end of thread, other threads:[~2020-10-13 17:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-13  6:29 org mode with babel source: execute all source blocks, don't export them to latex Uwe Brauer
2020-10-13  7:04 ` Diego Zamboni
2020-10-13  7:26   ` [matlab src is always exported to latex!!] (was: org mode with babel source: execute all source blocks, don't export them to latex) Uwe Brauer
2020-10-13  8:31     ` [solution of sorts] (was: [matlab src is always exported to latex!!]) Uwe Brauer
2020-10-13  8:31     ` [matlab src is always exported to latex!!] Eric S Fraga
2020-10-13 11:31       ` Uwe Brauer
2020-10-13  8:44     ` [matlab src is always exported to latex!!] (was: org mode with babel source: execute all source blocks, don't export them to latex) Dr. Arne Babenhauserheide
2020-10-13 11:34       ` [matlab src is always exported to latex!!] Uwe Brauer
2020-10-13 12:11         ` Diego Zamboni
2020-10-13 12:56           ` Uwe Brauer
2020-10-13 12:59             ` Eric S Fraga
2020-10-13 17:21               ` Uwe Brauer

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