From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org babel: %% [removed source block] Date: Thu, 29 Nov 2018 08:46:25 -0500 Message-ID: References: <87y39c9kr7.fsf@mat.ucm.es> <87o9a8m3x3.fsf@gmail.com> <87r2f4ggwc.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000035ba49057bcde64c" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSMdX-0000YT-8Y for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:45:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSMdW-0003pg-50 for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:45:47 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:53820) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSMdV-0003pM-TL for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:45:46 -0500 Received: by mail-wm1-x336.google.com with SMTP id y1so2312911wmi.3 for ; Thu, 29 Nov 2018 05:45:45 -0800 (PST) In-Reply-To: <87r2f4ggwc.fsf@mat.ucm.es> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org-mode-email --00000000000035ba49057bcde64c Content-Type: text/plain; charset="UTF-8" Maybe you need :exports and not :export. John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Thu, Nov 29, 2018 at 8:20 AM Uwe Brauer wrote: > >>> "Eric" == Eric S Fraga writes: > > > On Thursday, 29 Nov 2018 at 12:38, Uwe Brauer wrote: > >> Now org-babel-tangle works nicely, but when I try to export the org > >> file to latex via org-export-dispatch > > > I think the default is > > :exports results > > so you what you want is either > > :exports both > > or > > :exports code > > Thanks, but I tried > #+begin_src matlab :tangle test.m :export code :wrap latex :padline no > function [ll x]=mitest(A0,x0) > % initialization > format long > epsi=1.e-3; > nit=0; > nmaxit=200; > Delta=10; > A=A0; > while Delta>epsi & nit nit=nit+1; % counter > #+end_src > > The basic idea is. > That we do. > We also will > > #+begin_src matlab :tangle test.m :export both :wrap latex :padline no > y=A*x0; > end > #+end_src > > > And I obtain always: > \begin{document} > > %% [removed source block] > The basic idea is. > That we do. > We also will > > %% [removed source block] > \end{document} > --00000000000035ba49057bcde64c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Maybe you need :exports and not :export.

John

-----------= ------------------------
Professor John Kitchin=C2=A0
Doherty Hall A2= 07F
Department of Chemical Engineering
Carnegie Mellon University
= Pittsburgh, PA 15213
412-268-7803

<= /div>
On Thu, Nov 29, 2018 a= t 8:20 AM Uwe Brauer <oub@mat.ucm.es> wrote:
>>> "Er= ic" =3D=3D Eric S Fraga <esflists@gmail.com> writes:

=C2=A0 =C2=A0> On Thursday, 29 Nov 2018 at 12:38, Uwe Brauer wrote:
=C2=A0 =C2=A0>> Now org-babel-tangle works nicely, but when I try to = export the org
=C2=A0 =C2=A0>> file to latex via org-export-dispatch

=C2=A0 =C2=A0> I think the default is
=C2=A0 =C2=A0> :exports results
=C2=A0 =C2=A0> so you what you want is either
=C2=A0 =C2=A0> :exports both
=C2=A0 =C2=A0> or
=C2=A0 =C2=A0> :exports code

Thanks, but I tried
#+begin_src matlab :tangle test.m=C2=A0 :export code=C2=A0 =C2=A0:wrap late= x :padline no
function [ll x]=3Dmitest(A0,x0)
% initialization
format long
epsi=3D1.e-3;
nit=3D0;
nmaxit=3D200;
Delta=3D10;
A=3DA0;
while Delta>epsi & nit<nmaxit
=C2=A0 =C2=A0 nit=3Dnit+1; % counter
#+end_src

The basic idea is.
That we do.
We also will

#+begin_src matlab=C2=A0 :tangle test.m :export both=C2=A0 :wrap latex :pad= line no
=C2=A0 =C2=A0 y=3DA*x0;
end
#+end_src


And I obtain always:
\begin{document}

%% [removed source block]
The basic idea is.
That we do.
We also will

%% [removed source block]
\end{document}
--00000000000035ba49057bcde64c--