title: LaTeX - Adding a varying amount of horizontal spacing to the beginning of each new line in a sequence
body: <p>I'm using LaTeX for an algorithms assignment and I need to show the steps for <a href="http://en.wikipedia.org/wiki/Boyer%E2%80%93Moore%E2%80%93Horspool_algorithm" rel="noreferrer">Horspool's algorithm</a> for string matching similar to what is shown in the textbook.  The way it demonstrates the algorithm is showing how the pattern shifts along the text for each failed comparison, with each shift on a new line.  The pattern is shown below the text with appropriate horizontal spacing indicating which letters are being compared.</p>
  
  <p>Here is an example of what it would look like with a DNA sequence:</p>
  
  <pre><code>GAGTAATCCTTCACTTCAAGGCCAGTCTTCACATCTCATCAGA
  ACATCTCA
   ACATCTCA
    ACATCTCA
      ACATCTCA
  </code></pre>
  
  <p>I've poked around on several LaTeX references.  I tried using <code>\hspace</code> to add the spacing at the beginning of each line, then adding <code>\hfill</code> after the pattern and before creating a newline.  I'm not getting any errors, but there is no space being added at the front. The line is being filled correctly.</p>
  
  <p>Is there another way to add the space to the beginning of each line, or another way to format this?</p>