[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [SOLVED :padline no] (was: org-babel-trangle, proble when loop is in
From: |
Uwe Brauer |
Subject: |
[O] [SOLVED :padline no] (was: org-babel-trangle, proble when loop is interrupted by documentation) |
Date: |
Sat, 21 Apr 2018 14:20:26 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
>>> "Uwe" == Uwe Brauer <address@hidden> writes:
>> Hello,
>> Uwe Brauer <address@hidden> writes:
>> I guess you have to set `org-src-preserve-indentation' globally, or use
>> "-i" flag for the block, which is locally equivalent.
I think I found it:
* A test example
#+BEGIN_SRC matlab :tangle test.m :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<nmaxit
nit=nit+1; % counter
#+END_SRC
The basic idea is.
That we do.
We also will
#+BEGIN_SRC matlab :tangle test.m :padline no
y=A*x0;
end
#+END_SRC