I want to write:
{Step 6
for n = 0 to final do
y(n) = x(n)
e(k) = d(k) y(k)
w(n + 1) = w(n) + x(n)e(n)
end for}
My problem is for appears in the start without identation.
I want to write:
{Step 6
for n = 0 to final do
y(n) = x(n)
e(k) = d(k) y(k)
w(n + 1) = w(n) + x(n)e(n)
end for}
My problem is for appears in the start without identation.
You could use the minted package for code, which also provides syntax highligthing. Alternative you can create custom spaces with \quad or \qquad or \hspace{2mm} or ~, among some other ways.
\documentclass{...}and ending with\end{document}. – Null Jun 04 '15 at 16:07