0

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.

m0nhawk
  • 9,664
Yousef
  • 41

1 Answers1

0

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.