emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] tabs inserted in code blocks


From: Stephen J. Barr
Subject: [O] tabs inserted in code blocks
Date: Tue, 11 Mar 2014 13:41:39 -0700
User-agent: mu4e 0.9.9.6pre2; emacs 24.3.1

Hello,

I have the following code block in an org-mode file:

--------------------------------------------------------------------------------

#+CAPTION: Matlab Dynamic Programming Solution
#+LABEL: code:matlab-outer-loop-reference
#+BEGIN_SRC octave  
  Normal_BuildT = realmax * ones(T, i_max, j_max);
  for i=(1:i_max)
      for j=(1:j_max)
          Normal_BuildT(T,i,j) = compute_cell_final(i,j);
      end
  end
  
  for t=((T-1):-1:1)
      for i=(1:i_max)
          for j=(1:j_max)
             Normal_BuildT(t,i,j) = compute_cell(t,i,j, Normal_BuildT(t+1,:,:));
          end
      end
  end
#+END_SRC 

--------------------------------------------------------------------------------

I am exporting this to LaTeX, which gives me the following code.
See that there are tab characters inserted before the lines with Normal_BuildT. 
This is causing minted to render with these strange ^^I characters. 

--------------------------------------------------------------------------------

\begin{listing}[H]
\begin{minted}[]{octave}
Normal_BuildT = realmax * ones(T, i_max, j_max);
for i=(1:i_max)
    for j=(1:j_max)
        Normal_BuildT(T,i,j) = compute_cell_final(i,j);
    end
end

for t=((T-1):-1:1)
    for i=(1:i_max)
        for j=(1:j_max)
           Normal_BuildT(t,i,j) = compute_cell(t,i,j, Normal_BuildT(t+1,:,:));
        end
    end
end
\end{minted}
\caption{\label{code:matlab-outer-loop-reference}Matlab Dynamic Programming 
Solution}
\end{listing}

--------------------------------------------------------------------------------

How do I disable this behavior?

Thanks,
Stephen

-- 
Sent with my mu4e




reply via email to

[Prev in Thread] Current Thread [Next in Thread]