>>> "ESF" == Eric S Fraga writes: > On Tuesday, 13 Oct 2020 at 09:26, Uwe Brauer wrote: >> That did not work: I tried >> #+begin_src matlab :results output >> But when I exported the org file to latex, the matlab code was also >> exported. Strange > If you want the output only, you also need to add ":exports results". Hm not really #+begin_src matlab :exports results 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 when I export this to latex I obtain \begin{verbatim} \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*} \end{verbatim} Which is not what I want. I don't want a verbatim environment