From: "Stephen J. Barr" <stevejb@uw.edu>
To: org mode <emacs-orgmode@gnu.org>
Subject: tabs inserted in code blocks
Date: Tue, 11 Mar 2014 13:41:39 -0700 [thread overview]
Message-ID: <874n34xybg.fsf@mezarim.home> (raw)
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
next reply other threads:[~2014-03-11 20:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-11 20:41 Stephen J. Barr [this message]
2014-03-12 4:21 ` tabs inserted in code blocks Nick Dokos
2014-03-12 12:30 ` John Hendy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874n34xybg.fsf@mezarim.home \
--to=stevejb@uw.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).